]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usbnet: introduce usbnet_{read|write}_cmd_nopm
authorMing Lei <ming.lei@canonical.com>
Tue, 6 Nov 2012 04:53:04 +0000 (04:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 08:53:38 +0000 (03:53 -0500)
commit0547fad2dd7ccaaf3c914ba49073fa37e4e241eb
tree5434c18a01f9c4591c74e0bda596f1d4b29ddd6b
parentef468d234753aff7afa96075d3be135b0df1ded0
usbnet: introduce usbnet_{read|write}_cmd_nopm

This patch introduces the below two helpers to prepare for solving
the usbnet runtime PM problem, which may cause some network utilities
(ifconfig, ethtool,...) touch a suspended device.

usbnet_read_cmd_nopm()
usbnet_write_cmd_nopm()

The above two helpers should be called by usbnet resume/suspend
callback to avoid deadlock.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c
include/linux/usb/usbnet.h