android_kernel_xiaomi_sm8350/drivers/net/phy
Maciej W. Rozycki 9ff8c68b3c PHYLIB: Spinlock fixes for softirqs
Use spin_lock_bh()/spin_unlock_bh() for the phydev lock throughout as it
is used in phy_timer() that is called as a softirq and all the other
operations may happen in the user context.

There has been a change recently that did such a conversion for some of the
operations on the lock, but some have been left intact.  Many of them,
perhaps all, may be called in the user context and I was able to trigger
recursive spinlock acquisition indeed, so I think for the sake of long-term
maintenance it is best to convert them all, even if unnecessarily for one
or two -- better safe than sorry.

Perhaps one in phy_timer() could actually be skipped as only called as a
softirq -- I can send an update if that sounds like a good idea.

Checked with checkpatch.pl and at the runtime.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-10-10 16:53:54 -07:00
..
broadcom.c
cicada.c
davicom.c Add support for the Davicom DM9161A PHY 2007-05-11 17:53:43 -04:00
fixed.c PHY fixed driver: rework release path and update phy_id notation 2007-10-10 16:53:50 -07:00
icplus.c phylib: add the ICPlus IP175C PHY driver 2007-07-08 22:16:38 -04:00
Kconfig PHY fixed driver: rework release path and update phy_id notation 2007-10-10 16:53:50 -07:00
lxt.c
Makefile phylib: add the ICPlus IP175C PHY driver 2007-07-08 22:16:38 -04:00
marvell.c phylib: Add Marvell 88E1112 phy id 2007-07-10 12:41:09 -04:00
mdio_bus.c phy: Fix phy_id for Vitesse 824x PHY 2007-06-28 13:26:06 -05:00
phy_device.c PHYLIB: Spinlock fixes for softirqs 2007-10-10 16:53:54 -07:00
phy.c PHYLIB: Spinlock fixes for softirqs 2007-10-10 16:53:54 -07:00
qsemi.c
smsc.c
vitesse.c Fix error checking in Vitesse IRQ config 2007-07-24 16:28:41 -04:00