From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
xinhuix.pan@intel.com, Alan Cox <alan@linux.intel.com>
Subject: Re: [PATCH 1/3] usb: add function usb_autopm_get_interface_upgrade
Date: Tue, 26 May 2015 07:12:39 -0700 [thread overview]
Message-ID: <20150526141239.GB21573@kroah.com> (raw)
In-Reply-To: <5563D84D.5070702@linux.intel.com>
On Tue, May 26, 2015 at 10:19:57AM +0800, Zhang, Yanmin wrote:
> Some usb driver has a specific requirement. Their critical functions
>
> might be called under both atomic environment and non-atomic environment.
>
> If it's under atomic environment, the driver can wake up the device
>
> by calling pm_runtime_get_sync directly.
>
> If it's under non-atomic environment, the function's caller need wake
>
> up the device before the function accesses the device.
>
> The patch adds usb_autopm_get_interface_upgrade, a new function to
>
> support above capability.
>
> Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
>
> ---
>
> drivers/usb/core/driver.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++
>
> include/linux/usb.h | 3 +++
>
> 2 files changed, 56 insertions(+)
>
> diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
>
> index 818369a..d07fd8d 100644
>
> --- a/drivers/usb/core/driver.c
>
> +++ b/drivers/usb/core/driver.c
>
> @@ -1684,6 +1684,59 @@ int usb_autopm_get_interface(struct usb_interface *intf)
>
> EXPORT_SYMBOL_GPL(usb_autopm_get_interface);
>
>
> /**
>
> + * usb_autopm_get_interface_retry - increment a USB interface's PM-usage counter
>
> + * @intf: the usb_interface whose counter should be incremented
Your emails are obviously corrupted and can't be applied.. Please fix
up and resend all of them.
thanks,
greg k-h
next prev parent reply other threads:[~2015-05-26 14:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 2:19 Zhang, Yanmin
2015-05-26 14:12 ` Greg Kroah-Hartman [this message]
2015-05-27 0:27 ` Zhang, Yanmin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150526141239.GB21573@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=alan@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xinhuix.pan@intel.com \
--cc=yanmin_zhang@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®