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
eth_e1000_priv.h
eth_e1000.c drivers/pcie: Change pcie_get_mbar() to return size and flags 2020-11-20 09:36:22 +02:00
eth_enc28j60_priv.h
eth_enc28j60.c
eth_enc424j600_priv.h
eth_enc424j600.c
eth_gecko_priv.h
eth_gecko.c
eth_liteeth.c
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_adapt.c
eth_native_posix_priv.h
eth_native_posix.c
eth_sam_gmac_priv.h
eth_sam_gmac.c
eth_sam0_gmac.h
eth_smsc911x_priv.h
eth_smsc911x.c
eth_stellaris_priv.h
eth_stellaris.c
eth_stm32_hal_priv.h drivers: ethernet: stm32: add support for DT pinctrl 2020-10-30 15:54:13 +01: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_w5500_priv.h
eth_w5500.c
eth.h
Kconfig
Kconfig.e1000
Kconfig.enc28j60
Kconfig.enc424j600
Kconfig.gecko
Kconfig.liteeth
Kconfig.mcux
Kconfig.native_posix
Kconfig.sam_gmac
Kconfig.smsc911x
Kconfig.stellaris
Kconfig.stm32_hal
Kconfig.w5500
phy_gecko.c
phy_gecko.h
phy_sam_gmac.c
phy_sam_gmac.h