]> git.baikalelectronics.ru Git - kernel.git/commit
net/usb/r815x: avoid to call mdio functions for runtime-suspended device
authorhayeswang <hayeswang@realtek.com>
Wed, 31 Jul 2013 09:21:23 +0000 (17:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2013 21:49:13 +0000 (14:49 -0700)
commit5336e4a9010a8ac0e0b3391c165169c313bd7cc7
treecc6d39e3d537300212509aa53f2fc0049fabdedf
parente61d1a442e81a87846b44e87870d2b3fe703ec38
net/usb/r815x: avoid to call mdio functions for runtime-suspended device

Don't replace the usb_control_msg() with usbnet_{read,write}_cmd()
which couldn't be called inside suspend/resume callback. Keep the
basic functions unlimited. Instead, using usb_autopm_get_interface()
and usb_autopm_put_interface() in r815x_mdio_{read,write}().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r815x.c