diff mbox

[v6,8/8] usb: enable usb port device's async suspend.

Message ID 1358777887-2656-9-git-send-email-tianyu.lan@intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

lan,Tianyu Jan. 21, 2013, 2:18 p.m. UTC
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
 drivers/usb/core/port.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Greg Kroah-Hartman Jan. 21, 2013, 9:34 p.m. UTC | #1
On Mon, Jan 21, 2013 at 10:18:07PM +0800, Lan Tianyu wrote:
> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>

Why are you doing this?  Why is it now ok?

We need a much better changelog entry here.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lan,Tianyu Jan. 22, 2013, 2:23 p.m. UTC | #2
On 2013/1/22 5:34, Greg KH wrote:
> On Mon, Jan 21, 2013 at 10:18:07PM +0800, Lan Tianyu wrote:
>> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
>
> Why are you doing this?  Why is it now ok?
>
> We need a much better changelog entry here.
Ok. I will add later.
>
> thanks,
>
> greg k-h
>
diff mbox

Patch

diff --git a/drivers/usb/core/port.c b/drivers/usb/core/port.c
index 0334d91..50b646e 100644
--- a/drivers/usb/core/port.c
+++ b/drivers/usb/core/port.c
@@ -215,7 +215,7 @@  int usb_hub_create_port_device(struct usb_hub *hub, int port1)
 		pm_runtime_enable(&port_dev->dev);
 
 	usb_acpi_register_power_resources(&port_dev->dev);
-
+	device_enable_async_suspend(&port_dev->dev);
 	return 0;
 
 error_register: