alistair23-linux/drivers/net/ethernet/marvell
Leigh Brown 1a1f20bc9d net: mvmdio: fix interrupt timeout handling
This version corrects the whitespace issue.

orion_mdio_wait_ready uses wait_event_timeout to wait for the
SMI interrupt to fire.  wait_event_timeout waits for between
"timeout - 1" and "timeout" jiffies.  In this case a 1ms timeout
when HZ is 1000 results in a wait of 0 to 1 jiffies, causing
premature timeouts.

This fix ensures a minimum timeout of 2 jiffies, ensuring
wait_event_timeout will always wait at least 1 jiffie.

Issue reported by Nicolas Schichan.

Tested-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-19 19:20:44 -05:00
..
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-04-22 20:32:51 -04:00
Makefile mv643xx_eth: convert to use the Marvell Orion MDIO driver 2013-03-22 10:25:15 -04:00
mv643xx_eth.c net: mv643xx_eth: potential NULL dereference in probe() 2013-11-14 03:11:36 -05:00
mvmdio.c net: mvmdio: fix interrupt timeout handling 2013-12-19 19:20:44 -05:00
mvneta.c net: mvneta: Fix incorrect DMA unmapping size 2013-12-06 15:43:44 -05:00
pxa168_eth.c net: pxa168_eth: remove deprecated IRQF_DISABLED 2013-09-15 22:01:05 -04:00
skge.c net: skge: remove unnecessary pci_set_drvdata() 2013-10-21 17:21:01 -04:00
skge.h skge/sky2/mv643xx/pxa168: Move the Marvell Ethernet drivers 2011-08-12 00:21:51 -07:00
sky2.c Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2013-11-14 16:30:30 +09:00
sky2.h sky2: Receive Overflows not counted 2013-03-29 14:53:19 -04:00