zephyr/drivers/ethernet
Lukasz Majewski bcbe4e8f1f eth: mcux: Fix proper handling of the 'local-mac-address' property
After the change SHA1: 3498d43784 the
local-mac-address property is no longer parsed correctly when it is
defined in the '&enet` DTS node on k6x SoCs (e.g. frdm_k64f and
ip_k66f).

The problem is with value to which the
NODE_HAS_VALID_MAC_ADDR(DT_DRV_INST(n)) macro is resolved.

If the 'local-mac-address' is present it returns
'(!((0 == 0) && (0 == 0) && (18 == 0) && (19 == 0) && (0 == 0) && \
 (16 == 0)))' [*], otherwise it is 0.

As COND_CODE_{01} only accepts 0 or 1 as its first argument, it all
worked until the 'local-mac-address' was not defined. When present
the first argument to COND_CODE_{01} macro was [*] and it caused
build break.

Fixes issue: #30354
https://github.com/zephyrproject-rtos/zephyr/issues/30354

Signed-off-by: Lukasz Majewski <lukma@denx.de>
2020-12-07 12:56:32 +01:00
..
CMakeLists.txt drivers: eth: add driver for w5500 Ethernet Controller 2020-10-02 11:34:57 +02:00
eth.h random: Include header where it is used 2020-07-08 21:05:36 -04:00
eth_e1000.c drivers/pcie: Change pcie_get_mbar() to return size and flags 2020-11-20 09:36:22 +02:00
eth_e1000_priv.h drivers: eth_e1000: use device MMIO 2020-07-17 11:38:18 +02:00
eth_enc28j60.c drivers: ethernet: Remove ugly usage of a goto in enc*j* drivers 2020-09-02 13:48:13 +02:00
eth_enc28j60_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_enc424j600.c drivers: eth_enc424j600: initialize device pointer 2020-09-21 16:45:03 -05:00
eth_enc424j600_priv.h drivers: ethernet: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
eth_gecko.c drivers: ethernet: eth_gecko: Fetch MAC address from device info 2020-10-14 12:31:49 +03:00
eth_gecko_priv.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
eth_liteeth.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_mcux.c eth: mcux: Fix proper handling of the 'local-mac-address' property 2020-12-07 12:56:32 +01:00
eth_native_posix.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_native_posix_adapt.c headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
eth_native_posix_priv.h drivers: eth: native_posix: Allow non-root access 2018-10-23 11:08:39 +03:00
eth_sam0_gmac.h drivers: ethernet: eth_sam_gmac: Add SAM0 family support 2020-04-17 04:56:28 -05:00
eth_sam_gmac.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
eth_sam_gmac_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_smsc911x.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_smsc911x_priv.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
eth_stellaris.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
eth_stellaris_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_stm32_hal.c drivers: ethernet: stm32: Add missing net_if_set_link_addr() call 2020-11-06 10:11:10 +02:00
eth_stm32_hal_priv.h drivers: ethernet: stm32: add support for DT pinctrl 2020-10-30 15:54:13 +01:00
eth_w5500.c ethernet: w5500: remove comparing uint64, int64 2020-10-26 07:35:46 -04:00
eth_w5500_priv.h ethernet: w5500: use bit fielding number for mode 2020-10-26 07:35:46 -04:00
Kconfig drivers: eth: add driver for w5500 Ethernet Controller 2020-10-02 11:34:57 +02:00
Kconfig.e1000 drivers: eth: e1000: Add a hexdump of the received/sent data 2020-01-02 16:58:27 -05:00
Kconfig.enc28j60 drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
Kconfig.enc424j600 drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
Kconfig.gecko drivers: eth: Get Manual MAC address from devicetree 2020-05-09 16:29:57 +02:00
Kconfig.liteeth drivers: eth: Replace driver specific RANDOM_MAC Kconfig with devicetree 2020-05-09 16:29:57 +02:00
Kconfig.mcux drivers: eth_mcux: Update to match changes to the SDK driver 2020-10-29 13:28:44 -05:00
Kconfig.native_posix net: native_posix: gptp: Add multiport support 2020-08-19 12:47:09 -04:00
Kconfig.sam_gmac drivers: ethernet: sam_gmac: Add SOC_FAMILY_SAM0 dependency 2020-07-02 08:37:17 -04:00
Kconfig.smsc911x kconfig: Remove '# Hidden' comments on promptless symbols 2019-12-21 10:30:33 -05:00
Kconfig.stellaris kconfig: Remove '# Hidden' comments on promptless symbols 2019-12-21 10:30:33 -05:00
Kconfig.stm32_hal modules: Delete switches USE_STM32_HAL_RCC and USE_STM32_HAL_RCC_EX 2020-10-28 09:28:15 -05:00
Kconfig.w5500 drivers: eth: add driver for w5500 Ethernet Controller 2020-10-02 11:34:57 +02:00
phy_gecko.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
phy_gecko.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
phy_sam_gmac.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
phy_sam_gmac.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00