net: fsl_enetc: Fold DT MAC address update into enetc_set_ierb_primary_mac()
authorMarek Vasut <marex@denx.de>
Thu, 16 Jan 2025 04:03:20 +0000 (05:03 +0100)
committerFabio Estevam <festevam@gmail.com>
Mon, 20 Jan 2025 11:40:39 +0000 (08:40 -0300)
commita14d3d96e2c93d8182211320e9e38c78077d43f0
treee4d96246aa40071a19668ceccf2728f4c7c86c6f
parent755aa1c3ff89387559981830134a77f66a23c959
net: fsl_enetc: Fold DT MAC address update into enetc_set_ierb_primary_mac()

The entire content of the loop can be folded into enetc_set_ierb_primary_mac(),
do it. This changes the behavior slightly such that the DT is only updated in
case of a LS1028A, which is the only SoC with ethernet MAC path in DT matching
"/soc/pcie@1f0000000/ethernet@%x,%x" anyway, so this slight change should have
no impact.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/net/fsl_enetc.c