[PATCH 4.19.y 0/3] usb: dwc3: Prevent requests from being queued twice

2019-07-29 Thread Saranya Gopal
With recent changes in AOSP, adb is now using asynchronous I/O. While adb works good for the most part, there have been issues with adb root/unroot commands which cause adb hang. The issue is caused by a request being queued twice. A series of 3 patches from Felipe Balbi in upstream tree fixes this

[PATCH 4.19.y 2/3] usb: dwc3: gadget: prevent dwc3_request from being queued twice

2019-07-29 Thread Saranya Gopal
asy enough to avoid. Signed-off-by: Felipe Balbi Signed-off-by: Saranya Gopal --- drivers/usb/dwc3/gadget.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 3f337a0..a56a92a 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/driver

[PATCH 4.19.y 1/3] usb: dwc3: gadget: add dwc3_request status tracking

2019-07-29 Thread Saranya Gopal
From: Felipe Balbi [Upstream commit a3af5e3ad3f11a0001317da9e9fb78b] This patch starts tracking dwc3_request status. A following patch will build on top of this to prevent a request from being queued twice. Signed-off-by: Felipe Balbi Signed-off-by: Saranya Gopal --- drivers/usb/dwc3/core.h

[PATCH 4.19.y 3/3] usb: dwc3: gadget: remove req->started flag

2019-07-29 Thread Saranya Gopal
From: Felipe Balbi [Upstream commit 7c3d7dc89e57a1d43acea935882dd8713c9e639f] Now that we have req->status, we don't need this extra flag anymore. It's safe to remove it. Signed-off-by: Felipe Balbi Signed-off-by: Saranya Gopal --- drivers/usb/dwc3/core.h | 2 -- drivers/usb/

[PATCH V3] roles: Fix USB 3.0 OTG issue on Intel platform

2018-09-06 Thread saranya . gopal
From: Saranya Gopal This patch adds static DRD mode for host/device mode switch. This fixes the issue where device mode was not working after DUT switches to host mode with 3.0 OTG connector. Change-Id: Ib6d04b90d277d965ef10026751a7f4832cad5d2a Signed-off-by: Saranya Gopal Signed-off-by: M

[PATCH V4] roles: Fix USB 3.0 OTG issue on Intel platform

2018-09-06 Thread saranya . gopal
From: Saranya Gopal This patch adds static DRD mode for host/device mode switch. This fixes the issue where device mode was not working after DUT switches to host mode with 3.0 OTG connector. Change-Id: Ib6d04b90d277d965ef10026751a7f4832cad5d2a Signed-off-by: Saranya Gopal Signed-off-by: M

[PATCH V5] roles: Fix USB 3.0 OTG issue on Intel platform

2018-09-06 Thread saranya . gopal
From: saranya This patch adds static DRD mode for host/device mode switch. This fixes the issue where device mode was not working after DUT switches to host mode with 3.0 OTG connector. Signed-off-by: saranya Signed-off-by: M Balaji Reviewed-by: Heikki Krogerus Reviewed-by: Kuppuswamy Sathyan

[PATCH V6] roles: Fix USB 3.0 OTG issue on Intel platform

2018-09-07 Thread saranya . gopal
From: Saranya Gopal This patch adds static DRD mode for host/device mode switch. This fixes the issue where device mode was not working after DUT switches to host mode with 3.0 OTG connector. Signed-off-by: Saranya Gopal Signed-off-by: M Balaji Reviewed-by: Heikki Krogerus Reviewed-by

[PATCH] usbcore: Select UAC3 configuration for audio if present

2018-09-11 Thread saranya . gopal
From: Saranya Gopal USB audio class 3.0 specification introduced many significant changes like - new power domains, support for LPM/L1 - new cluster descriptor - new high capability and class-specific string descriptors - BADD profiles - ... and many other things (check spec from link below

[PATCH V2] usbcore: Select UAC3 configuration for audio if present

2018-09-11 Thread saranya . gopal
From: Saranya Gopal USB audio class 3.0 specification introduced many significant changes like - new power domains, support for LPM/L1 - new cluster descriptor - new high capability and class-specific string descriptors - BADD profiles - ... and many other things (check spec from link below

[PATCH V3] usbcore: Select UAC3 configuration for audio if present

2018-09-11 Thread saranya . gopal
From: Saranya Gopal USB audio class 3.0 specification introduced many significant changes like - new power domains, support for LPM/L1 - new cluster descriptor - new high capability and class-specific string descriptors - BADD profiles - ... and many other things (check spec from link below

[PATCH] usbcore: Select only first configuration for non-UAC3 compliant devices

2019-01-05 Thread saranya . gopal
From: Saranya Gopal In most of the UAC1 and UAC2 audio devices, the first configuration is most often the best configuration. However, with recent patch to support UAC3 configuration, second configuration was unintentionally chosen for some of the UAC1/2 devices that had more than one

[PATCH V2] usbcore: Select only first configuration for non-UAC3 compliant devices

2019-01-05 Thread saranya . gopal
From: Saranya Gopal In most of the UAC1 and UAC2 audio devices, the first configuration is most often the best configuration. However, with recent patch to support UAC3 configuration, second configuration was unintentionally chosen for some of the UAC1/2 devices that had more than one

[PATCH V3] usbcore: Select only first configuration for non-UAC3 compliant devices

2019-01-05 Thread saranya . gopal
From: Saranya Gopal In most of the UAC1 and UAC2 audio devices, the first configuration is most often the best configuration. However, with recent patch to support UAC3 configuration, second configuration was unintentionally chosen for some of the UAC1/2 devices that had more than one

[PATCH v2 0/2] usb: roles: intel: Use static mode by default

2019-08-28 Thread Saranya Gopal
Hi Hans and Heikki, I have addressed the review comments of Hans and resubmitting this patch series of enabling static DRD mode for role switch in all platforms except Cherrytrail. Saranya Gopal (2): xhci-ext-caps.c: Add property to disable Intel SW switch usb: roles: intel: Enable static

[PATCH v2 1/2] xhci-ext-caps.c: Add property to disable Intel SW switch

2019-08-28 Thread Saranya Gopal
In platforms like Cherrytrail, 'SW switch enable' bit should not be enabled for role switch. This patch adds a property to Intel USB Role Switch platform driver to denote that SW switch should be disabled in Cherrytrail devices. Signed-off-by: Saranya Gopal Signed-off-by: Balaji

[PATCH v2 2/2] usb: roles: intel: Enable static DRD mode for role switch

2019-08-28 Thread Saranya Gopal
firmware for role switch. Signed-off-by: Saranya Gopal Signed-off-by: Balaji Manoharan Signed-off-by: Heikki Krogerus --- drivers/usb/roles/intel-xhci-usb-role-switch.c | 28 +++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/drivers/usb/roles/intel-xhci-usb

[PATCH v3 1/2] xhci-ext-caps.c: Add property to disable Intel SW switch

2019-08-28 Thread Saranya Gopal
In platforms like Cherrytrail, 'SW switch enable' bit should not be enabled for role switch. This patch adds a property to Intel USB Role Switch platform driver to denote that SW switch should be disabled in Cherrytrail devices. Signed-off-by: Saranya Gopal Signed-off-by: Balaji

[PATCH v3 2/2] usb: roles: intel: Enable static DRD mode for role switch

2019-08-28 Thread Saranya Gopal
firmware for role switch. Signed-off-by: Saranya Gopal Signed-off-by: Balaji Manoharan --- changes from v2: Revised SoB tags changes from v1: Added DRD_CONFIG_MASK and drd_config to avoid multiple if checks Also, other minor changes suggested by Hans drivers/usb/roles/intel-xhci

[PATCH v4 1/2] xhci-ext-caps.c: Add property to disable Intel SW switch

2019-08-29 Thread Saranya Gopal
In platforms like Cherrytrail, 'SW switch enable' bit should not be enabled for role switch. This patch adds a property to Intel USB Role Switch platform driver to denote that SW switch should be disabled in Cherrytrail devices. Signed-off-by: Saranya Gopal Signed-off-by: Balaji

[PATCH v4 2/2] usb: roles: intel: Enable static DRD mode for role switch

2019-08-29 Thread Saranya Gopal
firmware for role switch. Signed-off-by: Saranya Gopal Signed-off-by: Balaji Manoharan --- changes since v3: Initialized drd_config variable to fix warning changes since v2: Revised SoB tags changes since v1: Added drd_config to avoid multiple if checks Other minor changes

[PATCH v5 1/2] xhci-ext-caps.c: Add property to disable Intel SW switch

2019-08-29 Thread Saranya Gopal
In platforms like Cherrytrail, 'SW switch enable' bit should not be enabled for role switch. This patch adds a property to Intel USB Role Switch platform driver to denote that SW switch should be disabled in Cherrytrail devices. Signed-off-by: Saranya Gopal Signed-off-by: Balaji

[PATCH v5 2/2] usb: roles: intel: Enable static DRD mode for role switch

2019-08-29 Thread Saranya Gopal
firmware for role switch. Signed-off-by: Saranya Gopal Signed-off-by: Balaji Manoharan Reviewed-by: Heikki Krogerus Reviewed-by: Hans de Goede Tested-by: Hans de Goede --- changes since v4: Rebased on top of devprop branch in linux-pm.git Added Reviewed-by and Tested-by tags