Merge "usb: f_gsi: Disable function remote wake-up capability for DPL"

This commit is contained in:
qctecmdr 2020-12-29 19:19:52 -08:00 • committed by Gerrit - the friendly Code Review server
commit ddd209806d

View file

@ -2644,6 +2644,10 @@ static int gsi_get_status(struct usb_function *f)
#ifdef CONFIG_USB_FUNC_WAKEUP_SUPPORTED
struct f_gsi *gsi = func_to_gsi(f);
/* Disable function remote wake-up for DPL interface */
if (gsi->prot_id == IPA_USB_DIAG)
return 0;
return (gsi->func_wakeup_allowed ? USB_INTRF_STAT_FUNC_RW : 0) |
USB_INTRF_STAT_FUNC_RW_CAP;
#else