Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751668AbbE0A1Z (ORCPT ); Tue, 26 May 2015 20:27:25 -0400 Received: from mga01.intel.com ([192.55.52.88]:63371 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751418AbbE0A1X (ORCPT ); Tue, 26 May 2015 20:27:23 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,502,1427785200"; d="scan'208";a="732154367" Message-ID: <55650F6A.3030205@linux.intel.com> Date: Wed, 27 May 2015 08:27:22 +0800 From: "Zhang, Yanmin" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Greg Kroah-Hartman CC: "linux-kernel@vger.kernel.org" , Alan Cox , Alan Cox Subject: Re: [PATCH 1/3] usb: add function usb_autopm_get_interface_upgrade References: <5563D84D.5070702@linux.intel.com> <20150526141239.GB21573@kroah.com> In-Reply-To: <20150526141239.GB21573@kroah.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1797 Lines: 58 On 2015/5/26 22:12, Greg Kroah-Hartman wrote: > 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 >> >> --- >> >> 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. Sorry. I didn't send patches for a long time. I would resend the patchset again. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/