On Wed, Oct 17, 2012 at 1:07 AM, Rafael J. Wysocki [off-list ref] wrote:
On Wednesday 10 of October 2012 20:58:33 Ming Lei wrote:
quoted
In ioctl path on net_device, the physical deivce is often
touched, but the physical device may have been put into runtime
suspend state already, so cause some utilitis(ifconfig, ethtool,
...) to return failure in this situation.
This patch enables runtime PM on net_device and mark it as
no_callbacks, and resumes the net_device if physical device
is to be accessed, then suspends it after completion of the
access.
This patch fixes the problem above.
Signed-off-by: Ming Lei <redacted>
Well, it looks good in principle.
Acked-by: Rafael J. Wysocki <redacted>
OK, I will prepare -v1 for merge later if no one has objection on
the patch, which has a compile error.('ret' is not defined in
dev_ethtool)
Thanks,
--
Ming Lei