[PATCH] ath79: ar8216: make switch register access atomic

Chuanhong Guo gch981213 at gmail.com
Wed Sep 23 11:50:09 EDT 2020


Hi!

On Tue, Sep 22, 2020 at 12:37 AM Felix Fietkau <nbd at nbd.name> wrote:
> You could try making a global spinlock in ag71xx_mdio.c and do
> spin_lock_bh(&mdio_lock) in ag71xx_mdio_mii_read and ag71xx_mdio_mii_write

I've just tried that and it doesn't work.
Should I move local_irq_save below mutex_lock and send a v2 or
do you have other suggestions?
-- 
Regards,
Chuanhong Guo



More information about the openwrt-devel mailing list