Skip to content

Commit 71ae8f5

Browse files
cavagiudavem330
authored andcommitted
stmmac: fix sti compatibililies
this patch is to fix the stmmac data compatibilities for all the SoCs inside the platform file. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2ef1e9e commit 71ae8f5

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎drivers/net/ethernet/stmicro/stmmac/stmmac.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ extern const struct stmmac_of_data meson6_dwmac_data;
144144
extern const struct stmmac_of_data sun7i_gmac_data;
145145
#endif
146146
#ifdef CONFIG_DWMAC_STI
147-
extern const struct stmmac_of_data sti_gmac_data;
147+
extern const struct stmmac_of_data stih4xx_dwmac_data;
148+
extern const struct stmmac_of_data stid127_dwmac_data;
148149
#endif
149150
#ifdef CONFIG_DWMAC_SOCFPGA
150151
extern const struct stmmac_of_data socfpga_gmac_data;

‎drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ static const struct of_device_id stmmac_dt_ids[] = {
3737
{ .compatible = "allwinner,sun7i-a20-gmac", .data = &sun7i_gmac_data},
3838
#endif
3939
#ifdef CONFIG_DWMAC_STI
40-
{ .compatible = "st,stih415-dwmac", .data = &sti_gmac_data},
41-
{ .compatible = "st,stih416-dwmac", .data = &sti_gmac_data},
42-
{ .compatible = "st,stid127-dwmac", .data = &sti_gmac_data},
43-
{ .compatible = "st,stih407-dwmac", .data = &sti_gmac_data},
40+
{ .compatible = "st,stih415-dwmac", .data = &stih4xx_dwmac_data},
41+
{ .compatible = "st,stih416-dwmac", .data = &stih4xx_dwmac_data},
42+
{ .compatible = "st,stid127-dwmac", .data = &stid127_dwmac_data},
43+
{ .compatible = "st,stih407-dwmac", .data = &stih4xx_dwmac_data},
4444
#endif
4545
#ifdef CONFIG_DWMAC_SOCFPGA
4646
{ .compatible = "altr,socfpga-stmmac", .data = &socfpga_gmac_data },

0 commit comments

Comments
 (0)