Peter Chen
95cd7dc47a
usb: cdns3: gadget: prev_req->trb is NULL for ep0
And there are no multiple TRBs on EP0 and WA1 workaround,
so it doesn't need to change TRB for EP0. It fixes below oops.
configfs-gadget gadget: high-speed config #1: b
android_work: sent uevent USB_STATE=CONFIGURED
Unable to handle kernel read from unreadable memory at virtual address 0000000000000008
Mem abort info:
android_work: sent uevent USB_STATE=DISCONNECTED
ESR = 0x96000004
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
Data abort info:
ISV = 0, ISS = 0x00000004
CM = 0, WnR = 0
user pgtable: 4k pages, 48-bit VAs, pgdp=00000008b5bb7000
[0000000000000008] pgd=0000000000000000
Internal error: Oops: 96000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 2 PID: 430 Comm: HwBinder:401_1 Not tainted 5.4.24-06071-g6fa8921409c1-dirty #77
Hardware name: Freescale i.MX8QXP MEK (DT)
pstate: 60400085 (nZCv daIf +PAN -UAO)
pc : cdns3_gadget_ep_dequeue+0x1d4/0x270
lr : cdns3_gadget_ep_dequeue+0x48/0x270
sp : ffff800012763ba0
x29: ffff800012763ba0 x28: ffff00082c653c00
x27: 0000000000000000 x26: ffff000068fa7b00
x25: ffff0000699b2000 x24: ffff00082c6ac000
x23: ffff000834f0a480 x22: ffff000834e87b9c
x21: 0000000000000000 x20: ffff000834e87800
x19: ffff000069eddc00 x18: 0000000000000000
x17: 0000000000000000 x16: 0000000000000000
x15: 0000000000000000 x14: 0000000000000000
x13: 0000000000000000 x12: 0000000000000001
x11: ffff80001180fbe8 x10: 0000000000000001
x9 : ffff800012101558 x8 : 0000000000000001
x7 : 0000000000000006 x6 : ffff000835d9c668
x5 : ffff000834f0a4c8 x4 : 0000000096000000
x3 : 0000000000001810 x2 : 0000000000000000
x1 : ffff800024bd001c x0 : 0000000000000001
Call trace:
cdns3_gadget_ep_dequeue+0x1d4/0x270
usb_ep_dequeue+0x34/0xf8
composite_dev_cleanup+0x154/0x170
configfs_composite_unbind+0x6c/0xa8
usb_gadget_remove_driver+0x44/0x70
usb_gadget_unregister_driver+0x74/0xe0
unregister_gadget+0x28/0x58
gadget_dev_desc_UDC_store+0x80/0x110
configfs_write_file+0x1e0/0x2a0
__vfs_write+0x48/0x90
vfs_write+0xe4/0x1c8
ksys_write+0x78/0x100
__arm64_sys_write+0x24/0x30
el0_svc_common.constprop.0+0x74/0x168
el0_svc_handler+0x34/0xa0
el0_svc+0x8/0xc
Code: 52830203 b9407660 f94042e4 11000400 (b9400841)
---[ end trace 1574516e4c1772ca ]---
Kernel panic - not syncing: Fatal exception
SMP: stopping secondary CPUs
Kernel Offset: disabled
CPU features: 0x0002,20002008
Memory Limit: none
Rebooting in 5 seconds..
Fixes: f616c3bda4 ("usb: cdns3: Fix dequeue implementation")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
2020-05-09 11:05:08 +03:00
..
2020-04-27 10:33:40 +02:00
2020-04-28 17:44:34 +02:00
2020-03-23 07:59:38 +01:00
2020-04-23 09:59:30 -06:00
2020-03-25 11:50:48 +01:00
2020-03-23 07:59:38 +01:00
2020-04-28 17:57:13 +02:00
2020-05-02 10:28:13 -04:00
2020-05-05 16:59:54 +02:00
2020-04-21 12:27:18 -07:00
2020-04-13 12:20:07 -07:00
2020-04-05 09:24:58 +02:00
2020-04-19 17:50:00 +01:00
2020-04-27 10:30:11 +02:00
2020-04-10 11:32:22 +02:00
2020-05-06 20:53:22 -07:00
2020-04-02 19:15:03 -07:00
2020-03-25 08:35:03 +09:00
2020-04-28 21:46:35 +05:30
2020-04-30 19:47:39 +05:30
2020-03-30 16:40:08 -07:00
2020-03-25 11:50:48 +01:00
2020-04-03 13:22:40 -07:00
2020-04-26 11:04:15 -07:00
2020-03-30 20:45:30 -07:00
2020-04-04 10:27:00 -07:00
2020-05-08 15:04:25 +10:00
2020-05-04 11:24:58 +02:00
2020-04-27 13:28:27 -07:00
2020-04-18 10:13:07 -07:00
2020-03-25 22:30:46 -07:00
2020-03-24 13:45:24 +01:00
2020-04-30 16:12:33 +02:00
2020-03-29 10:35:50 +02:00
2020-04-04 18:07:59 -07:00
2020-03-30 16:40:08 -07:00
2020-04-20 14:07:00 +02:00
2020-04-24 15:40:41 -03:00
2020-04-07 20:20:12 -07:00
2020-04-29 13:11:44 +02:00
2020-05-01 13:37:23 +02:00
2020-04-17 08:59:55 +01:00
2020-04-16 13:52:31 -07:00
2020-04-06 23:12:08 +02:00
2020-03-30 11:43:51 -07:00
2020-04-03 13:22:40 -07:00
2020-03-19 23:04:32 -05:00
2020-04-30 16:45:08 -07:00
2020-03-30 15:05:01 -07:00
2020-04-03 15:05:35 -07:00
2020-03-26 22:40:47 -04:00
2020-03-30 07:35:28 +01:00
2020-05-05 16:56:41 +02:00
2020-04-22 17:57:17 +02:00
2020-04-28 15:04:09 +02:00
2020-04-09 22:00:13 +02:00
2020-05-06 20:13:10 -07:00
2020-03-25 18:58:11 -07:00
2020-04-03 14:25:02 -07:00
2020-04-08 21:03:40 -07:00
2020-04-27 17:08:06 +02:00
2020-03-25 19:23:49 +01:00
2020-04-17 08:31:34 -05:00
2020-04-13 16:14:55 +05:30
2020-04-05 22:05:23 +02:00
2020-04-14 19:16:51 -05:00
2020-03-31 18:48:22 +02:00
2020-03-31 10:05:01 -07:00
2020-04-30 12:10:49 +05:30
2020-04-04 10:27:00 -07:00
2020-05-06 16:40:14 -07:00
2020-04-10 15:36:22 -07:00
2020-03-30 16:40:08 -07:00
2020-04-03 00:09:59 +11:00
2020-04-21 15:45:32 -07:00
2020-04-03 21:41:42 +02:00
2020-04-29 19:57:45 +02:00
2020-04-23 09:28:15 -07:00
2020-04-17 06:05:29 -04:00
2020-04-07 19:48:52 -07:00
2020-05-04 11:21:40 -07:00
2020-03-18 12:27:04 +01:00
2020-04-28 22:59:55 -04:00
2020-04-21 14:21:20 +02:00
2020-04-03 13:22:40 -07:00
2020-04-02 15:50:04 -07:00
2020-05-05 12:36:05 +02:00
2020-04-22 00:02:13 -04:00
2020-04-03 15:05:35 -07:00
2020-04-07 20:00:16 -07:00
2020-04-28 19:00:59 +02:00
2020-05-08 08:56:16 -07:00
2020-03-18 12:34:10 +01:00
2020-05-09 11:05:08 +03:00
2020-04-20 10:19:22 -04:00
2020-04-23 12:10:01 -06:00
2020-05-06 20:53:22 -07:00
2020-04-07 20:24:34 -07:00
2020-03-19 07:41:03 +01:00
2020-04-17 06:05:30 -04:00
2020-04-08 11:18:38 +02:00
2020-04-17 10:35:17 -07:00
2020-04-03 13:12:26 -07:00
2020-04-08 10:51:53 -07:00
2020-04-08 10:51:53 -07:00