Skip to content

Commit 909c1dd

Browse files
wvoondavem330
authored andcommitted
net: stmmac: update pci platform data to use phy_interface
The recent patch to support passive mode converter did not take care the phy interface configuration in PCI platform data. Hence, converting all the PCI platform data from plat->interface to plat->phy_interface as the default mode is meant for PHY. Fixes: 0060c87 ("net: stmmac: implement support for passive mode converters via dt") Signed-off-by: Voon Weifeng <[email protected]> Tested-by: Tan, Tee Min <[email protected]> Signed-off-by: Ong Boon Leong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2f633d5 commit 909c1dd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int stmmac_default_data(struct pci_dev *pdev,
9595

9696
plat->bus_id = 1;
9797
plat->phy_addr = 0;
98-
plat->interface = PHY_INTERFACE_MODE_GMII;
98+
plat->phy_interface = PHY_INTERFACE_MODE_GMII;
9999

100100
plat->dma_cfg->pbl = 32;
101101
plat->dma_cfg->pblx8 = true;
@@ -217,7 +217,8 @@ static int ehl_sgmii_data(struct pci_dev *pdev,
217217
{
218218
plat->bus_id = 1;
219219
plat->phy_addr = 0;
220-
plat->interface = PHY_INTERFACE_MODE_SGMII;
220+
plat->phy_interface = PHY_INTERFACE_MODE_SGMII;
221+
221222
return ehl_common_data(pdev, plat);
222223
}
223224

@@ -230,7 +231,8 @@ static int ehl_rgmii_data(struct pci_dev *pdev,
230231
{
231232
plat->bus_id = 1;
232233
plat->phy_addr = 0;
233-
plat->interface = PHY_INTERFACE_MODE_RGMII;
234+
plat->phy_interface = PHY_INTERFACE_MODE_RGMII;
235+
234236
return ehl_common_data(pdev, plat);
235237
}
236238

@@ -258,7 +260,7 @@ static int tgl_sgmii_data(struct pci_dev *pdev,
258260
{
259261
plat->bus_id = 1;
260262
plat->phy_addr = 0;
261-
plat->interface = PHY_INTERFACE_MODE_SGMII;
263+
plat->phy_interface = PHY_INTERFACE_MODE_SGMII;
262264
return tgl_common_data(pdev, plat);
263265
}
264266

@@ -358,7 +360,7 @@ static int quark_default_data(struct pci_dev *pdev,
358360

359361
plat->bus_id = pci_dev_id(pdev);
360362
plat->phy_addr = ret;
361-
plat->interface = PHY_INTERFACE_MODE_RMII;
363+
plat->phy_interface = PHY_INTERFACE_MODE_RMII;
362364

363365
plat->dma_cfg->pbl = 16;
364366
plat->dma_cfg->pblx8 = true;
@@ -415,7 +417,7 @@ static int snps_gmac5_default_data(struct pci_dev *pdev,
415417

416418
plat->bus_id = 1;
417419
plat->phy_addr = -1;
418-
plat->interface = PHY_INTERFACE_MODE_GMII;
420+
plat->phy_interface = PHY_INTERFACE_MODE_GMII;
419421

420422
plat->dma_cfg->pbl = 32;
421423
plat->dma_cfg->pblx8 = true;

0 commit comments

Comments
 (0)