From patchwork Thu Jun 6 07:26:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 13687923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D460C25B75 for ; Thu, 6 Jun 2024 07:27:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject: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=K6e0leEz/ZKwYzn4kNbK24wlbmAz4+WhVFJODX0jtO8=; b=t9vZjhg4ZTp6Cz lcNyGXbbhvv21xbpvP4t5arLrLo1Iraj/iVU7unpBG+WKgKaWYZ9xmSSVCTVA6IoaVBBXOwCRUKmQ oEG6t9zHmWnr1ZkHPaEne6dMVKhdsto444SPJY6Mxx0ngEUM7JtktFGJ7cgFusQ25LAhiBYA/ODmo ZiYd1su/4yvZNDl+huR1E96bn+Gxe11C2AxlyfMUF7Ywvsy+mLzQ8iXtBw5Fc3Vxl0ehN23MNyxzV wHk71+hP9wKT5o66kiPXYHLl6s+UEXrlWOKrD65lwlpbf+5bonz2r1llHvow6ICeq2NyaO1k2C837 UojI6+tpoCBAbNnPgI2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sF7Wo-00000008f72-3rO4; Thu, 06 Jun 2024 07:27:18 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sF7Wl-00000008f6O-03xU for linux-arm-kernel@lists.infradead.org; Thu, 06 Jun 2024 07:27:16 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-6bce380eb96so438875a12.0 for ; Thu, 06 Jun 2024 00:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717658830; x=1718263630; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=vATXyYpxDoxuMBWGCsFFKBvV2FwTY9tS2i2Q/lEI70Q=; b=CT0PQtG4ELbjHLM0/8EpmfLGbmeORWXTENS3OftXUyofL7Bx6I0ZRa47lkRbH4xIR2 VZaYnNNNokxbZSZ7hUG+rToNLCuF2F8yivye0APXgDLeEK+ZwkRxtfFQWO5b2aH4dFP2 BsCkE/OE+q31Ih0orCPob//obvWaSE9zf9b2GYHMWysl13atrrtLsF6zmXx5OSzaWkas +iJkhPXKDmlf+nNh5Kg8B0wk6E0uGZ+WluL6I4rmMbAl3XTGxyvK8Wnv25kWsx+S7rLu cTlkK9o8qbWy/3y+lFIiM05orul9jBhExhHH7f+tbM21bpzI5tmRZy+mzj1ZxjPl0b9x UKiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717658830; x=1718263630; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vATXyYpxDoxuMBWGCsFFKBvV2FwTY9tS2i2Q/lEI70Q=; b=UBIZFb3bnz6GuP/xzWRgCDnuNfrVW2k7y3ohtnLD3S8SA+Uoxt+1u3YZr0+LZj0t94 6w663l+YJbNhxOEDoVNsDEhWGGCjPpT0HEws9nrKVaxdar8sXg9Y+pHO1jZw1ydzDpHc QBKrQAupcAVVy4ITVlfNgLC3ZnD30eCYpChdVTaQaB3vARPJZ4KuSXfXTBJ8/I2hecFk S5sV02VMV+7vuOAMbLdoqZPFYaQkHJyc/5sgS9g7yiBcBY0KMOeMINuGK0Yg6ibdV8eR PydNnSZd8DgyddQeNBsRJPauV/hlJfoZsVGFNeSEPn55yN19c1/SIpdk/CDTshrWC1oO XUIg== X-Forwarded-Encrypted: i=1; AJvYcCXd4TwZ37YEhaTNKOULQQ2jKIM++j8dpVrAgjEh9+oCDU118dkSoEmw3kTOif6d+v2swb7NK9phODhjfcJBcazUSls04nw0yDrhLcT3mvxxRANE8NE= X-Gm-Message-State: AOJu0YxSuh/SRVfSpM2kicOcQP+NLimxZitoqy5segufCCmwwJwq5yHF g1MuV99P4eh2VYl/jmxSYhKau3ynzTUDmbdKLPDLktfD+e6HJscb25I9pdLLVA== X-Google-Smtp-Source: AGHT+IHaMKRV/ZyBSrUsIgLazsPnTH6mNPZ8ByD6J5KfGegSjHhh2dqKlKHNCqkvzSpa+cIabaAPcw== X-Received: by 2002:a05:6a20:da9f:b0:1b0:278e:34a6 with SMTP id adf61e73a8af0-1b2b70fe1f0mr6173863637.49.1717658830110; Thu, 06 Jun 2024 00:27:10 -0700 (PDT) Received: from [127.0.1.1] ([120.60.142.92]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-703fd494feasm566621b3a.100.2024.06.06.00.26.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 00:27:09 -0700 (PDT) From: Manivannan Sadhasivam Subject: [PATCH 0/5] PCI: endpoint: Add EPC 'deinit' event and dw_pcie_ep_linkdown() API Date: Thu, 06 Jun 2024 12:56:33 +0530 Message-Id: <20240606-pci-deinit-v1-0-4395534520dc@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKlkYWYC/x3MQQqAIBBA0avIrBNUYqCuEi3KGWs2JhoRiHdPW r7F/xUKZ+ECs6qQ+ZEiV+ywgwJ/bvFgLdQNzrjRoEGdvGhiiXJrx+gp2J1wCtCDlDnI+8+WtbU PTiaPVVwAAAA= To: Vignesh Raghavendra , Siddharth Vadapalli , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Rob Herring , Bjorn Helgaas , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Minghuan Lian , Mingkai Hu , Roy Zang , Jesper Nilsson , Jingoo Han , Srikanth Thokala , Marek Vasut , Yoshihiro Shimoda , Thierry Reding , Jonathan Hunter , Kunihiko Hayashi , Masami Hiramatsu , Kishon Vijay Abraham I Cc: linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@axis.com, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org, mhi@lists.linux.dev, Niklas Cassel , Manivannan Sadhasivam , Bjorn Helgaas X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2731; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=eTnUwNkDQXdrC7n1JvpcvTENi2pHuNndoBzQaRgPaoU=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBmYWTBvvClBeGF7FTQylWzbsg9oVTTskz2EOoBn Zt4GVpYgeSJATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZmFkwQAKCRBVnxHm/pHO 9dwUB/4/uHuy0pOtmq60P1UyLiR+MH2npT+bFuWCf8fMwExCiwaeJHYifh0b18wJgThFXn7F4Lo iuzlAa23KRnrAiq/e0hvZmPmnM30g6EXNbW7THksJEFxLdnoSpeyIWg7uIsVak75r1nSfHIKqNj sSx1fUpQvxDgWYY+56ZvpDp7KZ40y4MG8iSOv2wVwPGgxgpugNKqY2ogX1366QUpjBOM1clCvwA tuS3Xry4kqdFn3bu9TsWOL4HoG/3r+VB7RwuZoMAOe7z17rawzf4OiRQF/WwQO6VgQomU+JUIBG hI3tDABYUW5C9SooxoFvxoHMbJIwb5/mXxW8M6dlQzXxeJpS X-Developer-Key: i=manivannan.sadhasivam@linaro.org; a=openpgp; fpr=C668AEC3C3188E4C611465E7488550E901166008 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240606_002715_107693_11204CE2 X-CRM114-Status: GOOD ( 14.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series includes patches that were left over from previous series [1] for making the host reboot handling robust in endpoint framework. When the above mentioned series got merged to pci/endpoint, we got a bug report from LKP bot [2] and due to that the offending patches were dropped. This series addressed the issue reported by the bot by adding the stub APIs in include/pci/pci-epc.h and also removed the unused dwc wrapper as concluded in [3]. Testing ======= This series is tested on Qcom SM8450 based development board with 2 SM8450 SoCs connected over PCIe. - Mani [1] https://lore.kernel.org/linux-pci/20240430-pci-epf-rework-v4-0-22832d0d456f@linaro.org/ [2] https://lore.kernel.org/linux-pci/202405130815.BwBrIepL-lkp@intel.com/ [3] https://lore.kernel.org/linux-pci/20240529141614.GA3293@thinkpad/ Signed-off-by: Manivannan Sadhasivam --- Manivannan Sadhasivam (5): PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper PCI: endpoint: Introduce 'epc_deinit' event and notify the EPF drivers PCI: dwc: ep: Add a generic dw_pcie_ep_linkdown() API to handle Link Down event PCI: qcom-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event PCI: layerscape-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- drivers/pci/controller/dwc/pci-imx6.c | 2 +- drivers/pci/controller/dwc/pci-keystone.c | 2 +- drivers/pci/controller/dwc/pci-layerscape-ep.c | 4 +- drivers/pci/controller/dwc/pcie-artpec6.c | 2 +- drivers/pci/controller/dwc/pcie-designware-ep.c | 116 +++++++++++++--------- drivers/pci/controller/dwc/pcie-designware-plat.c | 2 +- drivers/pci/controller/dwc/pcie-designware.h | 10 +- drivers/pci/controller/dwc/pcie-keembay.c | 2 +- drivers/pci/controller/dwc/pcie-qcom-ep.c | 5 +- drivers/pci/controller/dwc/pcie-rcar-gen4.c | 2 +- drivers/pci/controller/dwc/pcie-tegra194.c | 3 +- drivers/pci/controller/dwc/pcie-uniphier-ep.c | 2 +- drivers/pci/endpoint/functions/pci-epf-mhi.c | 19 ++++ drivers/pci/endpoint/functions/pci-epf-test.c | 17 +++- drivers/pci/endpoint/pci-epc-core.c | 25 +++++ include/linux/pci-epc.h | 13 +++ include/linux/pci-epf.h | 2 + 18 files changed, 162 insertions(+), 68 deletions(-) --- base-commit: 7d96527bc16e46545739c6fe0ab6e4c915e9910e change-id: 20240606-pci-deinit-2e6cdf1bd69f Best regards,