From: Vincent Mailhol <mailhol@kernel.org>
To: Oliver Hartkopp <socketcan@hartkopp.net>, linux-can@vger.kernel.org
Cc: Marc Kleine-Budde <mkl@pengutronix.de>, Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2] can: propagate CAN device capabilities via ml_priv
Date: Thu, 1 Jan 2026 13:25:49 +0100 [thread overview]
Message-ID: <93df46ef-c1db-4df7-a90f-088dbacf12c6@kernel.org> (raw)
In-Reply-To: <20251231165127.4206-1-socketcan@hartkopp.net>
Hi Oliver,
Happy new year to you and to all the members of the CAN mailing
list!(and also to Arnd who is listed in CC ;))
On 31/12/2025 at 17:51, Oliver Hartkopp wrote:
> Commit 1a620a723853 ("can: raw: instantly reject unsupported CAN frames")
> caused a sequence of dependency and linker fixes starting with commit
> cb2dc6d2869a ("can: Kconfig: select CAN driver infrastructure by default").
>
> The entire problem was caused by the requirement that a new network layer
> feature needed to know about the protocol capabilities of the CAN devices.
> Instead of accessing CAN device internal data structures which caused the
> dependency problems this patch introduces capabilty information into the
> CAN specific ml_priv data which is accessible from both sides.
>
> With this change the CAN network layer can check the required features and
> the decoupling of the driver layer and network layer is restored.
> Therefore the Kconfig and Makefile changes/fixes are reverted too.
>
> Fixes: 1a620a723853 ("can: raw: instantly reject unsupported CAN frames")
> Fixes: cb2dc6d2869a ("can: Kconfig: select CAN driver infrastructure by default")
> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
> ---
> drivers/net/can/Kconfig | 7 ++++--
> drivers/net/can/Makefile | 2 +-
> drivers/net/can/dev/Makefile | 5 ++--
> drivers/net/can/dev/dev.c | 19 +++++++++++++++
> drivers/net/can/dev/netlink.c | 1 +
> drivers/net/can/vcan.c | 15 ++++++++++++
> drivers/net/can/vxcan.c | 15 ++++++++++++
> include/linux/can/can-ml.h | 24 +++++++++++++++++++
> include/linux/can/dev.h | 8 +------
> net/can/raw.c | 45 ++++-------------------------------
This is a huge patch. I think it should be split in smaller pieces with
the reverts and the new code in different patches. What I would suggest
is to split it in 3 like this:
Patch #1: revert 1a620a723853 ("can: raw: instantly reject unsupported
CAN frames") and all the Kconfig subsequent fix attempts.
Patch #2: Introduce the new logic.
Patch #3: reintroduce 1a620a723853.
Reverting 1a620a723853 and reintroducing it later is kind of necessary
to have each patch of the series in a working state.
Yours sincerely,
Vincent Mailhol
next prev parent reply other threads:[~2026-01-01 12:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-31 16:51 [PATCH v2] can: propagate CAN device capabilities via ml_priv Oliver Hartkopp
2026-01-01 12:25 ` Vincent Mailhol [this message]
2026-01-01 15:21 ` Oliver Hartkopp
2026-01-01 12:31 ` Arnd Bergmann
2026-01-01 14:56 ` Oliver Hartkopp
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=93df46ef-c1db-4df7-a90f-088dbacf12c6@kernel.org \
--to=mailhol@kernel.org \
--cc=arnd@arndb.de \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=socketcan@hartkopp.net \
/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