]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: musb: dsps: add support for suspend and resume
authorDaniel Mack <zonque@gmail.com>
Tue, 26 Nov 2013 12:31:14 +0000 (13:31 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 Nov 2013 16:58:16 +0000 (10:58 -0600)
commit869c597829817af4b9f85c5e4181c622918dc781
tree412253db26f14c15ec9f41a8302cf6e422e1a609
parentb991f9b77c029135f6e0d1d5d16869ebf755c4c0
usb: musb: dsps: add support for suspend and resume

The dsps platform needs to save save some registers at suspend time and
restore them after resume. This patch adds a struct for these registers,
and also lets the musb core know that the core registers need to be
saved as well.

We also have to explicitly de-assert the port reset upon resume on this
platform, but musb_port_reset() should not be called from glue layers.

Hence, introduce a flag in struct musb_hdrc_config for this.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_host.h
drivers/usb/musb/musb_virthub.c
include/linux/usb/musb.h