From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 457F2C433DB for ; Sun, 24 Jan 2021 15:11:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC84E22B2B for ; Sun, 24 Jan 2021 15:11:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC84E22B2B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=BEfX5C9M3y1uucNgqSQancgYfJTDAH0fOR3D0gSgNBk=; b=CpzcPnyvAKHQhiOyYEs2d/XoIv 6ChljJv58oavm0rRI10Eu7cWXNsBlxGDsJethrZGTIq4WsE2pYEccG6k2Td1GFqSzoroYjuK/AO7z TPRUrEHB4+C349HbxyTKDpGcVB03KNYkGuPH7gMGWALjEzpHyev2AHxvbwvUraBbpL5vE7j+xWOAA aexOJWEYjejSVja4kZyu+ustVw2l/33B1MAsPqKmxjkb9LkdVXaTu3Ct+VfIQBrb12UuY5+gz0O9M 5rIO0YJMer1z7ycnIoukrgqOr7DOJGzH4INM/+pNGPxu3WLkJIW+zSoaVn72VeCuMJB6ZGeCyNjsS iAVEUyoA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3h1P-0003jT-Oh; Sun, 24 Jan 2021 15:09:47 +0000 Received: from mx.socionext.com ([202.248.49.38]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3h1N-0003iJ-2r for linux-arm-kernel@lists.infradead.org; Sun, 24 Jan 2021 15:09:45 +0000 Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 25 Jan 2021 00:09:43 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 8F52F2059027; Mon, 25 Jan 2021 00:09:43 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 25 Jan 2021 00:09:43 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan2.css.socionext.com (Postfix) with ESMTP id CE604B1D40; Mon, 25 Jan 2021 00:09:42 +0900 (JST) From: Kunihiko Hayashi To: Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Kishon Vijay Abraham I Subject: [PATCH v2 0/3] PCI: endpoint: Add endpoint restart management support Date: Mon, 25 Jan 2021 00:09:34 +0900 Message-Id: <1611500977-24816-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210124_100945_333135_2462946F X-CRM114-Status: GOOD ( 16.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kunihiko Hayashi , Masami Hiramatsu , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jassi Brar , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add new functions to manage recovery of configuration for endpoint controller and restart the controller when asserting bus-reset from root complex (RC). This feature is only available if bus-reset (PERST#) line is physically routed between RC and endpoint, and the signal from RC also resets the endpoint controller. This series is only for UniPhier PCIe endpoint controller at this point. Changes since v1: - Update the patches to rebase onto the latest tree Kunihiko Hayashi (3): PCI: endpoint: Add 'started' to pci_epc to set whether the controller is started PCI: endpoint: Add endpoint restart management PCI: uniphier-ep: Add EPC restart management support drivers/pci/controller/dwc/Kconfig | 1 + drivers/pci/controller/dwc/pcie-uniphier-ep.c | 44 +++++++++- drivers/pci/endpoint/Kconfig | 9 ++ drivers/pci/endpoint/Makefile | 1 + drivers/pci/endpoint/pci-epc-core.c | 2 + drivers/pci/endpoint/pci-epc-restart.c | 114 ++++++++++++++++++++++++++ include/linux/pci-epc.h | 22 +++++ 7 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 drivers/pci/endpoint/pci-epc-restart.c -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel