Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2445462pxb; Sun, 24 Jan 2021 07:14:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyje4pXrfGeYoHy1ClW+LueX1XOE+T2g6nrN64qC8Sdjixv+RCuoOjG2XjSXLpbuxNJiCVK X-Received: by 2002:a17:906:a008:: with SMTP id p8mr858118ejy.117.1611501266717; Sun, 24 Jan 2021 07:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611501266; cv=none; d=google.com; s=arc-20160816; b=T+ncyohplkdW/RMOzR8lGsNrpAFLsM4DG2CJTK8LVO+8NWj/PZ2pv7movB5ou+9Buq frUuVf00FK4yoatb6NJKW2HqyWTlOJgjQ330x8iLuRXCV5dOtKD/8OTBTDrHLrmEmd6E CKfJJjrPuSB/YsYLobjy2H2lQCTII6ijNb5bfQLMYSRV5RU4wRgl1RFbPxbE21fWWGTz HBHNo0zth/tdlu8SANrlRfV+KzNxAeuiCX+s+nVCPLpz6mGNphahxVG0VVS/Lzx79Cyx AXhjF49iuXrXNNWOPsyolYuZElHsN7+wjpAUWQm0ajKvvwCn5qizATG74KfU0RfO0/9j +ivg== 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=2eehKEkTQQwXa87amg2Pmb3koJqAqeVLAfWYLADfW7o=; b=jMGyqJ12M4n2UMzEKNCIv60O8/lZOHQNuc9OgxkBtPyn2xPwqPcp9jYz6HLn9ozpW7 2PVhNRn30ZE8sPwC2SN5X7SRwU9/OUWR+G3oL6X4aW37LkIz8t46DGJxS8xb15aJutNV EUl91CW+jqh3eLH94W4IXT3OmueL+jwY5Lmc3XRNPiuYo5eqQpfkza2YmCTGn0Ojc6i5 +uZ7Xy1fno1yeGpH4bdeSHGI6vroqEJ0ZFt7VDZYBGqTqqkOOp7/0U1s7S+P+wA1Pjbd WdP3F6C1INbccwAzEBt9xY33P5KtfCYaxIa72Ef5Qb4GLzV2KZ5YjXu1K9qQluDHKeWy HN9Q== 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 x21si4974740ejw.619.2021.01.24.07.14.03; Sun, 24 Jan 2021 07:14:26 -0800 (PST) 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 S1726049AbhAXPLY (ORCPT + 99 others); Sun, 24 Jan 2021 10:11:24 -0500 Received: from mx.socionext.com ([202.248.49.38]:26502 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726434AbhAXPK3 (ORCPT ); Sun, 24 Jan 2021 10:10:29 -0500 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 Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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