OpenCloudOS-Kernel/drivers/usb/cdns3
Jayshri Pawar 54c4c69f0b usb: cdns3: Add streams support to cadence USB3 DRD driver
This patch includes streams implementation changes.
The current changes has been validated on FPGA platform.

Enabled streams related interrupts only for streams capable endpoints.
Processed  PRIME and IOT interrupts related to streams capable endpoints.
Based on PRIME interrupt prime_flag is set and transfer is armed
otherwise just adding request to the deferred request queue.
For streams capable endpoints preparing TD with correct stream ID.

TDL calculation:
Updated tdl calculation based on controller versions.
1. For controller version DEV_VER_V2 :We have enabled USB_CONF2_EN_TDL_TRB
   bit in usb_conf2 register in DMULT configuration.
   This enables TDL calculation based on TRB, hence setting TDL in TRB.
2. For controller Version < DEV_VER_V2 : Writing TDL and STDL in ep_cmd
   register
3. For controller version > DEV_VER_V2 : Writing TDL in ep_tdl register.

Writing ERDY with correct Stream ID to ep_cmd register.
Added stream id related information to trace logs.

Signed-off-by: Rahul Kumar <kurahul@cadence.com>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Jayshri Pawar <jpawar@cadence.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-15 10:39:22 +01:00
..
Kconfig usb: cdns3: Add TI specific wrapper driver 2019-10-29 12:55:09 +02:00
Makefile usb: cdns3: Add TI specific wrapper driver 2019-10-29 12:55:09 +02:00
cdns3-pci-wrap.c usb: cdns3: Fix use after free in probe error handling 2019-10-04 11:02:58 +02:00
cdns3-ti.c usb: cdns3: Add TI specific wrapper driver 2019-10-29 12:55:09 +02:00
core.c usb: cdns3: Error out if USB_DR_MODE_UNKNOWN in cdns3_core_init_role() 2019-10-18 12:00:15 -07:00
core.h
debug.h
drd.c
drd.h
ep0.c usb:cdns3: Fix for CV CH9 running with g_zero driver. 2019-10-07 12:56:26 +02:00
gadget-export.h
gadget.c usb: cdns3: Add streams support to cadence USB3 DRD driver 2020-01-15 10:39:22 +01:00
gadget.h usb: cdns3: Add streams support to cadence USB3 DRD driver 2020-01-15 10:39:22 +01:00
host-export.h usb: cdns3: include host-export,h for cdns3_host_init 2019-10-27 08:58:44 +02:00
host.c usb: cdns3: include host-export,h for cdns3_host_init 2019-10-27 08:58:44 +02:00
trace.c
trace.h usb: cdns3: Add streams support to cadence USB3 DRD driver 2020-01-15 10:39:22 +01:00