]> git.baikalelectronics.ru Git - kernel.git/commit
usb: don't check pm qos NO_POWER_OFF flag in usb_port_suspend()
authorLan Tianyu <tianyu.lan@intel.com>
Wed, 3 Jul 2013 14:17:54 +0000 (22:17 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 15 Aug 2013 17:52:33 +0000 (10:52 -0700)
commitde420c987f193aff924f68b8ee97800240970a5e
tree4f8b6a6273cab2f53cd0903717f28b6b5f4e27b0
parent626578ddc66b7e1d82b9b5c681c0ab93f5ebb946
usb: don't check pm qos NO_POWER_OFF flag in usb_port_suspend()

The pm qos NO_POWER_OFF flag is checked twice during usb device suspend
to see if the usb port power off condition is met. This is redundant and
also will prevent the port from being powered off if the NO_POWER_OFF
flag is changed to 1 from 0 after the device was already suspended.

More detail in the following link.
http://marc.info/?l=linux-usb&m=136543949130865&w=2

This patch should be backported to kernels as old as 3.7, that
contain the commit 30c1034b46caf6aa3fd2e4a41f6150bd665aff86 "usb/acpi:
Use ACPI methods to power off ports."

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
drivers/usb/core/hub.c