Author: sgalabov
Date: Mon Jun  6 10:07:57 2016
New Revision: 301497
URL: https://svnweb.freebsd.org/changeset/base/301497

Log:
  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

Modified:
  head/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c

Modified: head/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c
==============================================================================
--- head/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c       Mon Jun  6 
09:51:58 2016        (r301496)
+++ head/sys/dev/etherswitch/mtkswitch/mtkswitch_mt7620.c       Mon Jun  6 
10:07:57 2016        (r301497)
@@ -135,7 +135,6 @@ mtkswitch_reg_read32_mt7621(struct mtksw
 {
        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,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to