usb: chipidea: otg: use usb autosuspend to suspend bus for HNP
authorLi Jun <jun.li@freescale.com>
Tue, 15 Dec 2015 09:51:29 +0000 (17:51 +0800)
committerPeter Chen <peter.chen@freescale.com>
Thu, 24 Dec 2015 06:18:07 +0000 (14:18 +0800)
commit8c100e74409ad3bbcb8a1ccdff4540fc0aa7a0fc
tree394332ad518c473a52060e3a69ba15f4e0f5adf6
parent43a404577a93d236913b67e41758adf5b9a8f45d
usb: chipidea: otg: use usb autosuspend to suspend bus for HNP

Directly manipulate the controller regsiter to suspend the usb bus
for HNP is not the proper way, this should be done through the usbcore
by usb autosuspend. So to start HNP, autosuspend support should be
added for OTG devices interface driver if it's not enabled.

Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/otg_fsm.c