Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4783859pxv; Tue, 27 Jul 2021 16:47:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4SPTrqYekD7joHecBK9dmQj85RkUs23N35v7xVCdzP8GMs8fevgc6Yu93YQSzaCV7UMed X-Received: by 2002:a92:c043:: with SMTP id o3mr15444603ilf.189.1627429625642; Tue, 27 Jul 2021 16:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627429625; cv=none; d=google.com; s=arc-20160816; b=xO0ngJbnZcdgcOjueBUyOJcsMFR886zrH9Old8Xb5oHOfvLkj6Z/JSxuzxlQdnsNx/ 1+yZYZ9eMjcj0OhWFh35gy0CDetmjYlv7oh1qbKU1S9jEOG5JKZLizqbcew1IoR56zbL UthQV0hP1nshE590UzsulAmQnSL5xoKSZybY0Ubp+mLxKk2H5OUjVkBd4h6ALZxITALi SuEc8oGpcoS+zvUvxUjs6Jbw8k1DKtGebf4bfblrCRm2vy7Q8evH5bdUyRgrz9WXkmdj rbIyApSrvVhqWZ4X6ELzBv2bbk2BPIL6T7bJ3YRsfu4JYaSJ6rVkkLSIwXcDGA9La9qN O05w== 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=DWxb3lQ5B98NgDNJX6xhkCFfgOGkjuRz0jgz4Pr6UmQ=; b=QbcDGOPn2mgwSqIdAXiLxK6Pw3qVzV2hQ80/1biS6Yztj046m8qg+4jzo78mDxSojU IW+wMNoaTEWataDn7tHzDo7DF8GvRwf2mALG7gzutn+qDshGjlMZv37ylI/FdpNNNAtD BYylPXdLkuzrzMs/CN9VxhP0xJ2ixd3pKo7uotW8MAscjhaSZNsPcoHmNIntw1GisqNz 9srv5/X0JJA67ZREHdtAKDqpbLj5u9oVJfUZnix4P7t5TY+SZzsZz/3ePWo0vbHnhMdp Ducm0Tz2+fBv+/wwyxtOzzLRWsVpkQkjAA0Aaaugir93o8zCEYbK6EtqZq5DHyRWA5Qx M0Cw== 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 e127si4472890iof.13.2021.07.27.16.46.54; Tue, 27 Jul 2021 16:47:05 -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 S233830AbhG0Xpw (ORCPT + 99 others); Tue, 27 Jul 2021 19:45:52 -0400 Received: from mx.socionext.com ([202.248.49.38]:36672 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233709AbhG0Xpv (ORCPT ); Tue, 27 Jul 2021 19:45:51 -0400 Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 28 Jul 2021 08:45:50 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 1AFD82083C46; Wed, 28 Jul 2021 08:45:50 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 28 Jul 2021 08:45:50 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id AA0DAB633F; Wed, 28 Jul 2021 08:45:49 +0900 (JST) From: Kunihiko Hayashi To: Vidya Sagar , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Kishon Vijay Abraham I Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 1/2] PCI: endpoint: pci-epf-test: register notifier if only core_init_notifier is enabled Date: Wed, 28 Jul 2021 08:45:36 +0900 Message-Id: <1627429537-4554-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1627429537-4554-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1627429537-4554-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 --- 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 d2708ca..73833a4 100644 --- a/drivers/pci/endpoint/functions/pci-epf-test.c +++ b/drivers/pci/endpoint/functions/pci-epf-test.c @@ -864,7 +864,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