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:
Kyle Evans 2018-02-28 20:51:21 +00:00
parent a12a1b473b
commit b5cdd987a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330128

View File

@ -1834,11 +1834,9 @@ awg_attach(device_t dev)
awg_get_eaddr(dev, eaddr);
/* Soft reset EMAC core */
if (!awg_has_internal_phy(dev)) {
error = awg_reset(dev);
if (error != 0)
return (error);
}
error = awg_reset(dev);
if (error != 0)
return (error);
/* Setup DMA descriptors */
error = awg_setup_dma(dev);