]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Use mutex_lock_interruptible() for ethtool EEPROM access
authorBen Hutchings <bhutchings@solarflare.com>
Sat, 13 Dec 2008 06:06:24 +0000 (22:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Dec 2008 06:06:24 +0000 (22:06 -0800)
commit13064556e1bbbaae92ff379265ef098e80cffab2
tree384db8cff1c974af9b1b7fa442e94cc104311ac5
parent5c630ee644e708467d7e30059c53e8cdcb3d91af
sfc: Use mutex_lock_interruptible() for ethtool EEPROM access

ethtool must contend with the MTD driver for the SPI bus lock, which
may carry out long operations such as flash erase.  Allow it to be
interrupted while waiting.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/ethtool.c