Skip to content

Typo & BUG fixes for MSM USB drivers

Pavankumar Kondeti linux-arm-msm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 4 repliesIn review

Changelog from the cover letter

- v2
- Resending patches with V2 tag :-)
- logical AND operator is used instead of bitwiese AND for testing flags.
- Fixes a typo error (s/EBUSY/-EBUSY) pointed out by Michal.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7USB: gadget: Fix typo (s/EBUSY/-EBUSY) in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+1 -15 replies
2/7USB: gadget: Use bitwise AND operator to test flags in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+1 -10 replies
2/7USB: gadget: Use bitwise AND operator to test flags in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+1 -10 replies
3/7USB: gadget: Fix unused variable warning in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+1 -10 replies
4/7USB: gadget: Fix bug in endpoint feature request processing in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+7 -10 replies
4/7USB: gadget: Fix bug in endpoint feature request processing in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+7 -10 replies
5/7USB: gadget: Use ep0out for control OUT data phase in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+14 -60 replies
6/7USB: gadget: Initialize ep0 once while registering gadget in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+17 -140 replies
6/7USB: gadget: Initialize ep0 once while registering gadget in ci13xxx_udcdrivers/usb/gadget/ci13xxx_udc.c+17 -140 replies
7/7USB: OTG: msm: Clear in_lpm flag before enabling the IRQ in resumedrivers/usb/otg/msm_otg.c+2 -20 replies
7/7USB: OTG: msm: Clear in_lpm flag before enabling the IRQ in resumedrivers/usb/otg/msm_otg.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 0/7] Typo & BUG fixes for MSM USB drivers

This patch series addresses the following issues.

1. EP0 is enabled after enabling pull-up in ci13xxx_udc. But some simulators are caching the ep0 max packet size at the time of pull-up enable due to which USB is not working. Fix this by initializing ep0 at gadget driver registration.
2. Retrieve the IN endpoint correctly from ep array while processing endpoint feature requests.
3. Data phase on control OUT is not working.
4. USB does not work some times after resume due to a race condition involved in clearing in_lpm flag.

Other than above issues, a couple typo mistakes are corrected in this patch series.

Changelog:

- v2
- Resending patches with V2 tag :-)
- logical AND operator is used instead of bitwiese AND for testing flags.
- Fixes a typo error (s/EBUSY/-EBUSY) pointed out by Michal.

Anji jonnala (1):
USB: gadget: Initialize ep0 once while registering gadget in

    ci13xxx_udc

Pavankumar Kondeti (6):
USB: gadget: Fix typo (s/EBUSY/-EBUSY) in ci13xxx_udc
USB: gadget: Use bitwise AND operator to test flags in ci13xxx_udc
USB: gadget: Fix unused variable warning in ci13xxx_udc
USB: gadget: Fix bug in endpoint feature request processing in

    ci13xxx_udc

USB: gadget: Use ep0out for control OUT data phase in ci13xxx_udc
USB: OTG: msm: Clear in_lpm flag before enabling the IRQ in resume

 drivers/usb/gadget/ci13xxx_udc.c |   65 ++++++++++++++++++++++++--------------
 drivers/usb/otg/msm_otg.c        |    4 +-
 2 files changed, 43 insertions(+), 26 deletions(-)
Signature · 2 lines
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.