Commit 5c7d3b4
committed
Revert "USB: gadget core: Issue ->disconnect() callback from usb_gadget_disconnect()"
This reverts commit 0a55187.
The commit triggers the following warning when removing a gadget module
from the kernel:
WARNING: CPU: 0 PID: 462 at drivers/usb/gadget/composite.c:2030 __composite_unbind+0xcc/0xd0 [libcomposite]
Modules linked in: cfg80211 usb_f_acm u_serial g_serial libcomposite atmel_usba_udc(-)
CPU: 0 PID: 462 Comm: rmmod Not tainted 5.4.32-linux4sam-2020.04-rc2 #1
Hardware name: Atmel SAMA5
[<c010da74>] (unwind_backtrace) from [<c010ae84>] (show_stack+0x10/0x14)
[<c010ae84>] (show_stack) from [<c011822c>] (__warn+0xb8/0xd0)
[<c011822c>] (__warn) from [<c01182f4>] (warn_slowpath_fmt+0xb0/0xb8)
[<c01182f4>] (warn_slowpath_fmt) from [<bf00b514>] (__composite_unbind+0xcc/0xd0 [libcomposite])
[<bf00b514>] (__composite_unbind [libcomposite]) from [<c0546988>] (usb_gadget_remove_driver+0x2c/0x54)
[<c0546988>] (usb_gadget_remove_driver) from [<c0546a8c>] (usb_del_gadget_udc+0x58/0xbc)
[<c0546a8c>] (usb_del_gadget_udc) from [<bf000840>] (usba_udc_remove+0x1c/0x24 [atmel_usba_udc])
[<bf000840>] (usba_udc_remove [atmel_usba_udc]) from [<c047c734>] (platform_drv_remove+0x20/0x40)
[<c047c734>] (platform_drv_remove) from [<c047b1bc>] (device_release_driver_internal+0xe8/0x1b8)
[<c047b1bc>] (device_release_driver_internal) from [<c047b2dc>] (driver_detach+0x38/0x60)
[<c047b2dc>] (driver_detach) from [<c0479edc>] (bus_remove_driver+0x4c/0xa0)
[<c0479edc>] (bus_remove_driver) from [<c016fbe0>] (sys_delete_module+0x164/0x204)
[<c016fbe0>] (sys_delete_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
Exception stack(0xd5557fa8 to 0xd5557ff0)
7fa0: 00000000 00000002 0044f184 00000800 f92b1100 beadabbc
7fc0: 00000000 00000002 beadac10 00000081 00000000 beadadfc 0044f148 00000001
7fe0: 0044cf70 beadabc4 004336fb b6e63668
There is no functionity issue related to this warning.1 parent 5f75839 commit 5c7d3b4
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | 704 | | |
708 | 705 | | |
709 | 706 | | |
| |||
725 | 722 | | |
726 | 723 | | |
727 | 724 | | |
728 | | - | |
| 725 | + | |
729 | 726 | | |
730 | | - | |
731 | | - | |
732 | 727 | | |
733 | 728 | | |
734 | 729 | | |
| |||
1297 | 1292 | | |
1298 | 1293 | | |
1299 | 1294 | | |
| 1295 | + | |
1300 | 1296 | | |
1301 | 1297 | | |
1302 | 1298 | | |
| |||
1486 | 1482 | | |
1487 | 1483 | | |
1488 | 1484 | | |
| 1485 | + | |
1489 | 1486 | | |
1490 | 1487 | | |
1491 | 1488 | | |
| |||
0 commit comments