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:
David Wu
2019-10-29 22:20:24 +08:00
committed by Tao Huang
parent c11ccaa96c
commit d8ee9c29d5

View File

@@ -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;