mbox series

[0/2] PCI: endpoint: Fix core_init_notifier feature

Message ID 1627429537-4554-1-git-send-email-hayashi.kunihiko@socionext.com
Headers show
Series PCI: endpoint: Fix core_init_notifier feature | expand

Message

Kunihiko Hayashi July 27, 2021, 11:45 p.m. UTC
This series has two fixes for core_init_notifier feature.

Fix the bug that the driver can't register its notifier function
if core_init_notifier == true and linkup_notifier == false.

If enabling the controller is delayed due to core_init_notifier, 
accesses to the controller register should be avoided rather than
enabling the controller.

Kunihiko Hayashi (2):
  PCI: endpoint: pci-epf-test: register notifier if only
    core_init_notifier is enabled
  PCI: designware-ep: Fix the access to DBI/iATU registers before
    enabling controller

 drivers/pci/controller/dwc/pcie-designware-ep.c | 81 +++++++++++++------------
 drivers/pci/endpoint/functions/pci-epf-test.c   |  2 +-
 2 files changed, 42 insertions(+), 41 deletions(-)