PCI: endpoint: Use notification chain mechanism to notify EPC events to EPF
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 24 Feb 2020 09:53:34 +0000 (15:23 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 24 Feb 2020 10:07:06 +0000 (10:07 +0000)
commit5779dd0a7dbd71e82478fb0bf125cc6cd3c43266
treed3e6f62c7820f882ba2cd3d006153185592e7628
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
PCI: endpoint: Use notification chain mechanism to notify EPC events to EPF

Use atomic_notifier_call_chain() to notify EPC events like linkup to EPF
driver instead of using linkup ops in EPF driver. This is in preparation
for adding proper locking mechanism to EPF ops. This will also enable to
add more events (in addition to linkup) in the future.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Vidya Sagar <vidyas@nvidia.com>
drivers/pci/endpoint/functions/pci-epf-test.c
drivers/pci/endpoint/pci-epc-core.c
drivers/pci/endpoint/pci-epf-core.c
include/linux/pci-epc.h
include/linux/pci-epf.h