]> git.baikalelectronics.ru Git - kernel.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)
commita3b765bd228dce5c0ea8015cebac369e838561ba
tree5434c18a01f9c4591c74e0bda596f1d4b29ddd6b
parentc698a134b0a1850a501617419f6cd26a0020adc6
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