* [PATCH] can: CAN_BXCAN should depend on ARCH_STM32
@ 2023-04-04 11:59 Geert Uytterhoeven
2023-04-04 12:59 ` Simon Horman
2023-04-06 7:44 ` Marc Kleine-Budde
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2023-04-04 11:59 UTC (permalink / raw)
To: Dario Binacchi, Vincent Mailhol, Wolfgang Grandegger,
Marc Kleine-Budde
Cc: linux-can, netdev, Geert Uytterhoeven
The STMicroelectronics STM32 basic extended CAN Controller (bxCAN) is
only present on STM32 SoCs. Hence drop the "|| OF" part from its
dependency rule, to prevent asking the user about this driver when
configuring a kernel without STM32 SoC support.
Fixes: f00647d8127be4d3 ("can: bxcan: add support for ST bxCAN controller")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Until v3[1], BXCAN depended on "(ARCH_STM32 || COMPILE_TEST) && OF".
v4[2] changed this from "&& OF" to "|| OF", for no apparent reason, and
without mentioning this in the changelog.
[1] https://lore.kernel.org/all/20220828133329.793324-5-dario.binacchi@amarulasolutions.com
[2] https://lore.kernel.org/all/20220925175209.1528960-6-dario.binacchi@amarulasolutions.com
---
drivers/net/can/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig
index 3ceccafd701b2a31..b190007c01bec5f4 100644
--- a/drivers/net/can/Kconfig
+++ b/drivers/net/can/Kconfig
@@ -95,7 +95,7 @@ config CAN_AT91
config CAN_BXCAN
tristate "STM32 Basic Extended CAN (bxCAN) devices"
- depends on OF || ARCH_STM32 || COMPILE_TEST
+ depends on ARCH_STM32 || COMPILE_TEST
depends on HAS_IOMEM
select CAN_RX_OFFLOAD
help
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] can: CAN_BXCAN should depend on ARCH_STM32
2023-04-04 11:59 [PATCH] can: CAN_BXCAN should depend on ARCH_STM32 Geert Uytterhoeven
@ 2023-04-04 12:59 ` Simon Horman
2023-04-06 7:44 ` Marc Kleine-Budde
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2023-04-04 12:59 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Dario Binacchi, Vincent Mailhol, Wolfgang Grandegger,
Marc Kleine-Budde, linux-can, netdev
On Tue, Apr 04, 2023 at 01:59:00PM +0200, Geert Uytterhoeven wrote:
> The STMicroelectronics STM32 basic extended CAN Controller (bxCAN) is
> only present on STM32 SoCs. Hence drop the "|| OF" part from its
> dependency rule, to prevent asking the user about this driver when
> configuring a kernel without STM32 SoC support.
>
> Fixes: f00647d8127be4d3 ("can: bxcan: add support for ST bxCAN controller")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] can: CAN_BXCAN should depend on ARCH_STM32
2023-04-04 11:59 [PATCH] can: CAN_BXCAN should depend on ARCH_STM32 Geert Uytterhoeven
2023-04-04 12:59 ` Simon Horman
@ 2023-04-06 7:44 ` Marc Kleine-Budde
1 sibling, 0 replies; 3+ messages in thread
From: Marc Kleine-Budde @ 2023-04-06 7:44 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Dario Binacchi, Vincent Mailhol, Wolfgang Grandegger, linux-can,
netdev
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
On 04.04.2023 13:59:00, Geert Uytterhoeven wrote:
> The STMicroelectronics STM32 basic extended CAN Controller (bxCAN) is
> only present on STM32 SoCs. Hence drop the "|| OF" part from its
> dependency rule, to prevent asking the user about this driver when
> configuring a kernel without STM32 SoC support.
>
> Fixes: f00647d8127be4d3 ("can: bxcan: add support for ST bxCAN controller")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Applied to linux-can-next.
Thanks,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-06 9:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-04 11:59 [PATCH] can: CAN_BXCAN should depend on ARCH_STM32 Geert Uytterhoeven
2023-04-04 12:59 ` Simon Horman
2023-04-06 7:44 ` Marc Kleine-Budde
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).