usbnet: smsc95xx: apply the introduced usbnet_{read|write}_cmd_nopm
authorMing Lei <ming.lei@canonical.com>
Tue, 6 Nov 2012 04:53:07 +0000 (04:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 08:53:38 +0000 (03:53 -0500)
commitec32115db2bcb7133171c6a036107ca7eb62267f
treed2b2ce13252fd4f4ead7901674109de6cf035466
parent06a221be022c2cc98a48e0808a4ef0dc8f0b3a34
usbnet: smsc95xx: apply the introduced usbnet_{read|write}_cmd_nopm

This patch applies the introduced usbnet_read_cmd_nopm() and
usbnet_write_cmd_nopm() in the callback of resume and suspend
to avoid deadlock if USB runtime PM is considered into
usbnet_read_cmd() and usbnet_write_cmd().

Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c