]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: chipidea: msm: Restore wrapper settings after reset
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:57:03 +0000 (14:57 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 07:26:39 +0000 (15:26 +0800)
commit47654a1620818ab1da1e81ce6cdb2433ff3bb6bf
tree0699e70502fc1d05487c6ca7bb56a9d299987709
parent2fc305be364ed2a4ea4bdf83554a2a76521dc6c4
usb: chipidea: msm: Restore wrapper settings after reset

When the RESET bit is set in the USBCMD register it resets quite
a few of the wrapper's registers to their reset state. This
includes the GENCONFIG and GENCONFIG2 registers. Currently this
is done by the usb phy and ehci-msm drivers writing into the
controller wrapper's MMIO address space. Let's consolidate the
register writes into the wrapper driver instead so that we
clearly split the wrapper from the phys.

Acked-by: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_msm.c