* [PATCH 0/1] usb: fix bug in marvell libertas driver @ 2026-04-10 21:32 Jakov Novak 2026-04-10 21:32 ` [PATCH 1/1] add wake_up call inside if_usb_disconnect Jakov Novak 0 siblings, 1 reply; 9+ messages in thread From: Jakov Novak @ 2026-04-10 21:32 UTC (permalink / raw) To: linux-wireless Cc: Kees Cook, Szymon Wilczek, Ingo Molnar, Johannes Berg, Thomas Gleixner, John W . Linville, Dan Williams, libertas-dev, linux-kernel, skhan, Jakov Novak This patch fixes a bug inside the Marvell Libertas driver. The problem was the if_usb_disconnect function not properly calling wake_up(), which lead to if_usb_prog_firmware being stuck on initialization. This caused the lbs_wait_for_firmware_load to be stuck as well and to trigger the error message. The solution was to add the wake_up() call inside if_usb_disconnect. Jakov Novak (1): add wake_up call inside if_usb_disconnect drivers/net/wireless/marvell/libertas/if_usb.c | 1 + 1 file changed, 1 insertion(+) -- 2.53.0 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/1] add wake_up call inside if_usb_disconnect 2026-04-10 21:32 [PATCH 0/1] usb: fix bug in marvell libertas driver Jakov Novak @ 2026-04-10 21:32 ` Jakov Novak 2026-04-15 12:11 ` Johannes Berg 0 siblings, 1 reply; 9+ messages in thread From: Jakov Novak @ 2026-04-10 21:32 UTC (permalink / raw) To: linux-wireless Cc: Kees Cook, Szymon Wilczek, Ingo Molnar, Johannes Berg, Thomas Gleixner, John W . Linville, Dan Williams, libertas-dev, linux-kernel, skhan, Jakov Novak, syzbot+c99d17aa44dbdba16ad2 Fixes: 954ee164f4f45 Reported-and-tested-by: syzbot+c99d17aa44dbdba16ad2@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=c99d17aa44dbdba16ad2 Signed-off-by: Jakov Novak <jakovnovak30@gmail.com> --- drivers/net/wireless/marvell/libertas/if_usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/marvell/libertas/if_usb.c b/drivers/net/wireless/marvell/libertas/if_usb.c index 8a6bf1365cfa..245c902a7e42 100644 --- a/drivers/net/wireless/marvell/libertas/if_usb.c +++ b/drivers/net/wireless/marvell/libertas/if_usb.c @@ -310,6 +310,7 @@ static void if_usb_disconnect(struct usb_interface *intf) struct lbs_private *priv = cardp->priv; cardp->surprise_removed = 1; + wake_up(&cardp->fw_wq); if (priv) { lbs_stop_card(priv); -- 2.53.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] add wake_up call inside if_usb_disconnect 2026-04-10 21:32 ` [PATCH 1/1] add wake_up call inside if_usb_disconnect Jakov Novak @ 2026-04-15 12:11 ` Johannes Berg 2026-04-15 13:31 ` [PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak 2026-05-04 15:04 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak 0 siblings, 2 replies; 9+ messages in thread From: Johannes Berg @ 2026-04-15 12:11 UTC (permalink / raw) To: Jakov Novak, linux-wireless Cc: Kees Cook, Szymon Wilczek, Ingo Molnar, Thomas Gleixner, John W . Linville, Dan Williams, libertas-dev, linux-kernel, skhan, syzbot+c99d17aa44dbdba16ad2 On Fri, 2026-04-10 at 23:32 +0200, Jakov Novak wrote: > Fixes: 954ee164f4f45 > Reported-and-tested-by: syzbot+c99d17aa44dbdba16ad2@syzkaller.appspotmail.com > Closes: https://syzkaller.appspot.com/bug?extid=c99d17aa44dbdba16ad2 > Signed-off-by: Jakov Novak <jakovnovak30@gmail.com> Please correct the fixes tag, have a commit message explaining the change, and fix up the subject per the driver's convention (see older patches). johannes ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver 2026-04-15 12:11 ` Johannes Berg @ 2026-04-15 13:31 ` Jakov Novak 2026-04-15 13:31 ` [PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify fw_wq during disconnect Jakov Novak 2026-05-04 15:04 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak 1 sibling, 1 reply; 9+ messages in thread From: Jakov Novak @ 2026-04-15 13:31 UTC (permalink / raw) To: johannes Cc: dcbw, jakovnovak30, kees, libertas-dev, linux-kernel, linux-wireless, linville, mingo, skhan, swilczek.lx, syzbot+c99d17aa44dbdba16ad2, tglx Thank you for the reply. It should be fixed now. Jakov Novak (1): wifi: libertas: add wake_up() call to properly notify fw_wq during disconnect drivers/net/wireless/marvell/libertas/if_usb.c | 1 - 1 file changed, 1 deletion(-) -- 2.53.0 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify fw_wq during disconnect 2026-04-15 13:31 ` [PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak @ 2026-04-15 13:31 ` Jakov Novak 0 siblings, 0 replies; 9+ messages in thread From: Jakov Novak @ 2026-04-15 13:31 UTC (permalink / raw) To: johannes Cc: dcbw, jakovnovak30, kees, libertas-dev, linux-kernel, linux-wireless, linville, mingo, skhan, swilczek.lx, syzbot+c99d17aa44dbdba16ad2, tglx This is necessary because the thread would be stuck if the firmware is not fully loaded before the if_usb_disconnect function is called. In that case if_usb_prog_firmware would be stuck in wait_event_interruptible and lbs_remove_card would also be stuck waiting for firmware loading to be done which was the original bug reported. Fixes: 954ee164f4f4 ("[PATCH] libertas: reorganize and simplify init sequence") Reported-and-tested-by: syzbot+c99d17aa44dbdba16ad2@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=c99d17aa44dbdba16ad2 Signed-off-by: Jakov Novak <jakovnovak30@gmail.com> --- drivers/net/wireless/marvell/libertas/if_usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas/if_usb.c b/drivers/net/wireless/marvell/libertas/if_usb.c index 245c902a7e42..8a6bf1365cfa 100644 --- a/drivers/net/wireless/marvell/libertas/if_usb.c +++ b/drivers/net/wireless/marvell/libertas/if_usb.c @@ -310,7 +310,6 @@ static void if_usb_disconnect(struct usb_interface *intf) struct lbs_private *priv = cardp->priv; cardp->surprise_removed = 1; - wake_up(&cardp->fw_wq); if (priv) { lbs_stop_card(priv); -- 2.53.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver 2026-04-15 12:11 ` Johannes Berg 2026-04-15 13:31 ` [PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak @ 2026-05-04 15:04 ` Jakov Novak 2026-05-04 15:04 ` [resend PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify Jakov Novak ` (2 more replies) 1 sibling, 3 replies; 9+ messages in thread From: Jakov Novak @ 2026-05-04 15:04 UTC (permalink / raw) To: johannes Cc: dcbw, jakovnovak30, kees, libertas-dev, linux-kernel, linux-wireless, linville, mingo, skhan, swilczek.lx, syzbot+c99d17aa44dbdba16ad2, tglx This is the same patch with the suggested tag and message fixes. Jakov Novak (1): wifi: libertas: add wake_up() call to properly notify drivers/net/wireless/marvell/libertas/if_usb.c | 1 + 1 file changed, 1 insertion(+) -- 2.54.0 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [resend PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify 2026-05-04 15:04 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak @ 2026-05-04 15:04 ` Jakov Novak 2026-05-04 15:11 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Johannes Berg 2026-05-04 15:59 ` Jeff Johnson 2 siblings, 0 replies; 9+ messages in thread From: Jakov Novak @ 2026-05-04 15:04 UTC (permalink / raw) To: johannes Cc: dcbw, jakovnovak30, kees, libertas-dev, linux-kernel, linux-wireless, linville, mingo, skhan, swilczek.lx, syzbot+c99d17aa44dbdba16ad2, tglx This is necessary because the thread would be stuck if the firmware is not fully loaded before the if_usb_disconnect function is called. In that case if_usb_prog_firmware would be stuck in wait_event_interruptible and lbs_remove_card would also be stuck waiting for firmware loading to be done which was the original bug reported. Fixes: 954ee164f4f4 ("[PATCH] libertas: reorganize and simplify init sequence") Reported-and-tested-by: syzbot+c99d17aa44dbdba16ad2@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=c99d17aa44dbdba16ad2 Signed-off-by: Jakov Novak <jakovnovak30@gmail.com> --- drivers/net/wireless/marvell/libertas/if_usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/marvell/libertas/if_usb.c b/drivers/net/wireless/marvell/libertas/if_usb.c index 4fae0e335136..22f0bd6a141a 100644 --- a/drivers/net/wireless/marvell/libertas/if_usb.c +++ b/drivers/net/wireless/marvell/libertas/if_usb.c @@ -310,6 +310,7 @@ static void if_usb_disconnect(struct usb_interface *intf) struct lbs_private *priv = cardp->priv; cardp->surprise_removed = 1; + wake_up(&cardp->fw_wq); if (priv) { lbs_stop_card(priv); -- 2.54.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver 2026-05-04 15:04 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak 2026-05-04 15:04 ` [resend PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify Jakov Novak @ 2026-05-04 15:11 ` Johannes Berg 2026-05-04 15:59 ` Jeff Johnson 2 siblings, 0 replies; 9+ messages in thread From: Johannes Berg @ 2026-05-04 15:11 UTC (permalink / raw) To: Jakov Novak Cc: dcbw, kees, libertas-dev, linux-kernel, linux-wireless, linville, mingo, skhan, swilczek.lx, syzbot+c99d17aa44dbdba16ad2, tglx On Mon, 2026-05-04 at 17:04 +0200, Jakov Novak wrote: > This is the same patch with the suggested tag and message fixes. > That makes it not a resend but a v3 I guess ... johannes ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver 2026-05-04 15:04 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak 2026-05-04 15:04 ` [resend PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify Jakov Novak 2026-05-04 15:11 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Johannes Berg @ 2026-05-04 15:59 ` Jeff Johnson 2 siblings, 0 replies; 9+ messages in thread From: Jeff Johnson @ 2026-05-04 15:59 UTC (permalink / raw) To: Jakov Novak, johannes Cc: dcbw, kees, libertas-dev, linux-kernel, linux-wireless, linville, mingo, skhan, swilczek.lx, syzbot+c99d17aa44dbdba16ad2, tglx On 5/4/2026 8:04 AM, Jakov Novak wrote: > This is the same patch with the suggested tag and message fixes. > > Jakov Novak (1): > wifi: libertas: add wake_up() call to properly notify > > drivers/net/wireless/marvell/libertas/if_usb.c | 1 + > 1 file changed, 1 insertion(+) > 1) A single patch doesn't need a cover letter 2) new versions of a patch should be a separate thread. Don't make new versions "In-reply-to" the previous version. 3) Ingo Molnar once suggested a good template to follow for many changes:https://lore.kernel.org/all/20131111113218.GF15810@gmail.com/ Over time I found this advice helpful, although not that exact template, especially given that using "we" is now strongly discouraged. I suggest something more like: Currently, when <scenario>, <code reference> does <action>. This has a <problem description>. To address this issue, <imperative action to fix the code>. <Any other comments which support this action such as describing how it fixes the problem, how we know there are no side-effects (or known side-effects or limitations)> ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-05-04 16:00 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-04-10 21:32 [PATCH 0/1] usb: fix bug in marvell libertas driver Jakov Novak 2026-04-10 21:32 ` [PATCH 1/1] add wake_up call inside if_usb_disconnect Jakov Novak 2026-04-15 12:11 ` Johannes Berg 2026-04-15 13:31 ` [PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak 2026-04-15 13:31 ` [PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify fw_wq during disconnect Jakov Novak 2026-05-04 15:04 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Jakov Novak 2026-05-04 15:04 ` [resend PATCH v2 1/1] wifi: libertas: add wake_up() call to properly notify Jakov Novak 2026-05-04 15:11 ` [resend PATCH v2 0/1] wifi: libertas: fix bug in Marvell Libertas driver Johannes Berg 2026-05-04 15:59 ` Jeff Johnson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox