summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgalabov <sgalabov@FreeBSD.org>2016-06-06 10:07:57 +0000
committersgalabov <sgalabov@FreeBSD.org>2016-06-06 10:07:57 +0000
commit1dec5d68fae9c39649394a262fbc89b6605eb997 (patch)
tree0e3b59050ce7b3868fa43de56360086995057974
parentaf4ff984e7cfca491e9ec471fce250785ae30126 (diff)
downloadFreeBSD-src-1dec5d68fae9c39649394a262fbc89b6605eb997.zip
FreeBSD-src-1dec5d68fae9c39649394a262fbc89b6605eb997.tar.gz
Remove erroneous lock assertions
In mediatek etherswitch support, functions mtkswitch_reg_write32_mt7621 and mtkswitch_reg_read32_mt7621 are called without locks held, so lock assertions fail. Remove the lock assertions. Sponsored by: Smartcom - Bulgaria AD
-rw-r--r--sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c b/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c
index cbcdff9..8ad2910 100644
--- a/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c
+++ b/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c
@@ -135,7 +135,6 @@ mtkswitch_reg_read32_mt7621(struct mtkswitch_softc *sc, int reg)
{
uint32_t low, hi;
- MTKSWITCH_LOCK_ASSERT(sc, MA_OWNED);
mtkswitch_phy_write_locked(sc, MTKSWITCH_GLOBAL_PHY,
MTKSWITCH_GLOBAL_REG, MTKSWITCH_REG_ADDR(reg));
low = mtkswitch_phy_read_locked(sc, MTKSWITCH_GLOBAL_PHY,
@@ -149,7 +148,6 @@ static uint32_t
mtkswitch_reg_write32_mt7621(struct mtkswitch_softc *sc, int reg, uint32_t val)
{
- MTKSWITCH_LOCK_ASSERT(sc, MA_OWNED);
mtkswitch_phy_write_locked(sc, MTKSWITCH_GLOBAL_PHY,
MTKSWITCH_GLOBAL_REG, MTKSWITCH_REG_ADDR(reg));
mtkswitch_phy_write_locked(sc, MTKSWITCH_GLOBAL_PHY,
OpenPOWER on IntegriCloud