lkml.org 
[lkml]   [2019]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/4] PCI: endpoint: Add notification for core init completion
From
Date
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@nvidia.com>
> ---
> 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

\
 
 \ /
  Last update: 2019-11-27 09:20    [W:0.184 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site