2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00
linux-next/drivers/usb/chipidea
Fabio Estevam 929473ea05 usb: chipidea: Allow disabling streaming not only in udc mode
When running a scp transfer using a USB/Ethernet adapter the following crash
happens:

$ scp test.tar.gz fabio@192.168.1.100:/home/fabio
fabio@192.168.1.100's password:
test.tar.gz                                      0%    0     0.0KB/s   --:-- ETA
------------[ cut here ]------------
WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0x2cc/0x2f0()
NETDEV WATCHDOG: eth0 (asix): transmit queue 0 timed out
Modules linked in:
Backtrace:
[<80011c94>] (dump_backtrace+0x0/0x10c) from [<804d3a5c>] (dump_stack+0x18/0x1c)
 r6:000000ff r5:80412388 r4:80685dc0 r3:80696cc0
[<804d3a44>] (dump_stack+0x0/0x1c) from [<80021868>]
(warn_slowpath_common+0x54/0x6c)
[<80021814>] (warn_slowpath_common+0x0/0x6c) from [<80021924>]
(warn_slowpath_fmt+0x38/0x40)
...

Setting SDIS (Stream Disable Mode- bit 4 of USBMODE register) fixes the problem.

However, in current code CI13XXX_DISABLE_STREAMING flag is only set in udc mode,
so allow disabling streaming also in host mode.

Tested on a mx6qsabrelite board.

Suggested-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-11 16:01:07 -08:00
..
bits.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
ci13xxx_imx.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
ci13xxx_imx.h USB: chipidea: add imx usbmisc support 2012-09-12 11:20:38 -07:00
ci13xxx_msm.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
ci13xxx_pci.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
ci.h USB: chipidea: add vbus detect for udc 2012-09-12 11:20:38 -07:00
core.c USB: chipidea: fix use after free bug 2012-11-26 14:59:00 -08:00
debug.c usb: gadget: Remove reference to is_dualspeed from sysfs. 2012-11-08 16:04:34 +02:00
debug.h usb: chipidea: split the driver code into units 2012-05-11 16:49:51 -07:00
host.c usb: chipidea: Allow disabling streaming not only in udc mode 2013-01-11 16:01:07 -08:00
host.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
Kconfig USB: EHCI: fix build error by making ChipIdea host a normal EHCI driver 2012-11-02 10:03:50 -07:00
Makefile USB: chipidea: add -DDEBUG if debugging is enabled 2012-09-12 11:20:38 -07:00
udc.c USB: chipidea: add vbus detect for udc 2012-09-12 11:20:38 -07:00
udc.h usb: chipidea: use generic map/unmap routines 2012-05-11 16:59:35 -07:00
usbmisc_imx6q.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00