mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
net: ethernet: stmmac: dwmac-rk: Don't configure has_gmac for gmac5.10a
The gmac5.10a configure has_gmac4 with true and has_gmac with false. Others still stay has_gmac with true. Change-Id: I0d0d1adef8551d2f7aac6702f963cb23a9861036 Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
parent
c11ccaa96c
commit
d8ee9c29d5
|
|
@ -1624,7 +1624,9 @@ static int rk_gmac_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(plat_dat))
|
||||
return PTR_ERR(plat_dat);
|
||||
|
||||
plat_dat->has_gmac = true;
|
||||
if (!of_device_is_compatible(pdev->dev.of_node, "snps,dwmac-4.20a"))
|
||||
plat_dat->has_gmac = true;
|
||||
|
||||
plat_dat->fix_mac_speed = rk_fix_speed;
|
||||
plat_dat->get_eth_addr = rk_get_eth_addr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user