Commit 90ccda9b authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville

ar9170usb: reset device on resume

This patch takes care of an outstanding comment in
"[PATCH] ar9170usb: fix hang on resume" commit message.

>However, the device does not accept the firmware on resume.
>and it will exit with:
>
>> firmware part 1 upload failed (-71).
>> device is in a bad state. please reconnect it!
Reported-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarChristian Lamparter <chunkeey@web.de>
Tested-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1ca5f2e9
...@@ -689,6 +689,7 @@ static int ar9170_usb_probe(struct usb_interface *intf, ...@@ -689,6 +689,7 @@ static int ar9170_usb_probe(struct usb_interface *intf,
aru->common.exec_cmd = ar9170_usb_exec_cmd; aru->common.exec_cmd = ar9170_usb_exec_cmd;
aru->common.callback_cmd = ar9170_usb_callback_cmd; aru->common.callback_cmd = ar9170_usb_callback_cmd;
udev->reset_resume = 1;
err = ar9170_usb_reset(aru); err = ar9170_usb_reset(aru);
if (err) if (err)
goto err_freehw; goto err_freehw;
...@@ -805,6 +806,7 @@ static struct usb_driver ar9170_driver = { ...@@ -805,6 +806,7 @@ static struct usb_driver ar9170_driver = {
#ifdef CONFIG_PM #ifdef CONFIG_PM
.suspend = ar9170_suspend, .suspend = ar9170_suspend,
.resume = ar9170_resume, .resume = ar9170_resume,
.reset_resume = ar9170_resume,
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment