usb: core: hub: modify hub reset logic in hub driver
authorDeepak Das <deepakdas.linux@gmail.com>
Wed, 21 Jan 2015 18:09:58 +0000 (23:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 13:05:59 +0000 (21:05 +0800)
commitfbaecff06a7db4defa899a664fe2758e5161b39d
tree1fad660b2a13035add7670aa7093292dc6e76d2f
parent7e7a0e67f2c2104fb7515008fb2ba72ffb10b493
usb: core: hub: modify hub reset logic in hub driver

Currently if port power is turned off by user on hub port
using USBDEVFS then port power is turned back ON
by hub driver.
This commit modifies hub reset logic in hub_port_connect() to prevent
hub driver from turning back the port power ON if port is not owned
by kernel.

Signed-off-by: Deepak Das <deepakdas.linux@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c