From 1dec5d68fae9c39649394a262fbc89b6605eb997 Mon Sep 17 00:00:00 2001 From: sgalabov Date: Mon, 6 Jun 2016 10:07:57 +0000 Subject: [PATCH] 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 --- sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c b/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c index cbcdff989d8e..8ad29107f7da 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,