aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/oki-semi
diff options
context:
space:
mode:
authorLeigh Brown <leigh@solinno.co.uk>2013-12-19 13:09:48 +0000
committerDavid S. Miller <davem@davemloft.net>2013-12-19 19:20:44 -0500
commit1a1f20bc9debd133549d5b289bd5494a4264a73d (patch)
treebada4b70bf254cf95461a7221cf9d7c2c0eb3597 /drivers/net/ethernet/oki-semi
parentatl1c: Check return from pci_find_ext_capability() in atl1c_reset_pcie() (diff)
downloadlinux-dev-1a1f20bc9debd133549d5b289bd5494a4264a73d.tar.xz
linux-dev-1a1f20bc9debd133549d5b289bd5494a4264a73d.zip
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>
Diffstat (limited to 'drivers/net/ethernet/oki-semi')
0 files changed, 0 insertions, 0 deletions