android_kernel_xiaomi_sm8350/drivers/net/phy
Maciej W. Rozycki 6daf653103 PHYLIB: fix an interrupt loop potential when halting
Ensure the PHY_HALTED state is not entered with the IRQ asserted as it
could lead to an interrupt loop.

There is a small window in phy_stop(), where the state of the PHY machine
indicates it has been halted, but its interrupt output might still be
unmasked.  If an interrupt goes active right at this moment it will loop as
the phy_interrupt() handler exits immediately with IRQ_NONE if the halted
state is seen.  It is unsafe to extend the phydev spinlock to cover
phy_interrupt().  It is safe to swap the order of the actions though as all
the competing places to unmask the interrupt output of the PHY, which are
phy_change() and phy_timer() are already covered with the lock as is the
sequence in question.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Andy Fleming <afleming@freescale.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-10-10 16:53:55 -07:00
..
broadcom.c [PATCH] 2.6.18: sb1250-mac: Broadcom PHY support 2006-12-02 00:11:54 -05:00
cicada.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
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 [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
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: fix an interrupt loop potential when halting 2007-10-10 16:53:55 -07:00
qsemi.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
smsc.c [PATCH] remove unnecessary config.h includes from drivers/net/ 2006-08-14 14:00:43 -04:00
vitesse.c Fix error checking in Vitesse IRQ config 2007-07-24 16:28:41 -04:00