]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5070813ec07c6bc6dd4069f024fbc618de73c00a
treed3e6f62c7820f882ba2cd3d006153185592e7628
parent900abd43b6d837ba70928a9ee9599ba3be1d2fb6
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