Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1042103lqp; Fri, 22 Mar 2024 04:03:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUS+zz3rjTPe/NaGYcIkJ3GUVRhpuF35kvhI6oHLn3ebp9Mkvyy0Me/qgty9ycXlvpoYFnjbMcJRWg033BqN+YwESVgd8NBuSPDc2tCMA== X-Google-Smtp-Source: AGHT+IGrDCpwAHFNLgAsCc/NbzVBdnkwwZvllJD1uANJWm9yDAvhI/IFRq/NgbDTa6vqw53lZQfZ X-Received: by 2002:a17:90b:1052:b0:29f:a779:1075 with SMTP id gq18-20020a17090b105200b0029fa7791075mr1965498pjb.37.1711105431002; Fri, 22 Mar 2024 04:03:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711105430; cv=pass; d=google.com; s=arc-20160816; b=KC8TEAj05+7SwatSWayohvg/M/XX81zb6uPBq+ltEUK53x9hAYSznrTAUTNfQh4Nhr 409HsOdvZnskWEkyHAG2wCfO4oxpRLOhE2+ntnmI0FGRkN3DtUuttd26rmvSDWYvXLnk 6NjWqGpXFUfqMY9KfTURY0t7iyqdPIvXzgO0hSU0ZFdVTZfUDWdnTSm+lfDEdZDDkepK M7ZY4eO9DAtCQ+muBjzv3hivvHyeDhkrVe6CdpdnLP1aLaB2vIf4phWHOg0DdtrcaBFJ gf6mMr+TZ/Pa9l2JDdYTGi0OHMaGO5HMVfcn3+3x0KE5sQSJnxdiUH/9aAqBn3uE9D1/ aUDA== 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:dkim-signature; bh=ABvQf6VgrAvl8i6BFymVD7mSi+UmquuWr7ArP+aj/YM=; fh=XkHq6sufsH3TObsvDFtbbMUFfmZcw+V2/ZGOtqSIh/c=; b=ENDHB6Yga/egpVMB30+hzZEhe9Bzn4fzj7ZjAqQSVaoWqJczfq9+S/9otvOa2iibbs MWJNvfBdosmb4lOdRPJquuZOog0VGPRbCOLKS0HHYRjR1alY30GVHiiOBO75aMFFkuJR 3yiN1h/uqddJ7HzlJZW31aD+zVpAdBs4JW5dtG0tO+8nSlHSEHybVrNAAj9sGTXOAoSd krvuR7R+ZELv5fUApao2eNuh5vMUMm5QvDp8e8hAN8knL0WKtLsdIrQQPLaGIibR5jkZ Liz/3YNfOg/jycbj5SckcVlRl1i4juqjzK6AwGoqxcRQDJP2C0Q3BlmfE7HzAD1t2BNH Y0UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kBBpFH4u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111346-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c3-20020a17090a8d0300b002a03ef63b5dsi653214pjo.150.2024.03.22.04.03.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 04:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111346-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kBBpFH4u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111346-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 2AC91283F77 for ; Fri, 22 Mar 2024 11:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B1703EA78; Fri, 22 Mar 2024 11:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kBBpFH4u" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CD5D2C18D; Fri, 22 Mar 2024 11:03:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711105398; cv=none; b=htFze8FEf2qUqJiR3lJVCAwGqeL8uKrdklnO9T5l3cXmwRL1LO0dAYKPnXsVH+5K8eTf2+odKIXG23Zvy2DFlbzbiW2hJPYx716uIr3RQIG6NDtxXb4EuD0dJZBQsNr15iDMLeFsSR5r9+npE37we8Dc2i0cJwyTKhXUe6NTHL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711105398; c=relaxed/simple; bh=j1bJ4w42kskV9ai5cekyhLUyNo8Ucw+qxC21MeUMMfw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R5sNsRwy4paBfhkwY919n118xOvwwwUyFw3ydvnjAqXqvks/Rb8J8+WZaEiFcCwv6qb5JzPi6MwbQPMStrc+7NJJwX+2HSl7be87Zzb5/tAzbadiOmxUp8H5pxURguFBoBeeELIDDmZjc2WpeiF18mSCjS0FLYqPYS0ArdGPj1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kBBpFH4u; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A044CC433C7; Fri, 22 Mar 2024 11:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711105398; bh=j1bJ4w42kskV9ai5cekyhLUyNo8Ucw+qxC21MeUMMfw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kBBpFH4ubCr9UE0s7VfPsPShqTptBKiky+oxr6MYRB3RFKivrooYY4krN96Ri7nb9 urD0mdBEEucPD6uvIlEXYT7FWNrZaA3LNKAVdfs49lmNXxyZjQdv5t4CGTSPRvj+x/ AxqJDnUkGVGUBzn20ssSWcezKA+RzCbvRjOpR5zFEi9ZFxC0/Jz5zD0QzRD6jjMnFa C3hwF8e5x+qwY8FuY/1g5hV0XF2NmlEy8H0/6VwdzxXTHAwMUu0XcsJ3R8Yjxe5uIl 3tKAR7pTiiHJnOnR8ruRAe3F67uoQtegz/o1LuZUo6PvinllofVh9ellJKuNY/K1Sr cLcRfzgBZNR3Q== Date: Fri, 22 Mar 2024 12:03:07 +0100 From: Niklas Cassel To: Manivannan Sadhasivam Cc: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Marek Vasut , Yoshihiro Shimoda , Thierry Reding , Jonathan Hunter , Kishon Vijay Abraham I , 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 , 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, linux-arm-kernel@axis.com Subject: Re: [PATCH v10 7/8] PCI: dwc: ep: Call dw_pcie_ep_init_registers() API directly from all glue drivers Message-ID: References: <20240314-pci-dbi-rework-v10-0-14a45c5a938e@linaro.org> <20240314-pci-dbi-rework-v10-7-14a45c5a938e@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: <20240314-pci-dbi-rework-v10-7-14a45c5a938e@linaro.org> On Thu, Mar 14, 2024 at 01:18:05PM +0530, Manivannan Sadhasivam wrote: > Currently, dw_pcie_ep_init_registers() API is directly called by the glue > drivers requiring active refclk from host. But for the other drivers, it is > getting called implicitly by dw_pcie_ep_init(). This is due to the fact > that this API initializes DWC EP specific registers and that requires an > active refclk (either from host or generated locally by endpoint itsef). > > But, this causes a discrepancy among the glue drivers. So to avoid this > confusion, let's call this API directly from all glue drivers irrespective > of refclk dependency. Only difference here is that the drivers requiring > refclk from host will call this API only after the refclk is received and > other drivers without refclk dependency will call this API right after > dw_pcie_ep_init(). > > With this change, the check for 'core_init_notifier' flag can now be > dropped from dw_pcie_ep_init() API. This will also allow us to remove the > 'core_init_notifier' flag completely in the later commits. > > Reviewed-by: Yoshihiro Shimoda > Signed-off-by: Manivannan Sadhasivam > --- Reviewed-by: Niklas Cassel