diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-11-03 21:46:15 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-11-03 21:46:15 +0000 |
commit | 4be120eeaf7a36544e5afb9d5a8c3451977846de (patch) | |
tree | f38ae912578b7938b2b11605553669dcce46444b /sys/dev/fdt/if_mvpp.c | |
parent | c73f9aa858cd2a83c11a938695499c349e8c4955 (diff) |
Disable HW PHY polling. It's enabled by default.
Diffstat (limited to 'sys/dev/fdt/if_mvpp.c')
-rw-r--r-- | sys/dev/fdt/if_mvpp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/fdt/if_mvpp.c b/sys/dev/fdt/if_mvpp.c index 3b84c1feeac..909b9685139 100644 --- a/sys/dev/fdt/if_mvpp.c +++ b/sys/dev/fdt/if_mvpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mvpp.c,v 1.27 2020/08/22 12:34:14 patrick Exp $ */ +/* $OpenBSD: if_mvpp.c,v 1.28 2020/11/03 21:46:14 patrick Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org> * Copyright (c) 2017, 2020 Patrick Wildt <patrick@blueri.se> @@ -487,6 +487,10 @@ mvpp2_attach_deferred(struct device *self) mvpp2_axi_config(sc); + bus_space_write_4(sc->sc_iot, sc->sc_ioh_iface, MVPP22_SMI_MISC_CFG_REG, + bus_space_read_4(sc->sc_iot, sc->sc_ioh_iface, + MVPP22_SMI_MISC_CFG_REG) & ~MVPP22_SMI_POLLING_EN); + sc->sc_aggr_ntxq = 1; sc->sc_aggr_txqs = mallocarray(sc->sc_aggr_ntxq, sizeof(*sc->sc_aggr_txqs), M_DEVBUF, M_WAITOK | M_ZERO); |