usbnet: smsc75xx: apply the introduced usbnet_{read|write}_cmd_nopm
authorMing Lei <ming.lei@canonical.com>
Tue, 6 Nov 2012 04:53:05 +0000 (04:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 08:53:38 +0000 (03:53 -0500)
commit47bbea4171025c96e80f7ded7595697a2cb56552
tree82cb71be89c16ac802e493aedecc381f401f7342
parent0547fad2dd7ccaaf3c914ba49073fa37e4e241eb
usbnet: smsc75xx: 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/smsc75xx.c