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)
commit7150bc9b4d43471fa37b26f5839892d4cf1fe09b
treef5b75ed7bd53693c71578e8ade5f3ae9511a460e
parent62c32e4641e7c5f6e0cad72bea0c8645c33d51b6
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]