linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Error when unloading g_serial module
@ 2020-03-07  1:54 Otavio Salvador
  2020-03-07 19:51 ` Otavio Salvador
  0 siblings, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2020-03-07  1:54 UTC (permalink / raw)
  To: Felipe Balbi, sorganov, mirq-linux, felixhaedicke, linux-usb,
	Fabio Estevam

Hi,

Running kernel 5.4.23 on a RV1108 based board the following issue is
seen when removing the g_serial module.

[root@rv1108 ~]# rmmod g_serial
[root@rv1108 ~]#
[   78.090775] ------------[ cut here ]------------
[   78.091252] WARNING: CPU: 0 PID: 617 at
drivers/usb/gadget/function/u_serial.c:706 gs_close+0x8c/0x1e4
[u_serial]
[   78.092164] Modules linked in: usb_f_acm u_serial libcomposite
configfs zram zsmalloc emlog(O) wdtoken(O) clk_rk808 rtc_rk808
spi_rockchip [last unloaded: g_serial]
[   78.093529] CPU: 0 PID: 617 Comm: nm-online Tainted: G           O
    5.4.23 #41
[   78.094198] Hardware name: Rockchip (Device Tree)
[   78.094655] [<c0111100>] (unwind_backtrace) from [<c010c638>]
(show_stack+0x10/0x14)
[   78.095363] [<c010c638>] (show_stack) from [<c082b19c>]
(dump_stack+0xc0/0xd4)
[   78.096027] [<c082b19c>] (dump_stack) from [<c01357c8>] (__warn+0xe0/0xf8)
[   78.096655] [<c01357c8>] (__warn) from [<c0135890>]
(warn_slowpath_fmt+0xb0/0xb8)
[   78.097341] [<c0135890>] (warn_slowpath_fmt) from [<bf04ad8c>]
(gs_close+0x8c/0x1e4 [u_serial])
[   78.098137] [<bf04ad8c>] (gs_close [u_serial]) from [<c04f47cc>]
(tty_release+0xf0/0x47c)
[   78.098877] [<c04f47cc>] (tty_release) from [<c02afb14>] (__fput+0x88/0x214)
[   78.099517] [<c02afb14>] (__fput) from [<c01556a4>] (task_work_run+0xa4/0xc8)
[   78.100164] [<c01556a4>] (task_work_run) from [<c01397a4>]
(do_exit+0x3e4/0xac8)
[   78.100835] [<c01397a4>] (do_exit) from [<c013ad04>]
(do_group_exit+0x3c/0xc8)
[   78.101486] [<c013ad04>] (do_group_exit) from [<c013ada0>]
(__wake_up_parent+0x0/0x18)
[   78.102190] ---[ end trace f34de27d5eaf8688 ]---

Looks like port.count is not being correctly handled.

Does anyone have any suggestions on how we could fix this?

Thanks

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-13 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-07  1:54 Error when unloading g_serial module Otavio Salvador
2020-03-07 19:51 ` Otavio Salvador
2020-03-12  9:53   ` Peter Chen
2020-03-12 11:51     ` Otavio Salvador
2020-03-13 14:42       ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).