1 From b62abd01cce8c4548d380d4ff28984a0275ea8fb Mon Sep 17 00:00:00 2001
2 From: Calvin Johnson <calvin.johnson@nxp.com>
3 Date: Wed, 11 Oct 2017 19:23:38 +0530
4 Subject: [PATCH] staging: fsl_ppfe/eth: fix RGMII tx delay issue
6 Recently logic to enable RGMII tx delay was changed by
9 https://patchwork.kernel.org/patch/9447581/
11 Based on the patch, appropriate change is made in PFE driver.
13 Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
14 Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
16 drivers/staging/fsl_ppfe/pfe_eth.c | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
19 --- a/drivers/staging/fsl_ppfe/pfe_eth.c
20 +++ b/drivers/staging/fsl_ppfe/pfe_eth.c
21 @@ -1068,7 +1068,8 @@ static void pfe_eth_adjust_link(struct n
23 gemac_set_speed(priv->EMAC_baseaddr,
24 pfe_get_phydev_speed(phydev));
25 - if (priv->einfo->mii_config == PHY_INTERFACE_MODE_RGMII)
26 + if (priv->einfo->mii_config ==
27 + PHY_INTERFACE_MODE_RGMII_TXID)
28 pfe_set_rgmii_speed(phydev);
29 priv->oldspeed = phydev->speed;