]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ohci-at91: Forcibly suspend ports while USB suspend
authorWenyou Yang <wenyou.yang@atmel.com>
Wed, 8 Jun 2016 04:15:10 +0000 (12:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:19:59 +0000 (22:19 -0700)
commitb6dae7b7919d6ffc4d0845c0d9d552b3d7ddb758
treef5b75ed7bd53693c71578e8ade5f3ae9511a460e
parentfffae2bb21d9b738a9562b546bd69199f2e25126
usb: ohci-at91: Forcibly suspend ports while USB suspend

In order to the save power consumption, as a workaround, suspend
forcibly the USB PORTA/B/C via set the SUSPEND_A/B/C bits of OHCI
Interrupt Configuration Register in the SFRs while OHCI USB suspend.

This suspend operation must be done before the USB clock is disabled,
resume after the USB clock is enabled.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/atmel-usb.txt
drivers/usb/host/ohci-at91.c
include/soc/at91/at91_sfr.h [new file with mode: 0644]