From: sashiko-bot@kernel.org
To: "Stéphane Grosjean" <stephane.grosjean@free.fr>
Cc: "Oliver Hartkopp" <socketcan@hartkopp.net>,
linux-can@vger.kernel.org,
"Marc Kleine-Budde" <mkl@pengutronix.de>,
"Vincent Mailhol" <mailhol@kernel.org>,
"Oleksij Rempel" <o.rempel@pengutronix.de>
Subject: Re: [PATCH 2/4] can: usb: ixxat_usb: add CL1 legacy protocol layer
Date: Thu, 23 Jul 2026 07:51:38 +0000 [thread overview]
Message-ID: <20260723075142.692B61F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260723072955.32575-3-stephane.grosjean@free.fr>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The commit message claims that the adapter descriptor references open, close, start, and stop callbacks, but these are neither implemented nor present in the adapter structure.
--
--- Patch [2]: [PATCH 2/4] can: usb: ixxat_usb: add CL1 legacy protocol layer ---
commit cf00ec1244509265defabbebdffce90e57fb3e67
Author: Stéphane Grosjean <s.grosjean@peak-system.fr>
can: usb: ixxat_usb: add CL1 legacy protocol layer
This commit implements the CL1 communication protocol for early firmware
versions of IXXAT USB-to-CAN adapters. It adds support for classic CAN 2.0b
frames and sets up bittiming constants and control modes.
> The exported usb2can_cl1 adapter descriptor references the CL1
> open/close/start/stop callbacks and the CL1 bittiming constants.
[Severity: Medium]
Is this description accurate? The commit message mentions that the descriptor
references open, close, start, and stop callbacks, but looking at the
definition of usb2can_cl1 below, only get_ctrl_caps and init_ctrl are present.
> diff --git a/drivers/net/can/usb/ixxat_usb/ixxat_usb_cl1.c b/drivers/net/can/usb/ixxat_usb/ixxat_usb_cl1.c
> new file mode 100644
> index 0000000000000..c1e337fc3b912
> --- /dev/null
> +++ b/drivers/net/can/usb/ixxat_usb/ixxat_usb_cl1.c
[ ... ]
> +const struct ixxat_usb_adapter usb2can_cl1 = {
> + .clock = IXXAT_USB_CLOCK,
> + .bt = &usb2can_bt,
> + .modes = IXXAT_USB_MODES,
> + .buffer_size_rx = IXXAT_USB_BUFFER_SIZE_RX,
> + .buffer_size_tx = IXXAT_USB_BUFFER_SIZE_TX,
> + .ep_msg_in = {
> + IXXAT_USB2CAN_EP1_IN,
> + IXXAT_USB2CAN_EP2_IN,
> + IXXAT_USB2CAN_EP3_IN,
> + IXXAT_USB2CAN_EP4_IN,
> + IXXAT_USB2CAN_EP5_IN
> + },
> + .ep_msg_out = {
> + IXXAT_USB2CAN_EP1_OUT,
> + IXXAT_USB2CAN_EP2_OUT,
> + IXXAT_USB2CAN_EP3_OUT,
> + IXXAT_USB2CAN_EP4_OUT,
> + IXXAT_USB2CAN_EP5_OUT
> + },
> + .get_ctrl_caps = ixxat_usb_get_ctrl_caps,
> + .init_ctrl = ixxat_usb_init_ctrl
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260723072955.32575-1-stephane.grosjean@free.fr?part=2
next prev parent reply other threads:[~2026-07-23 7:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 7:29 [PATCH 0/4] can: usb: Add driver for HMS IXXAT USB-to-CAN adapters Stéphane Grosjean
2026-07-23 7:29 ` [PATCH 1/4] can: usb: ixxat_usb: add shared header Stéphane Grosjean
2026-07-23 7:48 ` sashiko-bot
2026-07-23 7:29 ` [PATCH 2/4] can: usb: ixxat_usb: add CL1 legacy protocol layer Stéphane Grosjean
2026-07-23 7:51 ` sashiko-bot [this message]
2026-07-23 7:29 ` [PATCH 3/4] can: usb: ixxat_usb: add CL2/V2 protocol layer with CAN Stéphane Grosjean
2026-07-23 7:52 ` sashiko-bot
2026-07-23 7:29 ` [PATCH 4/4] can: usb: ixxat_usb: add core driver and Kconfig/Makefile Stéphane Grosjean
2026-07-23 7:55 ` sashiko-bot
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=20260723075142.692B61F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=mailhol@kernel.org \
--cc=mkl@pengutronix.de \
--cc=o.rempel@pengutronix.de \
--cc=sashiko-reviews@lists.linux.dev \
--cc=socketcan@hartkopp.net \
--cc=stephane.grosjean@free.fr \
/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