Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp300710pxb; Tue, 31 Aug 2021 22:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZeTrVo1Ioy74zC1VZ+zUOcYr2nWL76eLE+g/XRt00uiyH5viZcsqwL2v4TsK/UMpq15Fn X-Received: by 2002:a05:6e02:dcc:: with SMTP id l12mr23171970ilj.20.1630473511914; Tue, 31 Aug 2021 22:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630473511; cv=none; d=google.com; s=arc-20160816; b=jw1edAzQTrhlbtY9xIBYgn5owy4Y4SQ1aXlG2VjejoYyzcMwejS/+Shs9tiOL9ji25 I/HFEHWcGCyb6o9MrK1rjj2yM1rdOt6Z5cUPEvtOSV9bB3PMz4TIMfC7lHl4FKfS7BRP 7Pn1/vsE/JKbHi6zeP/17VbJHzFQiuSQZkiM57s5JkmwIX7vCf03ziyNCWEL5QOIu2kh h49RQAN4SUAVOhTxPJPg4qZeski3BCpBooGnsqZAelThEGJCJrT2QdlX6MoGdY1iHyGp kzD8r00SDlmDxFXMpObn8ERDDtFTfItMWekNkpy7cTFb8xpfYsLz6bcmp3QHUvsnX7AW koYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=YgeAXQlrCV/Dz9qiaDNIbcdXJZxqd4u9aXcJjUG+xgo=; b=dClZ7bQkkajj3RH+Yh7OfPd5jFJwssb/e5lNCEEiz/VeYD1yYjBqlNj6cQ6uYzQSZg 8zJ2eCstbsdYJHYdDUwMdMjaVX1NQC0lRCn5WF/PAwTDAt85+zzOn/yAXWeij/hAEaGq FLFbS0a3MTXBQiGq4Xlm4Iy+tXVO76duME4+bJk9YZAlaAUGZYAPPhUUVbSZhbCeXm6J Hm8sMEYpZd/Meapgl3ceD0PV8a2JkiU7qcvbKwCzlIthhctmz7+qxWnpNdXsQRoy8/R+ bUl0A4/0UmVhK+Xgl7TTVV6RUqEgBgRPCLRMUMVx/xmyeq9Fz83F18feOHTPSxc5M/Kt UGrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t124si12493174jaa.105.2021.08.31.22.18.20; Tue, 31 Aug 2021 22:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241966AbhIAFRM (ORCPT + 99 others); Wed, 1 Sep 2021 01:17:12 -0400 Received: from mx.socionext.com ([202.248.49.38]:8845 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240774AbhIAFRI (ORCPT ); Wed, 1 Sep 2021 01:17:08 -0400 Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 01 Sep 2021 14:16:11 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id BB8182059036; Wed, 1 Sep 2021 14:16:11 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 1 Sep 2021 14:16:11 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 540D0B62B7; Wed, 1 Sep 2021 14:16:11 +0900 (JST) From: Kunihiko Hayashi To: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Kishon Vijay Abraham I Cc: Xiaowei Bao , Om Prakash Singh , Vidya Sagar , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v2 1/2] PCI: endpoint: pci-epf-test: register notifier if only core_init_notifier is enabled Date: Wed, 1 Sep 2021 14:16:00 +0900 Message-Id: <1630473361-27198-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1630473361-27198-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1630473361-27198-1-git-send-email-hayashi.kunihiko@socionext.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Need to register pci_epf_test_notifier function even if only core_init_notifier is enabled. Signed-off-by: Kunihiko Hayashi Acked-by: Om Prakash Singh --- drivers/pci/endpoint/functions/pci-epf-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c index 90d84d3..80456ad 100644 --- a/drivers/pci/endpoint/functions/pci-epf-test.c +++ b/drivers/pci/endpoint/functions/pci-epf-test.c @@ -874,7 +874,7 @@ static int pci_epf_test_bind(struct pci_epf *epf) if (ret) epf_test->dma_supported = false; - if (linkup_notifier) { + if (linkup_notifier || core_init_notifier) { epf->nb.notifier_call = pci_epf_test_notifier; pci_epc_register_notifier(epc, &epf->nb); } else { -- 2.7.4