Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp200801lqt; Thu, 6 Jun 2024 00:27:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUU2Stm08HDVB5qaA/N4R/6ciMLa8V+wyr/9UIHIibcBi/vf4AQKkaX4IZhhHEkd+XkfIp+hSbnonTkQCLsDc5zzQHlmMDZycayFAdDXw== X-Google-Smtp-Source: AGHT+IEvCYqUMLgtCscGKNlFTani/zaVtbmxrnwe2fIK8kxyFQhfmMFMewl7wM7wwJHm92KRq6xM X-Received: by 2002:a05:6e02:154c:b0:374:9fd2:79a1 with SMTP id e9e14a558f8ab-374b1f65dfbmr48466185ab.28.1717658866002; Thu, 06 Jun 2024 00:27:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717658865; cv=pass; d=google.com; s=arc-20160816; b=bxl7tlTEmssH6toviYTb7XtIdKRLD0993zrDPXTQ1lyhJMns0Cjy2R+oG07OxtBBO2 zbqTaGIozg4lhYZ9obRIbERMzTTZOybLIW56QB/61y6omyHAY1pJVL5be+B4E0GWBsCm L634rkZ/qM1VGmdyQg4zGQB53O9LEWWuTKt09nWDRjnQpylAetCcBeddIIlcf59Dp4Vw RwqC6eq2pJwNixNKS+YoSpzL+HuvAjh5xoGNN1KE+VJhq0R3J9tz47B4XxLP+ETxKGqP VUrHbLKpcO55OFW4b3WDJPhcO2hHe7JwkDoMixLXQ/ZitTkmwPScir00TCQ8J2LhdOT5 wkAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=vATXyYpxDoxuMBWGCsFFKBvV2FwTY9tS2i2Q/lEI70Q=; fh=OToaSED2c7W1TmH2aQGnoF8Ti6df4vE2wXWS/8aYr+k=; b=WXTcRLVv99fe3uzlJLF6n7bP7wVMyvjKUOCC+bNseDCjSkN8SYYDxCyb14BdMJAbV1 gPGE/aX4DO0q0q08bbj7SCHA/rZ1TUlnZ8TstzD3iBUH4ZbUtfvFptr4/rLIyUoaxvCV j/OTelVU7KD7IRCvmQP16k8HJIr/WFsArd1Zoa4UPFOYOyWy2tS11HdE8dv2rvg7rOIm UbpoBUVYnOQ2tvjXWjxsscHEf/x9/UuUvNrLyyP1Orn3b5yommvbxwnfOvvPo63oBiBk WR9FbkoCzHW4l42zRjmSJKTv0SIiKEEtgCsN8ynVuOmex4qbrqeB7iGNSB+DtoAszsM8 9dqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IUotXnt3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-203729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de275fee10si684025a12.534.2024.06.06.00.27.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 00:27:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IUotXnt3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-203729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D02C52866E1 for ; Thu, 6 Jun 2024 07:27:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A114C13BC3D; Thu, 6 Jun 2024 07:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IUotXnt3" Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0699113AD15 for ; Thu, 6 Jun 2024 07:27:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717658832; cv=none; b=tNt7TZK1/YLYZ4x9FSLL4oInNuR6ReES1Pu1dm80ToOUn5XNHt5STBjlBVxvppxy8mRuQn+CnmpUhyFT88Kc3O4ut/Em6ifZ//i9Hx+ssDrDYdf7B+N9tAOFf1iBY6D4mUBxODdV++9YtNfX72XGQ1xyZYshD2/va8JR2a2OpnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717658832; c=relaxed/simple; bh=eTnUwNkDQXdrC7n1JvpcvTENi2pHuNndoBzQaRgPaoU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=H2rYgtS6lb5b7on+7SRnLRCg3xXkAf3VTJ+4qgNhwKy8BUfg29kuaH2mpJjV7s8Eft58RArO9B77Xqq9aCeH4L3Fs7GzRvQluy7qzjXYg5Z7EUhyIp+fWbUTB67O0AK5IaBrIM6DReqEzyOsj7IZTsvTqXrdTLPSOSS3jsdeo3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IUotXnt3; arc=none smtp.client-ip=209.85.215.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-6c4f3e0e407so472843a12.1 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=vger.kernel.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=IUotXnt3RvCUccEuthAMJH8Yt1+eJjUysxbCO4myWRjqJb8I/7NVLposA4wgdUj8LT T6B3KSkshdQPjruuPxq1AJGEUDFmO82pKuHxD6e7383ZbhQOOw1pfKCMrEymOaHoTVAa qHTiTZesFLRbrzI4OBCOHv5fY8RlUqg5dLBpR5NKLyyp/W9cF1d6a/caAdlDc98Rcp+4 uEHzpH58z96SSKDnJxP+jLvVqzHfNzUd9MMfgCWw3UvBust9Xwbx5W1avS7hcGXWhEUY zYiAzJcLdoI10+Ot37BnQ/ALUnOjSSi/I35JE5RVmqvrTDEprlYvKD9Obh/lfhT8KbJK 4VDg== 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=QmGcigRb2in8u+47du9UcbTvK8MmYsMmJWSggTIRcfIPSuYoybQRTjHnZrnGTpiyVH FB9aFXvARyNqv91SPKXwrZsgXS/Qmz+iUH0+nDrR0Q3C4JjHdn5j95+Y31qD8ZQXHDy0 XgYRtSvJVSzp48L7YBHYfD2IWpWJ5HYChT0VbVgJjnIvGy8MXAmAb7gk1m278CH/6Rwx AF4aZ/ETP+pHbJwfa27IRqI7kCQuvdNfShKLYjS6M4fkkTEmcRjdKA9ZpyEkNA0o/E1i TSKBF1mdi4qm6yPZe8WdF3wQ1FdI4+apyKsW5T9tJKj7YL2VAbeC0tdriNq9dWFwVHAQ tKRA== X-Forwarded-Encrypted: i=1; AJvYcCV2tx9HA4cCxFx52iqRVYXiVz1W8SOhM4Bz7cgspyDRgVpgZso6sA1JpbXfLgTjf/Y62XSI0kBxZQYy8wQTEbLosScb2bhonYCi7nsb X-Gm-Message-State: AOJu0YxYVqx1cn/Vjnyeq+aeJmchuDrvW/YQrXwtSORwKzVlf7YJcnS6 9QZDXRJpmtR0+OyCU0gpX1oILF7kZaq7T2sfKsmhyvZBWYtg4i5dEUhg3psyng== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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=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 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, -- Manivannan Sadhasivam