mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
usbnet:USBLAN Super speed plus support
Set the ssp_descriptors as ss_descriptors in Moto USBLAN driver, otherwise panic will be triggered when connected With super speed plus supported PC panic trace: configfs-gadget gadget: super-speed-plus config #1: b configfs-gadget gadget: usbnet_set_alt intf: 1 alt: 0 configfs-gadget gadget: do_set_config ep ep2in configfs-gadget gadget: config_ep_by_speed ep ep2in Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 pstate: 60c00085 (nZCv daIf +PAN +UAO) pc : config_ep_by_speed_and_alt+0x90/0x308 lr : config_ep_by_speed+0x14/0x20 sp : ffffffc0131f3980 x29: ffffffc0131f3990 x28: 0000000000000001 x27: 0000000000007fff x26: ffffffe13d3f3254 x25: ffffff81c041Montana0 x24: ffffff81c0504f00 x23: 0000000000000001 x22: ffffff81c07bf480 x21: 0000000000000001 x20: ffffff81c0504f00 x19: ffffff81c166ca00 x18: ffffffc012931080 x17: 0000000000000041 x16: ffffffe13d3e4b0c x15: ffffffe13e0a9197 x14: 0000000000000050 x13: 0000000000001e06 x12: 00000000341555ac x11: 00000000fffd4775 x10: 0000000000000000 x9 : 0000000000000001 x8 : ffffff81c0504f28 x7 : 0000000000000000 x6 : ffffffe13eb2592b x5 : 0000000000000054 x4 : 0000000000000008 x3 : 0000000000000000 x2 : ffffff81d11d9e00 x1 : ffffff81c0504f00 x0 : ffffff81d11a93c8 Call trace: config_ep_by_speed_and_alt+0x90/0x308 config_ep_by_speed+0x14/0x20 do_set_config+0x70/0x2f8 [moto_f_usbnet] usbnet_set_alt+0x30/0x60 [moto_f_usbnet] set_config+0x29c/0x56c composite_setup+0x40c/0x188c android_setup+0x11c/0x180 dwc3_ep0_set_config+0x548/0x830 dwc3_ep0_inspect_setup+0x234/0x334 dwc3_ep0_interrupt+0x98/0x338 dwc3_process_event_entry+0x144/0x678 dwc3_process_event_buf+0x68/0x580 dwc3_bh_work+0x64/0xf8 process_one_work+0x2cc/0x568 worker_thread+0x28c/0x518 kthread+0x160/0x170 ret_from_fork+0x10/0x18 Change-Id: I68c8309ad81a36c4c40657e62c45a6902a17dde6 Signed-off-by: a17671 <a17671@motorola.com> Reviewed-on: https://gerrit.mot.com/2048201 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-by: Yuecai Liu <liuyc20@motorola.com> Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
720f1980f5
commit
c9837700df
1 changed files with 1 additions and 0 deletions
|
|
@ -1043,6 +1043,7 @@ static struct usb_function *usbnet_alloc(struct usb_function_instance *fi)
|
|||
dev->function.fs_descriptors = fs_function;
|
||||
dev->function.hs_descriptors = hs_function;
|
||||
dev->function.ss_descriptors = ss_function;
|
||||
dev->function.ssp_descriptors = ss_function;
|
||||
|
||||
dev->function.bind = usbnet_bind;
|
||||
dev->function.unbind = usbnet_unbind;
|
||||
|
|
|
|||
Loading…
Reference in a new issue