diff options
author | Apelete Seketeli <apelete@seketeli.net> | 2013-12-20 00:42:27 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-20 19:53:59 +0400 |
commit | 23db9fd238d6ca5aa165900bf14fb42e3e2d0815 (patch) | |
tree | c0686a0a6700f2ff05ef01bac28ad8e2c864e2bc /mm/mprotect.c | |
parent | 10434d273ccdcee8eab4f5e08497d65841bbf354 (diff) | |
download | linux-23db9fd238d6ca5aa165900bf14fb42e3e2d0815.tar.xz |
usb: musb: fix setting JZ4740 gadget periphal mode on reset
JZ4740 USB Device Controller is not OTG compatible and does not have
DEVCTL register in silicon.
During ethernet-over-usb transactions, on reset, musb driver tries to
read from DEVCTL and consequently sets device as host (A-Device)
instead of peripheral (B-Device), which makes it a composite device to
the USB gadget driver.
This induces a kernel panic during power down where the USB gadget
driver does a null pointer dereference when trying to access the
composite device configuration.
On reset, do not rely on DEVCTL value for setting gadget peripheral
mode. Use is_otg flag instead to set it to B-Device.
Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions