Revert r328964: if_awg: Skip emac reset if configured for internal PHY
This broke EFI boots consistently, and emac reset is sometimes needed if things get into a bad state -- this won't be done without a full powercycle.
This commit is contained in:
parent
a12a1b473b
commit
b5cdd987a8
@ -1834,11 +1834,9 @@ awg_attach(device_t dev)
|
|||||||
awg_get_eaddr(dev, eaddr);
|
awg_get_eaddr(dev, eaddr);
|
||||||
|
|
||||||
/* Soft reset EMAC core */
|
/* Soft reset EMAC core */
|
||||||
if (!awg_has_internal_phy(dev)) {
|
error = awg_reset(dev);
|
||||||
error = awg_reset(dev);
|
if (error != 0)
|
||||||
if (error != 0)
|
return (error);
|
||||||
return (error);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Setup DMA descriptors */
|
/* Setup DMA descriptors */
|
||||||
error = awg_setup_dma(dev);
|
error = awg_setup_dma(dev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user