[Xperia Z Original Android Development] angelsel:
thomas1991_12,

Connecting any USB storage device via OTG causes your kernel to panic. (segfault, actually)

[ 222.849121] msm_otg msm_otg: USB exited from low power mode
[ 222.854187] msm_otg msm_otg: b_idle work, inputs=0x00000040
[ 223.064361] mhl: USB detected
[ 223.066802] msm_otg msm_otg: changed to a_idle, from b_idle
[ 223.072692] PMIC: ID set
[ 223.075164] msm_otg msm_otg: a_idle work, inputs=0x00000041
[ 223.080413] msm_otg msm_otg: changed to b_idle, from a_idle
[ 223.086761] msm_otg msm_otg: b_idle work, inputs=0x00000041
[ 223.092193] msm_otg msm_otg: phy_reset: success
[ 223.200866] msm_otg msm_otg: b_idle work, inputs=0x00000000
[ 224.201660] msm_otg msm_otg: changed to a_idle, from b_idle
[ 224.206634] msm_otg msm_otg: a_idle work, inputs=0x00000040
[ 224.231964] msm_otg msm_otg: changed to a_wait_vrise, from a_idle
[ 224.333435] msm_otg msm_otg: a_wait_vrise work, inputs=0x00000140
[ 224.339263] 8921_l3: requested voltage range [3300000, 3300000] does not fit within constraints: [3075000, 3075000]
[ 224.349761] msm_hsusb_host msm_hsusb_host: Qualcomm On-Chip EHCI Host Controller
[ 224.357604] msm_hsusb_host msm_hsusb_host: new USB bus registered, assigned bus number 2
[ 224.390289] msm_hsusb_host msm_hsusb_host: irq 132, io mem 0x12500000
[ 224.411529] msm_hsusb_host msm_hsusb_host: USB 2.0 started, EHCI 1.00
[ 224.417572] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 224.424530] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 224.431701] usb usb2: Product: Qualcomm On-Chip EHCI Host Controller
[ 224.437622] usb usb2: Manufacturer: Linux 3.4.91-ge87612f-00889-gf61f6fe ehci_hcd
[ 224.445495] usb usb2: SerialNumber: msm_hsusb_host
[ 224.457397] hub 2-0:1.0: USB hub found
[ 224.461151] hub 2-0:1.0: 1 port detected
[ 224.481689] msm_otg msm_otg: changed to a_wait_bcon, from a_wait_vrise
[ 224.780303] usb 2-1: new high-speed USB device number 2 using msm_hsusb_host
[ 224.937438] usb 2-1: New USB device found, idVendor=0a16, idProduct=1200
[ 224.943878] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 224.950775] usb 2-1: Product: TDMINIG4
[ 224.954650] usb 2-1: Manufacturer: TREK
[ 224.958160] usb 2-1: SerialNumber: 79500be0cbc1b9
[ 224.973052] scsi0 : usb-storage 2-1:1.0
[ 225.974670] Unable to handle kernel NULL pointer dereference at virtual address 000000b8
[ 225.982543] pgd = c0004000
[ 225.984802] [000000b8] *pgd=00000000
[ 225.988586] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 225.993957] Modules linked in: wlan(C)
[ 225.997619] CPU: 0 Tainted: G WC (3.4.91-ge87612f-00889-gf61f6fe #1)
[ 226.005218] PC is at scsi_run_queue+0x18/0x214
[ 226.009307] LR is at scsi_next_command+0x2c/0x38
[ 226.013885] pc : [<c04ee1e4>] lr : [<c04eeb6c>] psr: 20000013
[ 226.013885] sp : c0071ee0 ip : 00089060 fp : 00000000
[ 226.025360] r10: d4f78cc0 r9 : e7bba000 r8 : c1faf530
[ 226.030883] r7 : c0071ee0 r6 : 00000000 r5 : d4f78cc0 r4 : d9c638b8
[ 226.037048] r3 : 00000003 r2 : 00000000 r1 : c27a9f00 r0 : c1faf530
[ 226.043914] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 226.051177] Control: 10c5787d Table: ad91406a DAC: 00000015
[ 226.056579] Process ksoftirqd/0 (pid: 3, stack limit = 0xc00702f0)
[ 226.063079] Stack: (0xc0071ee0 to 0xc0072000)
[ 226.067108] 1ee0: c0071ee0 c0071ee0 d9c638b8 d4f78cc0 c1faf530 00000000 c1faf530 e7bba000
[ 226.075561] 1f00: d4f78cc0 c04eeb6c 00000000 e7bba000 00000000 c04eefc4 5953bcfa 00000033
[ 226.083740] 1f20: c1faf530 00000024 d4f78cc0 d9c63800 e765b618 c0071f58 c0e1e0d0 00000004
[ 226.091583] 1f40: 00000001 c1007ec0 c0f1ebe4 00000101 0000000a c0386188 c0071f58 c0071f58
[ 226.100067] 1f60: c0070028 c0186dc4 c0070000 c0070000 00000000 c0070000 00000001 c0070020
[ 226.108215] 1f80: c0070000 c0070000 00000001 00000000 c1007ec0 c1007ec0 c0909ef4 c0186fa0
[ 226.116058] 1fa0: 00000000 00000000 00000000 c0055f50 00000000 c0186ed8 00000013 00000000
[ 226.124542] 1fc0: 00000000 00000000 00000000 c019e284 00000000 00000000 00000000 00000000
[ 226.132690] 1fe0: c0071fe0 c0071fe0 c0055f50 c019e204 c0106d30 c0106d30 00000000 00000000
[ 226.140899] [<c04ee1e4>] (scsi_run_queue+0x18/0x214) from [<c04eeb6c>] (scsi_next_command+0x2c/0x38)
[ 226.149688] [<c04eeb6c>] (scsi_next_command+0x2c/0x38) from [<c04eefc4>] (scsi_io_completion+0x408/0x4ac)
[ 226.159545] [<c04eefc4>] (scsi_io_completion+0x408/0x4ac) from [<c0386188>] (blk_done_softirq+0x80/0x94)
[ 226.169006] [<c0386188>] (blk_done_softirq+0x80/0x94) from [<c0186dc4>] (__do_softirq+0x10c/0x220)
[ 226.177947] [<c0186dc4>] (__do_softirq+0x10c/0x220) from [<c0186fa0>] (run_ksoftirqd+0xc8/0x1a4)
[ 226.186737] [<c0186fa0>] (run_ksoftirqd+0xc8/0x1a4) from [<c019e284>] (kthread+0x80/0x8c)
[ 226.194549] [<c019e284>] (kthread+0x80/0x8c) from [<c0106d30>] (kernel_thread_exit+0x0/0x8)
[ 226.203216] Code: e1a08000 e1a0700d e58dd000 e58dd004 (e59650b8)
[ 226.209442] ---[ end trace da227214a82491b9 ]---
[B][ 226.213623] Kernel panic - not syncing: Fatal exception in interrupt[/B]
[ 226.220245] wcnss_8960: crash shutdown : 0
[ 226.725708] &@panic_name@:*ksoftirqd/0*
[ 226.729827] Rebooting in 5 seconds..
[ 231.742156] Restarting Linux version 3.4.91-ge87612f-00889-gf61f6fe (thomas@Satellite-L500) (gcc version 4.10.0 20140506 (experimental) (UBER-SaberMod-4.10.0_arm-graphite) ) #1 SMP PREEMPT Wed May 21 01:34:59 CEST 2014
[ 231.742156]
[ 231.762664]
[ 231.763824] Restarting Linux version 3.4.91-ge87612f-00889-gf61f6fe (thomas@Satellite-L500) (gcc version 4.10.0 20140506 (experimental) (UBER-SaberMod-4.10.0_arm-graphite) ) #1 SMP PREEMPT Wed May 21 01:34:59 CEST 2014
[ 231.763854]
[ 231.786163] Going down for restart now

Maybe want to fix this before it's (if ever) merged on Gerrit.

Thanks!