[PATCH 00/12] PCI endpoint fixes and improvements

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

 



This series fixes several issues with the PCI endpoint code and endpoint
test drivers (host side and EP side).

The first 2 patches address an issue with the use of configfs to create
an endpoint driver type attributes group, preventing a potential crash
if the user creates the driver attribute group directory multiple times.

The following patches are fixes and improvements for the endpoint test
drivers, EP side and host side.

This is all tested using a Pine Rockpro64 board, with the rockchip ep
driver fixed using Rick Wertenbroek <rick.wertenbroek@xxxxxxxxx>
patches [1], plus some additional fixes from me.

[1] https://lore.kernel.org/linux-pci/20230214140858.1133292-1-rick.wertenbroek@xxxxxxxxx/

Damien Le Moal (12):
  pci: endpoint: Automatically create a function type attributes group
  pci: endpoint: do not export pci_epf_type_add_cfs()
  pci: epf-test: Fix DMA transfer completion detection
  pci: epf-test: Use driver registers as volatile
  pci: epf-test: Simplify dma support checks
  pci: epf-test: Simplify transfers result print
  pci: epf-test: Add debug and error messages
  misc: pci_endpoint_test: Free IRQs before removing the device
  misc: pci_endpoint_test: Do not write status in IRQ handler
  misc: pci_endpoint_test: Re-init completion for every test
  misc: pci_endpoint_test: Simplify pci_endpoint_test_msi_irq()
  misc: pci_endpoint_test: Add debug and error messages

 drivers/misc/pci_endpoint_test.c              |  51 +++--
 drivers/pci/endpoint/functions/pci-epf-test.c | 207 +++++++++++-------
 drivers/pci/endpoint/pci-ep-cfs.c             |  44 ++--
 drivers/pci/endpoint/pci-epf-core.c           |  12 +-
 drivers/pci/endpoint/pci-epf.h                |  14 ++
 include/linux/pci-epf.h                       |   2 -
 6 files changed, 197 insertions(+), 133 deletions(-)
 create mode 100644 drivers/pci/endpoint/pci-epf.h

-- 
2.39.1




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux