mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Call dc_apply_fixup() in dc_setcfg() for the MII case.
This commit is contained in:
parent
5d801891d3
commit
e99285a4f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68015
@ -1347,6 +1347,8 @@ static void dc_setcfg(sc, media)
|
||||
if (!DC_IS_DAVICOM(sc))
|
||||
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_PORTSEL);
|
||||
DC_CLRBIT(sc, DC_10BTCTRL, 0xFFFF);
|
||||
if (DC_IS_INTEL(sc))
|
||||
dc_apply_fixup(sc, IFM_AUTO);
|
||||
} else {
|
||||
if (DC_IS_PNIC(sc)) {
|
||||
DC_PN_GPIO_SETBIT(sc, DC_PN_GPIO_SPEEDSEL);
|
||||
@ -1385,6 +1387,8 @@ static void dc_setcfg(sc, media)
|
||||
if (!DC_IS_DAVICOM(sc))
|
||||
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_PORTSEL);
|
||||
DC_CLRBIT(sc, DC_10BTCTRL, 0xFFFF);
|
||||
if (DC_IS_INTEL(sc))
|
||||
dc_apply_fixup(sc, IFM_AUTO);
|
||||
} else {
|
||||
if (DC_IS_PNIC(sc)) {
|
||||
DC_PN_GPIO_CLRBIT(sc, DC_PN_GPIO_SPEEDSEL);
|
||||
|
@ -1347,6 +1347,8 @@ static void dc_setcfg(sc, media)
|
||||
if (!DC_IS_DAVICOM(sc))
|
||||
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_PORTSEL);
|
||||
DC_CLRBIT(sc, DC_10BTCTRL, 0xFFFF);
|
||||
if (DC_IS_INTEL(sc))
|
||||
dc_apply_fixup(sc, IFM_AUTO);
|
||||
} else {
|
||||
if (DC_IS_PNIC(sc)) {
|
||||
DC_PN_GPIO_SETBIT(sc, DC_PN_GPIO_SPEEDSEL);
|
||||
@ -1385,6 +1387,8 @@ static void dc_setcfg(sc, media)
|
||||
if (!DC_IS_DAVICOM(sc))
|
||||
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_PORTSEL);
|
||||
DC_CLRBIT(sc, DC_10BTCTRL, 0xFFFF);
|
||||
if (DC_IS_INTEL(sc))
|
||||
dc_apply_fixup(sc, IFM_AUTO);
|
||||
} else {
|
||||
if (DC_IS_PNIC(sc)) {
|
||||
DC_PN_GPIO_CLRBIT(sc, DC_PN_GPIO_SPEEDSEL);
|
||||
|
Loading…
Reference in New Issue
Block a user