commit | 6f0a0986e328dd61610d898a09c9f4aa960ae64a | [log] [tgz] |
---|---|---|
author | Ming Lei <ming.lei@canonical.com> | Tue Nov 06 04:53:08 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Nov 07 03:53:38 2012 -0500 |
tree | 8f977eceb56500f10eb5c9e2480622649d78af14 | |
parent | ec32115db2bcb7133171c6a036107ca7eb62267f [diff] |
usbnet: runtime wake up device before calling usbnet_{read|write}_cmd This patch gets the runtime PM reference count before calling usbnet_{read|write}_cmd, and puts it after completion of the usbnet_{read|write}_cmd, so that the usb control message can always be sent to one active device in the non-PM context. Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>