From 371f81d15713e2342b65f0175536b7b9f5ba52af Mon Sep 17 00:00:00 2001 From: Peter van der Perk Date: Thu, 22 Dec 2022 14:08:45 +0100 Subject: [PATCH] S32K3XX FlexCAN kconfig fix to work in conjunction with EMAC ioctl --- arch/arm/src/s32k3xx/s32k3xx_flexcan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/s32k3xx/s32k3xx_flexcan.c b/arch/arm/src/s32k3xx/s32k3xx_flexcan.c index 8b169af637..acb289a9ad 100644 --- a/arch/arm/src/s32k3xx/s32k3xx_flexcan.c +++ b/arch/arm/src/s32k3xx/s32k3xx_flexcan.c @@ -1639,7 +1639,7 @@ static int s32k3xx_txavail(struct net_driver_s *dev) * ****************************************************************************/ -#ifdef CONFIG_NETDEV_CAN_BITRATE_IOCTL +#ifdef CONFIG_NETDEV_IOCTL static int s32k3xx_ioctl(struct net_driver_s *dev, int cmd, unsigned long arg) { @@ -1649,6 +1649,7 @@ static int s32k3xx_ioctl(struct net_driver_s *dev, int cmd, switch (cmd) { +#ifdef CONFIG_NETDEV_CAN_BITRATE_IOCTL case SIOCGCANBITRATE: /* Get bitrate from a CAN controller */ { struct can_ioctl_data_s *req = @@ -1713,6 +1714,7 @@ static int s32k3xx_ioctl(struct net_driver_s *dev, int cmd, } } break; +#endif default: ret = -ENOTTY;