Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4783697pxv; Tue, 27 Jul 2021 16:46:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8MIQ5ajoXZYaAwOZK/BJpdgdT3roOzVBtjbXSl1fw4xisE6UIdnqwWKFPpvdu1cOTj2gX X-Received: by 2002:a05:6602:2491:: with SMTP id g17mr18334507ioe.98.1627429603690; Tue, 27 Jul 2021 16:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627429603; cv=none; d=google.com; s=arc-20160816; b=P9lIo5HpymDlP4E93OGnLZr2VSUwlp+6PoAa8fM5BsLt2v+h3Iya3tBBsJ0jKhD5NA lvuzfucYiyRaLUtb2Rpnw6R+jAybZ55EvJmMu4hDh0Ai2oCae9N8SUm7+KBN3LSn5OiE 6HjfWfQrzXQumOTbjajUUW41VFP3En6jVDaookMOVnk+hfEyvek/lcSiSPatsHIi3fZn 6+YIa3SsflJDrAObUWWq3lluNTj66/whempCasYWhfYrMTvCA1F0YVndoCNH8ZbNcVRy ldfx0vCobONWSeAKdN5t5e2+9ic+p5o9/4e7u10yd0LQazeoLmlw3s/mbHItVMNmHG+O E8tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=sZPVd2wRDeWpOCJCXHWhJXg0Rg55Ww4JJGTJ/fIXCEs=; b=MJnKLOiWBDWVM8+JoTx9sbIbZo5wEwr+3trP25oQ3Us1HD7y5o3T/+piBdcnb3THlg irKr1+uQ/QCPgDultKzuoWVaCnyVbQJfp3n5fXhy32eGZAH+Asi/QQydTPfE4KzpXmS8 5kvTpKR9gdKdwzlX+rOfkebMEkgwiNNHKhimZZa9+FtfTXx8MZSh59xDJgKFTBdFKQdX bVDFOfFrhem+w1310eLlQ0LaFOARaW7dlBGtb37KqnF86VRLsH5uM7ZmaMkVAeyFW5eI J0Pj2PTpkwjHew/ArxEMH38l/bPBHaeRvGZvP3mJZNpc/LLBfrtDh2P9NvC2Ec3ZW3yX wYjQ== 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 t13si4995915ilg.9.2021.07.27.16.46.30; Tue, 27 Jul 2021 16:46:43 -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 S233731AbhG0Xpu (ORCPT + 99 others); Tue, 27 Jul 2021 19:45:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:27900 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbhG0Xpu (ORCPT ); Tue, 27 Jul 2021 19:45:50 -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:49 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 11FC42083C46; Wed, 28 Jul 2021 08:45:49 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 28 Jul 2021 08:45:49 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 6643DB633F; Wed, 28 Jul 2021 08:45:48 +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 0/2] PCI: endpoint: Fix core_init_notifier feature Date: Wed, 28 Jul 2021 08:45:35 +0900 Message-Id: <1627429537-4554-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series has two fixes for core_init_notifier feature. Fix the bug that the driver can't register its notifier function if core_init_notifier == true and linkup_notifier == false. If enabling the controller is delayed due to core_init_notifier, accesses to the controller register should be avoided rather than enabling the controller. Kunihiko Hayashi (2): PCI: endpoint: pci-epf-test: register notifier if only core_init_notifier is enabled PCI: designware-ep: Fix the access to DBI/iATU registers before enabling controller drivers/pci/controller/dwc/pcie-designware-ep.c | 81 +++++++++++++------------ drivers/pci/endpoint/functions/pci-epf-test.c | 2 +- 2 files changed, 42 insertions(+), 41 deletions(-) -- 2.7.4