mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
vmac: reset phy to solve sometimes phy do not work when boot
This commit is contained in:
parent
30e86017bc
commit
392faa8e4b
|
|
@ -1070,8 +1070,11 @@ int vmac_open(struct net_device *dev)
|
|||
clk_enable(clk_get(NULL,"mac_ref"));
|
||||
|
||||
//phy power on
|
||||
if (pdata && pdata->rmii_power_control)
|
||||
if (pdata && pdata->rmii_power_control) {
|
||||
pdata->rmii_power_control(0);
|
||||
msleep(100);
|
||||
pdata->rmii_power_control(1);
|
||||
}
|
||||
|
||||
msleep(1000);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user