mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
Merge "usb: f_gsi: Disable function remote wake-up capability for DPL"
This commit is contained in:
commit
ddd209806d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue