From: netdev-bot+sashiko@kernel.org
To: mkl@pengutronix.de
Cc: mailhol@kernel.org, pfink@christ-es.de, eric@evenchick.com,
max@schneidersoft.net, wg@grandegger.com, kernel@pengutronix.de,
linux-can@vger.kernel.org, stable@vger.kernel.org,
kuba@kernel.org
Subject: Re: [PATCH can-next v11 8/9] can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages
Date: Tue, 01 Dec 2026 20:53:25 +0000 [thread overview]
Message-ID: <179615840536.3142.4794708287960279739@kernel.org> (raw)
In-Reply-To: <20261130-gs_usb-fixes-v11-8-3f052bb620d4@pengutronix.de>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This patch fixes a defect that came from specific earlier
commits, but it has no Fixes: tag.
--
can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages
When the IN URB resubmit in gs_usb_receive_bulk_callback() fails, this
commit logs the message against the USB device with
dev_info_ratelimited(). Previously it used net_ratelimit() and
netdev_info(). The message now names the affected device even when the
resubmit happens before netdev is assigned, and the NULL initialization
of netdev is dropped.
Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260729102802.505168-1-mkl@pengutronix.de
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260729102802.505168-1-mkl@pengutronix.de
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
[Severity: Low]
Should this patch have a Fixes: tag?
The message being changed was added by commit 79a6d1bfe114 ("can: gs_usb:
gs_usb_receive_bulk_callback(): unanchor URL on usb_submit_urb() error").
In gs_usb_receive_bulk_callback(), the early short read path jumps to
resubmit_urb before netdev is assigned:
minimum_length = sizeof(hf->header);
if (urb->actual_length < minimum_length) {
...
goto resubmit_urb;
}
If usb_submit_urb() then fails with an error other than -ENODEV or
-ESHUTDOWN, the old code passed netdev to netdev_info().
Commit 494fc029f662 ("can: gs_usb: gs_usb_receive_bulk_callback(): fix
error message") set netdev to NULL on that path. After that change the
message printed "(NULL net_device): failed to re-submit IN URB: ..."
without saying which device failed.
This patch finishes that fix and removes the NULL initialization that
494fc029f662 added. Would a tag like this help here?
Fixes: 494fc029f662 ("can: gs_usb: gs_usb_receive_bulk_callback(): fix error message")
Without it, stable trees that took 494fc029f662 have no way to find this
follow-up automatically. The other bug fixes earlier in this series
appear to carry Fixes: tags.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130-gs_usb-fixes-v11-0-3f052bb620d4%40pengutronix.de
parent reply other threads:[~2026-12-01 20:53 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20261130-gs_usb-fixes-v11-8-3f052bb620d4@pengutronix.de>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179615840536.3142.4794708287960279739@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=eric@evenchick.com \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=mailhol@kernel.org \
--cc=max@schneidersoft.net \
--cc=mkl@pengutronix.de \
--cc=pfink@christ-es.de \
--cc=stable@vger.kernel.org \
--cc=wg@grandegger.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox