* [U-Boot] [PATCH] driver: net: ldpaa: Update the lane number to DPMAC mapping
@ 2015-11-25 5:54 Prabhakar Kushwaha
2015-11-30 17:33 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Prabhakar Kushwaha @ 2015-11-25 5:54 UTC (permalink / raw)
To: u-boot
As of patch "http://patchwork.ozlabs.org/patch/539748/", serdes_init() is
passing correct DPMAC id.
So Update the lane to DPMAC mapping.
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
---
drivers/net/ldpaa_eth/ldpaa_wriop.c | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/drivers/net/ldpaa_eth/ldpaa_wriop.c b/drivers/net/ldpaa_eth/ldpaa_wriop.c
index 357b35a..f7f26c2 100644
--- a/drivers/net/ldpaa_eth/ldpaa_wriop.c
+++ b/drivers/net/ldpaa_eth/ldpaa_wriop.c
@@ -23,18 +23,17 @@ __weak phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtc)
void wriop_init_dpmac(int sd, int dpmac_id, int lane_prtcl)
{
phy_interface_t enet_if;
- int index = dpmac_id + sd * 8;
- dpmac_info[index].enabled = 0;
- dpmac_info[index].id = 0;
- dpmac_info[index].phy_addr = -1;
- dpmac_info[index].enet_if = PHY_INTERFACE_MODE_NONE;
+ dpmac_info[dpmac_id].enabled = 0;
+ dpmac_info[dpmac_id].id = 0;
+ dpmac_info[dpmac_id].phy_addr = -1;
+ dpmac_info[dpmac_id].enet_if = PHY_INTERFACE_MODE_NONE;
- enet_if = wriop_dpmac_enet_if(index, lane_prtcl);
+ enet_if = wriop_dpmac_enet_if(dpmac_id, lane_prtcl);
if (enet_if != PHY_INTERFACE_MODE_NONE) {
- dpmac_info[index].enabled = 1;
- dpmac_info[index].id = index;
- dpmac_info[index].enet_if = enet_if;
+ dpmac_info[dpmac_id].enabled = 1;
+ dpmac_info[dpmac_id].id = dpmac_id;
+ dpmac_info[dpmac_id].enet_if = enet_if;
}
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] driver: net: ldpaa: Update the lane number to DPMAC mapping
2015-11-25 5:54 [U-Boot] [PATCH] driver: net: ldpaa: Update the lane number to DPMAC mapping Prabhakar Kushwaha
@ 2015-11-30 17:33 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2015-11-30 17:33 UTC (permalink / raw)
To: u-boot
On 11/24/2015 09:54 PM, Prabhakar Kushwaha wrote:
> As of patch "http://patchwork.ozlabs.org/patch/539748/", serdes_init() is
> passing correct DPMAC id.
>
> So Update the lane to DPMAC mapping.
>
> Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
> ---
> drivers/net/ldpaa_eth/ldpaa_wriop.c | 17 ++++++++---------
> 1 file changed, 8 insertions(+), 9 deletions(-)
Squashed with patch "armv8: lsch3: Fix lane protocol parsing logic"
http://patchwork.ozlabs.org/patch/539748/
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-30 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-25 5:54 [U-Boot] [PATCH] driver: net: ldpaa: Update the lane number to DPMAC mapping Prabhakar Kushwaha
2015-11-30 17:33 ` York Sun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.