Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1083365lqo; Fri, 17 May 2024 10:06:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSgZPPeI1icyfImYk68DhbkZY0cXpMfOF+tgjBYSCb2NsHM1io45VjKJrqfWX7MVWs2CISUMJ4b/0XmH89wv2f97oFNEdBXmELIM9mlw== X-Google-Smtp-Source: AGHT+IFdnsEe7eiqPIU+ip8reBEwYlpv2mUWOZRK4SQm0nQHC4S8aRk2p8Gpo0crJ9rHFy/aK788 X-Received: by 2002:a05:6a20:9717:b0:1ae:381d:4200 with SMTP id adf61e73a8af0-1afde1242bbmr20178619637.35.1715965564368; Fri, 17 May 2024 10:06:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715965564; cv=pass; d=google.com; s=arc-20160816; b=YjTokiaPpHKCYf/0FxE5QiuZKLb4DOwEqGPH49Has0WAAypxOzWlqloKWvbwaQesId Q3DuA4OCcuTJusxdxvqxiWK16/ZoQTXsNTTYB/yglrTyVmsO/VL9SHhN4NhF5R3y7Hvy 5/4uU1XLO91xZXnKWkXxaZaA5kP9Dn5Ic+o5dlrxptkxX4Niorlh1RUdtQ2xBrvp/fEB oz7k1241z1+CdlFegdbPyEIIMR2TKBYOil9BjYyqLa+N4t+rp3z1i54cv92oqJh+T5pS FvrzqdEEdPuZGdcBnsYYbhTVj4mirPHiIHmAnTGKJwgOfYU3KxXWcmsQbWztN+u+pbR5 c7nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=ZAF2nClB9tdRe2nZvO7iQeg/IDzJ4PErDPhyqSEtfbs=; fh=M0aZwfwp/WLtLlxCormBUVYFS4d6nc+196eZ+eszTuE=; b=MJmp1iWOvuxIOjaAKTdbUAxfPrGPG1M+GEc0IZlWSiD/YOPG6jge5VTuNneOvBjRok R24D5ZIstLNF9Z4SxlYunj/3ULNWzhHTqG8/eiEaHzkh8h5D094EdLKqjEOC2AhTHchC VfmFqtpgyG2gsYHxIO23JhuPk3A+7qpMWE3gNJ1mWAyiGJTTzNo7KEzoXfKQI3Oo9v+E tT0bWaDqwZXRv3YK+buUXzTAMsEbWm3macG5bSigyyppfR/yh1N2slbriLewbHTFoYy7 tnYi4d8nC0Ir6i6lIbuiInueUWeQ4b1i+VNOqsilqWiB4YYqxnkJEDif1A++N56yObZh Coqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-65a05b3e881si3666023a12.397.2024.05.17.10.06.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0635FB22A12 for ; Fri, 17 May 2024 17:05:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52ECF13DBA5; Fri, 17 May 2024 17:05:04 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 4FA6312F5A3; Fri, 17 May 2024 17:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715965503; cv=none; b=aun2bsP7wLeprPcirlVtLEvTxyhFvhxwZrPrfwd09AykzSyuBV79AgcxD4WLH5zl9pn356sFpRJgUvk/IiJzx2ZVCb2tiJuFrxnoPofPkllGg+mLScsErwWqu+a6bCsTNg1k6p9qokvYHYn7J182sBcLAyisk8qtnHVvgpPaMb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715965503; c=relaxed/simple; bh=2saU97BMp6H+PskEfO8ECL2dYQUoDkmrv2Pt6mDwnvE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TuL1glGh52t1JnTkqK/TtuiT3wJ5Ak+9yZ832QxBhPwTrMD9QutHfUl9zeXvtPDGFw0M0y/qC4cNIQpLzS+8qVxNaNyXz7Cu2LLYcJzKudHu24iiej4PEMItsaCYEqF1BY54oZlGK3tKLyav+MIsFWdD+gyEDelp847K0xb4z5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6f43ee95078so1207177b3a.1; Fri, 17 May 2024 10:05:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715965501; x=1716570301; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZAF2nClB9tdRe2nZvO7iQeg/IDzJ4PErDPhyqSEtfbs=; b=DSJxJQebzWu5xSgI6UnReibZT/cbSLtcO7vjcMtmv6SAYggz7hUGggTuwrrLQQzP3C tedQf9tOtSJKALUj+oIFuR6IbZvWtiqM0H1IsDe1qTxQtEXiv/bw5FY+91rkb/Crij+m C63833qMtVdnRiCo1zXYZNncW04Q6pnz97C2x8Sn4xZWz4XKA3V/ZpDtCLEonmrQU52C HK+CfXMzujTv4NSymJ4ceXCCZzGyCc+qC+hmcEdTG8fawG3N9PSEnO6FUoV6e2TDQxWq hMDlGWBUL+9ijCpaKpwMQb09MPhMov8yod1ZUGGQP5LzGxkB0vqT58fbOZPp+uIfGMPO 50kw== X-Forwarded-Encrypted: i=1; AJvYcCWwnI9FrHb9P2V1Tt/Mlo+skvseXbrUYIWFwcT4Ai1ofbdFT0iQdfp44mL0kucH4d9X8e7AMGyV2FWm/bCgnAqQgycl3+VRXthgYZAEiWIGbf9I77V5pmtgKO16NgLCiUZtWlitQFdBvMsyqzW76u69rTEL+t3WSv9N1vSGW+7bpXNfpnIR8GRIoN6bpSYpfhkxgjD8LhCXE/pkQQiQNe5xyrkW14oTjBBlak02CK0WD99yZp0Eqlbok2ZJxGEIKjNN+yXYGn6cTO018iRepc+zLJ0l/KHJSFKEoNvKh1aL4jDl X-Gm-Message-State: AOJu0YwDLnAW0dRTbZfHhstbo3bIqRm7W/7scm02X1604Jqb7vLmpbgn 9Yqo786Hzg0niJ36B98IjvJxEVQAZWXzECkMLvPfkdT+n5pWpjak X-Received: by 2002:a05:6a00:238b:b0:6ea:afdb:6d03 with SMTP id d2e1a72fcca58-6f4e02d3ef9mr24111615b3a.19.1715965501417; Fri, 17 May 2024 10:05:01 -0700 (PDT) Received: from localhost (fpd11144dd.ap.nuro.jp. [209.17.68.221]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f68c7d3651sm1904783b3a.183.2024.05.17.10.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:04:59 -0700 (PDT) Date: Sat, 18 May 2024 02:04:58 +0900 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Manivannan Sadhasivam Cc: Jingoo Han , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Marek Vasut , Yoshihiro Shimoda , Thierry Reding , Jonathan Hunter , Vidya Sagar , Vignesh Raghavendra , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Minghuan Lian , Mingkai Hu , Roy Zang , Kunihiko Hayashi , Masami Hiramatsu , Kishon Vijay Abraham I , Jesper Nilsson , Srikanth Thokala , Shawn Lin , Heiko Stuebner , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Niklas Cassel , linux-arm-kernel@axis.com, linux-rockchip@lists.infradead.org, Frank Li Subject: Re: [PATCH v12 0/8] PCI: dwc: ep: Fix DBI access failure for drivers requiring refclk from host Message-ID: <20240517170458.GA1947919@rocinante> References: <20240327-pci-dbi-rework-v12-0-082625472414@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=us-ascii Content-Disposition: inline In-Reply-To: <20240327-pci-dbi-rework-v12-0-082625472414@linaro.org> Hello, > This series is the continuation of previous work by Vidya Sagar [1] to fix the > issues related to accessing DBI register space before completing the core > initialization in some EP platforms like Tegra194/234 and Qcom EP. > > Since Vidya is busy, I took over the series based on his consent (off-list > discussion). > > NOTE > ==== > > Based on the comments received in v7 [2], I've heavily modified the series > to fix several other issues reported by Bjorn and Niklas. One noticeable > change is getting rid of the 'core_init_notifer' flag added to differentiate > between glue drivers requiring refclk from host and drivers getting refclk > locally. > > By getting rid of this flag, now both the DWC EP driver and the EPF drivers > can use a single flow and need not distinguish between the glue drivers. > > We can also get rid of the 'link_up_notifier' flag in the future by following > the same convention. > > Testing > ======= > > I've tested the series on Qcom SM8450 based dev board that depends on refclk > from host with EPF_MHI driver. It'd be good to test this series on platforms > that generate refclk locally and also with EPF_TEST driver. Applied to controller/dwc, thank you! [01/08] PCI: dwc: ep: Fix DBI access failure for drivers requiring refclk from host https://git.kernel.org/pci/pci/c/869bc5253406 [02/08] PCI: dwc: ep: Add Kernel-doc comments for APIs https://git.kernel.org/pci/pci/c/7cbebc86c72a [03/08] PCI: dwc: ep: Remove deinit() callback from struct dw_pcie_ep_ops https://git.kernel.org/pci/pci/c/b7dec6b85089 [04/08] PCI: dwc: ep: Rename dw_pcie_ep_exit() to dw_pcie_ep_deinit() https://git.kernel.org/pci/pci/c/c8682a3314c1 [05/08] PCI: dwc: ep: Introduce dw_pcie_ep_cleanup() API for drivers supporting PERST# https://git.kernel.org/pci/pci/c/570d7715eed8 [06/08] PCI: dwc: ep: Rename dw_pcie_ep_init_complete() to dw_pcie_ep_init_registers() https://git.kernel.org/pci/pci/c/7d6e64c443ea [07/08] PCI: dwc: ep: Call dw_pcie_ep_init_registers() API directly from all glue drivers https://git.kernel.org/pci/pci/c/df69e17ccc2f [08/08] PCI: endpoint: Remove "core_init_notifier" flag https://git.kernel.org/pci/pci/c/a01e7214bef9 Krzysztof