Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
}
if (usb_interrupt_level2 & AR9170_USB_INTR_SRC7_USB_RESUME) {
+ usb_resume_ack();
+
fw.suspend_mode = CARL9170_HOST_AWAKE;
- andl(AR9170_USB_REG_WAKE_UP, AR9170_USB_WAKE_UP_WAKE);
+ set(AR9170_USB_REG_WAKE_UP, 0);
- usb_resume_ack();
reboot();
}
}
{
#ifdef CONFIG_CARL9170FW_WOL
if (fw.suspend_mode == CARL9170_AWAKE_HOST) {
- orl(AR9170_USB_REG_WAKE_UP, AR9170_USB_WAKE_UP_WAKE);
+ set(AR9170_USB_REG_WAKE_UP, AR9170_USB_WAKE_UP_WAKE);
}
#endif /* CONFIG_CARL9170FW_WOL */
}