mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
40b02a2301
Now that the armvirt target supports real hardware, not just VMs, thanks to the addition of EFI, rename it to something more appropriate. 'armsr' (Arm SystemReady) was chosen after the name of the Arm standards program. The 32 and 64 bit targets have also been renamed armv7 and armv8 respectively, to allow future profiles where required (such as armv9). See https://developer.arm.com/documentation/102858/0100/Introduction for more information. Signed-off-by: Mathew McBride <matt@traverse.com.au>
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From c838d9fd7e6ba9ddd6006bf0a296396266e9f121 Mon Sep 17 00:00:00 2001
|
|
From: Vladimir Oltean <vladimir.oltean@nxp.com>
|
|
Date: Tue, 29 Nov 2022 16:12:17 +0200
|
|
Subject: [PATCH 10/14] net: dpaa2-switch replace direct MAC access with
|
|
dpaa2_switch_port_has_mac()
|
|
|
|
The helper function will gain a lockdep annotation in a future patch.
|
|
Make sure to benefit from it.
|
|
|
|
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
|
|
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
|
|
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
|
|
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
|
---
|
|
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-ethtool.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-ethtool.c
|
|
+++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-ethtool.c
|
|
@@ -189,7 +189,7 @@ static void dpaa2_switch_ethtool_get_sta
|
|
dpaa2_switch_ethtool_counters[i].name, err);
|
|
}
|
|
|
|
- if (port_priv->mac)
|
|
+ if (dpaa2_switch_port_has_mac(port_priv))
|
|
dpaa2_mac_get_ethtool_stats(port_priv->mac, data + i);
|
|
}
|
|
|