[PATCH v2 0/3] usb: dwc2: gadget: Update ISOC DDMA flow.

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

 



This series fully update existing ISOC DDMA flow which initially based on
2 descriptor chains. Switching between desc chains performing based on BNA
interrupt. Because of BNA interrupt few packets can be lost.

1/3 patch unmask ISOC IN BNA interrupt only.
2/3 patch changing ISOC IN/OUT flow as described above.
3/3 patch add High bandwidth ISOC OUT transfers support.

All patches were tested on HAPS-DX7 platform using internal USB test tool.

Changes from version 1:

In patch 2/3 removed redundant warning print in dwc2_hsotg_ep_queue()
(Zengtao (B) <prime.zeng@xxxxxxxxxxxxx>)

In patch 2/3 replace loop counter from 'ret' to 'i' in
dwc2_gadget_start_isoc_ddma() (Zengtao (B) <prime.zeng@xxxxxxxxxxxxx>)

In patch 3/3 fix 2 kbuild test robot warnings.

In patch 3/3 updated target_frame number width from 11-bit to 14-bit.

In patches 2/3 and 3/3 updated all requests completion status codes to 0
instead of error codes (ENODATA, EIO, ETIMEDOUT). In case of errors,
set request actual length to 0, to keep consistency with original code.

Changes from version 0:

Fix kbuild test robot warnings on idents.


Minas Harutyunyan (3):
  usb: dwc2: Enable BNA interrupt for IN endpoints
  usb: dwc2: Change ISOC DDMA flow
  usb: dwc2: Add High Bandwidth ISOC OUT support

 drivers/usb/dwc2/core.h   |   2 -
 drivers/usb/dwc2/gadget.c | 498 ++++++++++++++++++++++++++++++++--------------
 2 files changed, 348 insertions(+), 152 deletions(-)

-- 
2.11.0

--
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