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
This commit is contained in:
parent
af4ff984e7
commit
1dec5d68fa
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user