1
0

831-ledtrig_netdev.patch 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. From: Alexey Brodkin <abrodkin@synopsys.com>
  2. Subject: usb: Remove annoying warning about bogus URB
  3. When ath9k-htc Wi-Fi dongle is used with generic OHCI controller
  4. infinite stream of warnings appears in debug console like this:
  5. -------------------------->8----------------------
  6. usb 1-1: new full-speed USB device number 2 using ohci-platform
  7. usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
  8. usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size:
  9. 51008
  10. ------------[ cut here ]------------
  11. WARNING: CPU: 0 PID: 19 at drivers/usb/core/urb.c:449
  12. usb_submit_urb+0x1b4/0x498()
  13. usb 1-1: BOGUS urb xfer, pipe 1 != type 3
  14. Modules linked in:
  15. CPU: 0 PID: 19 Comm: kworker/0:1 Not tainted
  16. 4.4.0-rc4-00017-g00e2d79-dirty #3
  17. Workqueue: events request_firmware_work_func
  18. Stack Trace:
  19. arc_unwind_core.constprop.1+0xa4/0x110
  20. ---[ end trace 649ef8c342817fc2 ]---
  21. ------------[ cut here ]------------
  22. WARNING: CPU: 0 PID: 19 at drivers/usb/core/urb.c:449
  23. usb_submit_urb+0x1b4/0x498()
  24. usb 1-1: BOGUS urb xfer, pipe 1 != type 3
  25. Modules linked in:
  26. CPU: 0 PID: 19 Comm: kworker/0:1 Tainted: G W
  27. 4.4.0-rc4-00017-g00e2d79-dirty #3
  28. Workqueue: events request_firmware_work_func
  29. Stack Trace:
  30. arc_unwind_core.constprop.1+0xa4/0x110
  31. ---[ end trace 649ef8c342817fc3 ]---
  32. ------------[ cut here ]------------
  33. -------------------------->8----------------------
  34. There're some discussions in mailing lists proposing to disable
  35. that particular check alltogether and magically all seem to work
  36. fine with muted warning.
  37. Anyways new thread on that regard could be found here:
  38. http://lists.infradead.org/pipermail/linux-snps-arc/2016-July/001310.html
  39. Let's see what comes out of that new discussion, hopefully patching
  40. of generic USB stuff won't be required then.
  41. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
  42. ---
  43. drivers/leds/Makefile | 1 +
  44. drivers/leds/trigger/Kconfig | 7 +++++++
  45. 2 files changed, 8 insertions(+)
  46. --- a/drivers/leds/Makefile
  47. +++ b/drivers/leds/Makefile
  48. @@ -77,3 +77,4 @@ obj-$(CONFIG_LEDS_DAC124S085) += leds-d
  49. # LED Triggers
  50. obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
  51. +obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o
  52. --- a/drivers/leds/trigger/Kconfig
  53. +++ b/drivers/leds/trigger/Kconfig
  54. @@ -126,4 +126,11 @@ config LEDS_TRIGGER_PANIC
  55. a different trigger.
  56. If unsure, say Y.
  57. +config LEDS_TRIGGER_NETDEV
  58. + tristate "LED Netdev Trigger"
  59. + depends on NET && LEDS_TRIGGERS
  60. + help
  61. + This allows LEDs to be controlled by network device activity.
  62. + If unsure, say Y.
  63. +
  64. endif # LEDS_TRIGGERS