Re: [PATCH 2/4] PCI: endpoint: Add notification for core init completion
From: Kishon Vijay Abraham I
Date: Wed Nov 27 2019 - 03:19:29 EST
Hi,
On 13/11/19 2:38 PM, Vidya Sagar wrote:
> Add support to send notifications to EPF from EPC once the core
> registers initialization is complete.
>
> Signed-off-by: Vidya Sagar <vidyas@xxxxxxxxxx>
> ---
> drivers/pci/endpoint/pci-epc-core.c | 19 ++++++++++++++++++-
> include/linux/pci-epc.h | 1 +
> include/linux/pci-epf.h | 5 +++++
> 3 files changed, 24 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pci/endpoint/pci-epc-core.c b/drivers/pci/endpoint/pci-epc-core.c
> index 2f6436599fcb..fcc3f7fb19c0 100644
> --- a/drivers/pci/endpoint/pci-epc-core.c
> +++ b/drivers/pci/endpoint/pci-epc-core.c
> @@ -542,10 +542,27 @@ void pci_epc_linkup(struct pci_epc *epc)
> if (!epc || IS_ERR(epc))
> return;
>
> - atomic_notifier_call_chain(&epc->notifier, 0, NULL);
> + atomic_notifier_call_chain(&epc->notifier, LINK_UP, NULL);
> }
> EXPORT_SYMBOL_GPL(pci_epc_linkup);
Is this based on upstream kernel? or did you create this after applying [1]?
[1] -> https://lkml.org/lkml/2019/6/4/633
Thanks
Kishon