All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/6] Introduced new Cadence USBSS DRD Driver.
@ 2019-02-14 19:45 ` Pawel Laszczak
  0 siblings, 0 replies; 81+ messages in thread
From: Pawel Laszczak @ 2019-02-14 19:45 UTC (permalink / raw)
  To: devicetree
  Cc: gregkh, felipe.balbi, mark.rutland, linux-usb, hdegoede,
	heikki.krogerus, andy.shevchenko, robh+dt, rogerq, linux-kernel,
	jbergsagel, nsekhar, nm, sureshp, peter.chen, kurahul,
	Pawel Laszczak

This patch introduce new Cadence USBSS DRD driver to linux kernel.

The Cadence USBSS DRD Driver is a highly configurable IP Core whichi
can be instantiated as Dual-Role Device (DRD), Peripheral Only and
Host Only (XHCI)configurations.

The current driver has been validated with FPGA burned. We have support
for PCIe bus, which is used on FPGA prototyping.

The host side of USBSS-DRD controller is compliance with XHCI
specification, so it works with standard XHCI linux driver.

Changes since v3:
- updated dt-binding as suggested by Rob Herring
- updated patch 002, 003 and 004 according with patch:
  https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/commit/
  ?h=next&id=7790b3556fccc555ae422f1576e97bf34c8ab8b6 posted by Felipe Balbi.
- fixed issues related to isochronous transfers.
- improved algorithm calculating number of on-chip buffers required
  by endpoints.
- fixed incorrect macro EP_CFG_MULT in gadget.h file.
- fixed potential issue with incorrect order of instruction - added wmb().
- made some minor changes suggested by reviewers.

*Changes since v2:
- made some text correction in Kconfig file as suggested by Randy Dunlap.
- simplified Makefile as suggested by Peter Chan.
- removed phy-names from dt-binding as suggested Rob Herring.
- changed cdns3-usb.txt to cdns3-usb3.txt as suggested by Rob Herring.
- added checking error code in some function in drd.c file 
  as suggested by Peter Chan.
- added reg-names to dt-binding documentation as suggested by Chunfeng Yun.
- replaced platform_get_resource with platform_get_resource_byname.
- made other changes suggested by Chunfeng Yun.
- fixed bug in cdns3_get_id. Now function return id instead 1.
- added trace_cdns3_log trace event.
- simplify cdns3_disable_write function.
- create separate patch for work around related with blocking endpoint 
  issue.
- Fixed issue related with stale data address in TRB. 
  Issue: At some situations, the controller may get stale data address
  in TRB at below sequences:
  1. Controller read TRB includes data address.
  2. Software updates TRBs includes data address and Cycle bit.
  3. Controller read TRB which includes Cycle bit.
  4. DMA run with stale data address.
- Fixed issue without transfer. In some cases not all interrupts
  disabled in Hard IRQ was enabled in Soft Irq.
- Modified LFPS minimal U1 Exit time for controller revision 0x00024505.
- Fixed issue - in some case selected endpoint was unexpectedly changed.
- Fixed issue - after clearing halted endpoint transfer was not started.
- Fixed issue - in some case driver send ACK instead STALL in status phase.
- Fixed issues related to dequeue request.
- Fixed incorrect operator in cdns3_ep_run_transfer function.

Changes since v1:
 - Removed not implemented Suspend/Resume functions.
 - Fixed some issues in debugging related functions.
 - Added trace_cdns3_request_handled marker.
 - Added support for Isochronous transfer. 
 - Added some additional descriptions.
 - Fixed compilation error in cdns3_gadget_ep_disable.
 - Added detection of device controller version at runtime.
 - Upgraded dt-binding documentation.
 - Deleted ENOSYS from phy initialization section. It should be also removed
   from generic PHY driver.
 - added ep0_stage flag used during enumeration process.
 - Fixed issue with TEST MODE.
 - Added one common function for finish control transfer.
 - Separated some decoding function from dwc3 driver to common library file,
   and removed equivalents function from debug.h file as suggested  by Felipe.
 - replaced function name cdns3_gadget_unconfig with cdns3_hw_reset_eps_config.
 - Improved algorithm fixing hardware issue related to blocking endpoints.
   This issue is related to on-chip shared FIFO buffers for OUT packets. 
   Problem was reported by Peter Chan.
 - Changed organization of endpoint array in cdns3_device object.  
      - added ep0 to common eps array
      - removed cdns3_free_trb_pool and cdns3_ep_addr_to_bit_pos macros.
      - removed ep0_trb_dma, ep0_trb fields from cdns3_device.
 - Removed ep0_request and ep_nums fields from cdns3_device.
 - Other minor changes according with Felipe suggestion.

---

Pawel Laszczak (6):
  dt-bindings: add binding for USBSS-DRD controller.
  usb:common Separated decoding functions from dwc3 driver.
  usb:common Patch simplify usb_decode_set_clear_feature function.
  usb:common Simplify usb_decode_get_set_descriptor function.
  usb:cdns3 Add Cadence USB3 DRD Driver
  usb:cdns3 Fix for stuck packets in on-chip OUT buffer.

 .../devicetree/bindings/usb/cdns-usb3.txt     |   30 +
 drivers/usb/Kconfig                           |    2 +
 drivers/usb/Makefile                          |    2 +
 drivers/usb/cdns3/Kconfig                     |   44 +
 drivers/usb/cdns3/Makefile                    |   14 +
 drivers/usb/cdns3/cdns3-pci-wrap.c            |  155 ++
 drivers/usb/cdns3/core.c                      |  403 +++
 drivers/usb/cdns3/core.h                      |  116 +
 drivers/usb/cdns3/debug.h                     |  168 ++
 drivers/usb/cdns3/debugfs.c                   |  164 ++
 drivers/usb/cdns3/drd.c                       |  365 +++
 drivers/usb/cdns3/drd.h                       |  162 ++
 drivers/usb/cdns3/ep0.c                       |  907 +++++++
 drivers/usb/cdns3/gadget-export.h             |   28 +
 drivers/usb/cdns3/gadget.c                    | 2272 +++++++++++++++++
 drivers/usb/cdns3/gadget.h                    | 1214 +++++++++
 drivers/usb/cdns3/host-export.h               |   28 +
 drivers/usb/cdns3/host.c                      |   72 +
 drivers/usb/cdns3/trace.c                     |   23 +
 drivers/usb/cdns3/trace.h                     |  404 +++
 drivers/usb/common/Makefile                   |    2 +-
 drivers/usb/common/debug.c                    |  270 ++
 drivers/usb/dwc3/debug.h                      |  249 --
 drivers/usb/dwc3/trace.h                      |    2 +-
 include/linux/usb/ch9.h                       |   25 +
 25 files changed, 6870 insertions(+), 251 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/usb/cdns-usb3.txt
 create mode 100644 drivers/usb/cdns3/Kconfig
 create mode 100644 drivers/usb/cdns3/Makefile
 create mode 100644 drivers/usb/cdns3/cdns3-pci-wrap.c
 create mode 100644 drivers/usb/cdns3/core.c
 create mode 100644 drivers/usb/cdns3/core.h
 create mode 100644 drivers/usb/cdns3/debug.h
 create mode 100644 drivers/usb/cdns3/debugfs.c
 create mode 100644 drivers/usb/cdns3/drd.c
 create mode 100644 drivers/usb/cdns3/drd.h
 create mode 100644 drivers/usb/cdns3/ep0.c
 create mode 100644 drivers/usb/cdns3/gadget-export.h
 create mode 100644 drivers/usb/cdns3/gadget.c
 create mode 100644 drivers/usb/cdns3/gadget.h
 create mode 100644 drivers/usb/cdns3/host-export.h
 create mode 100644 drivers/usb/cdns3/host.c
 create mode 100644 drivers/usb/cdns3/trace.c
 create mode 100644 drivers/usb/cdns3/trace.h
 create mode 100644 drivers/usb/common/debug.c

-- 
2.17.1


^ permalink raw reply	[flat|nested] 81+ messages in thread

end of thread, other threads:[~2019-03-28  8:28 UTC | newest]

Thread overview: 81+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 19:45 [PATCH v4 0/6] Introduced new Cadence USBSS DRD Driver Pawel Laszczak
2019-02-14 19:45 ` Pawel Laszczak
2019-02-14 19:45 ` [PATCH v4 1/6] dt-bindings: add binding for USBSS-DRD controller Pawel Laszczak
2019-02-14 19:45   ` [v4,1/6] " Pawel Laszczak
2019-02-14 19:45   ` [PATCH v4 1/6] " Pawel Laszczak
2019-02-18 16:46   ` Rob Herring
2019-02-18 16:46     ` [v4,1/6] " Rob Herring
2019-02-18 16:46     ` [PATCH v4 1/6] " Rob Herring
2019-02-14 19:45 ` [PATCH v4 2/6] usb:common Separated decoding functions from dwc3 driver Pawel Laszczak
2019-02-14 19:45   ` [v4,2/6] " Pawel Laszczak
2019-02-14 19:45   ` [PATCH v4 2/6] " Pawel Laszczak
2019-02-19 13:14   ` Greg KH
2019-02-19 13:14     ` [v4,2/6] " Greg Kroah-Hartman
2019-02-20  6:28     ` [PATCH v4 2/6] " Pawel Laszczak
2019-02-20  6:28       ` [v4,2/6] " Pawel Laszczak
2019-02-14 19:45 ` [PATCH v4 3/6] usb:common Patch simplify usb_decode_set_clear_feature function Pawel Laszczak
2019-02-14 19:45   ` [v4,3/6] " Pawel Laszczak
2019-02-14 19:45   ` [PATCH v4 3/6] " Pawel Laszczak
2019-02-14 19:45 ` [PATCH v4 4/6] usb:common Simplify usb_decode_get_set_descriptor function Pawel Laszczak
2019-02-14 19:45   ` [v4,4/6] " Pawel Laszczak
2019-02-14 19:45   ` [PATCH v4 4/6] " Pawel Laszczak
2019-02-14 19:45 ` [PATCH v4 5/6] usb:cdns3 Add Cadence USB3 DRD Driver Pawel Laszczak
2019-02-14 19:45   ` [v4,5/6] " Pawel Laszczak
2019-02-14 19:45   ` [PATCH v4 5/6] " Pawel Laszczak
2019-02-15  9:57   ` Chunfeng Yun
2019-02-15  9:57     ` [v4,5/6] " Chunfeng Yun
2019-02-15  9:57     ` [PATCH v4 5/6] " Chunfeng Yun
2019-03-04 11:01     ` Pawel Laszczak
2019-03-04 11:01       ` [v4,5/6] " Pawel Laszczak
2019-03-04 11:01       ` [PATCH v4 5/6] " Pawel Laszczak
2019-03-04 12:46       ` Pawel Laszczak
2019-03-04 12:46         ` [v4,5/6] " Pawel Laszczak
2019-03-04 12:46         ` [PATCH v4 5/6] " Pawel Laszczak
2019-03-05  1:42       ` Chunfeng Yun
2019-03-05  1:42         ` [v4,5/6] " Chunfeng Yun
2019-03-05  1:42         ` [PATCH v4 5/6] " Chunfeng Yun
2019-02-19 13:24   ` Greg KH
2019-02-19 13:24     ` [v4,5/6] " Greg Kroah-Hartman
2019-03-04  9:23     ` [PATCH v4 5/6] " Pawel Laszczak
2019-03-04  9:23       ` [v4,5/6] " Pawel Laszczak
2019-02-20 13:04   ` [PATCH v4 5/6] " Roger Quadros
2019-02-20 13:04     ` [v4,5/6] " Roger Quadros
2019-02-20 13:04     ` [PATCH v4 5/6] " Roger Quadros
2019-03-07  5:37     ` Pawel Laszczak
2019-03-07  5:37       ` [v4,5/6] " Pawel Laszczak
2019-03-11 11:53       ` [PATCH v4 5/6] " Roger Quadros
2019-03-11 11:53         ` [v4,5/6] " Roger Quadros
2019-03-28  6:05         ` [PATCH v4 5/6] " Pawel Laszczak
2019-03-28  6:05           ` [v4,5/6] " Pawel Laszczak
2019-02-21  9:22   ` [PATCH v4 5/6] " Peter Chen
2019-02-21  9:22     ` [v4,5/6] " Peter Chen
2019-02-21  9:22     ` [PATCH v4 5/6] " Peter Chen
2019-03-07  9:52     ` Pawel Laszczak
2019-03-07  9:52       ` [v4,5/6] " Pawel Laszczak
2019-03-12  3:44   ` [PATCH v4 5/6] " Peter Chen
2019-03-12  3:44     ` [v4,5/6] " Peter Chen
2019-03-28  8:26     ` [PATCH v4 5/6] " Pawel Laszczak
2019-02-14 19:45 ` [PATCH v4 6/6] usb:cdns3 Fix for stuck packets in on-chip OUT buffer Pawel Laszczak
2019-02-14 19:45   ` [v4,6/6] " Pawel Laszczak
2019-02-14 19:45   ` [PATCH v4 6/6] " Pawel Laszczak
2019-02-20 10:24   ` Roger Quadros
2019-02-20 10:24     ` [v4,6/6] " Roger Quadros
2019-02-20 10:24     ` [PATCH v4 6/6] " Roger Quadros
2019-02-20 11:18     ` Pawel Laszczak
2019-02-20 11:18       ` [v4,6/6] " Pawel Laszczak
2019-02-20 13:17       ` [PATCH v4 6/6] " Roger Quadros
2019-02-20 13:17         ` [v4,6/6] " Roger Quadros
2019-02-20 15:50         ` [PATCH v4 6/6] " Pawel Laszczak
2019-02-20 15:50           ` [v4,6/6] " Pawel Laszczak
2019-02-21  7:14           ` [PATCH v4 6/6] " Felipe Balbi
2019-02-21  7:14             ` [v4,6/6] " Felipe Balbi
2019-02-21  7:14             ` [PATCH v4 6/6] " Felipe Balbi
2019-03-04 10:25             ` Roger Quadros
2019-03-04 10:25               ` [v4,6/6] " Roger Quadros
2019-03-07  7:06               ` [PATCH v4 6/6] " Pawel Laszczak
2019-03-07  7:06                 ` [v4,6/6] " Pawel Laszczak
2019-03-07  9:13                 ` [PATCH v4 6/6] " Roger Quadros
2019-03-07  9:13                   ` [v4,6/6] " Roger Quadros
2019-03-11  8:15                   ` [PATCH v4 6/6] " Peter Chen
2019-03-11  8:15                     ` [v4,6/6] " Peter Chen
2019-03-11  8:15                     ` [PATCH v4 6/6] " Peter Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.