[PATCH v3 00/13] usb:hsotg:samsung USB S3C-HSOTG driver fixes and code cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Presented patch series fix several problems with S3C-HSOTG driver, thus now
the Multi Function Gadget (MFG) is working correctly.

Those commits consist of EP0 transfer management fixes (ZLP sending code
and NAK management).
Moreover the disconnect irq handler has been removed, since it is available only
at HOST mode.

Code for recovering from device disconnection and connection during ongoing
transfer has been added as well.

Patch done by Joonyoung Shim has been included to this patch series, since
it is necessary for further fixes. Unfortunately it hasn't been included to the
mainline.

The s3c-hsotg driver has been adjusted to use newer usb_gadget_ops callbacks
(namely udc_start and udc_stop) instead of deprecated ones.

Moreover number of EPs is now read from a HW configuration register instead
of statically defined value.

Tested with:
    - DFU gadget (various size of the sent data - also packet = MPS)
    - Ethernet gadget (CDC and RNDIS)
    - Multi Function Gadget (g_multi)

HW: 
    - Samsung's C210 Universal rev.0
    - Samsung's C110 GONI

---
Changes for v2:
- Support for regulator_bulk_*
- Number of EPs determined during runtime
- Usage of udc_start and udc_stop methods instead of deprecated ones
- Code preparation to move to dwc2 driver from s3c-hsotg

---
Changes for v3:
- Comments refactored to comply with kernel coding style
- Doxygen functions descriptions added 
- Removal of our_hsotg global pointer variable


Joonyoung Shim (1):
  USB: s3c-hsotg: Add platform data callbacks for phy control

Lukasz Majewski (12):
  usb:hsotg:samsung: Wrappers for USB PHY methods
  usb:hsotg:samsung: Use of regulator_bulk_* functions for USB
    regulators
  usb:hsotg:samsung: NAK management for EP0 (Setup stage of control
    transfers)
  usb:hsotg:samsung: Sending ZLP packet for IN EP0 transfers
  usb:hsotg:samsung: Extract core initialization function
  usb:hsotg:samsung: Remove Disconnect Interrupt handler
  usb:hsotg:samsung: Rename s3c_hsotg_disconnect function
  usb:hsotg:samsung: Cable disconnection recovery code
  usb:hsotg:samsung: Determine number of EPs from HW configuration
    register
  usb:hsotg:samsung: Use new udc_start and udc_stop callbacks
  usb:hsotg:samsung: Comments reorganization and cleanup
  usb:hsotg:samsung: Remove our_hsotg global pointer

 drivers/usb/gadget/s3c-hsotg.c | 1125 ++++++++++++++++++++++++----------------
 1 files changed, 676 insertions(+), 449 deletions(-)

-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux