Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2081348lqt; Mon, 22 Apr 2024 00:13:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/nM5XfXl0/zc8Dp2x9AhLpJB7tLF6s1z4GemeA3HXCk17AIwEadZayJgXvoGztoawewjNgDLmnCUZYzP50KkPdEEmSGL4/NZDnIjkBQ== X-Google-Smtp-Source: AGHT+IFi69bLpTYQ1rt63R8P/mcn/3SqcRNd9Wmzp9JI0LEF7ZImSHe0daCX2pUq1r82PNSiytrT X-Received: by 2002:a19:e005:0:b0:515:c9a5:6abe with SMTP id x5-20020a19e005000000b00515c9a56abemr5020341lfg.40.1713770009388; Mon, 22 Apr 2024 00:13:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713770009; cv=pass; d=google.com; s=arc-20160816; b=rm4VxPEpoc4RSqBSJN62R4rD3rnp23pDwKaH/b7eMcVZ7qaT9bFhTNKqkYCQCAXVAj AYeuP5LeUWdV8oIr7bO7aLxjQShwx+Q2Ks6tfThyFYj1qfiY2qB5BO+dUpbiFEB51kBF 7Tse2RuR0h6r9f3IwgKKtZ0JunCZOGBHQbi7muOsy0BLJCRDrfh++mbbg69SBEMvrmnl Qv91QsPngV1P9TEPR4/bveX9VzQLZLXL3kU/DHuGGGu3klr1/W2xC6hQpOFUJFWEzv+I RnZSGKYU+840JmWfJ74jf+TIE749JzL2ubju18tJQRnA/bi/vZ7KOFKn9+4RVap2LbmZ cf7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4Cg+LkkJAMIn0twUnN3DDfZ/IhwvjeNrn5o075GoKwo=; fh=UQ4ETNM7pfMfhpCOx+ksay/jumBjRGpC7FEWnhTK1ak=; b=ZxUi4LBI4GfXTDCLUwWsempJmJH8TvZFa32LRIcOs7pX48WlvlCCXeuyRlVYcNSS+l d7FanaG/wVPU0ZQGWO0oxCxkMGEGb7PiDF6fnJhnVzEvmtoWazgV6WtppeCCjGvwKjPb XN13FuShPrGrdsApVC9afjRMZvOhkSf2QZP6yxihMt4NWnB5Ar5N2+oLyszMB+rdmE0z NCXOTlNQq3T0abP2LH8mf9mnHdmt3uSxsKSxu3AO5IdYNqyDaCv7Qec6ZEvq5DcsjsAi XNHcOIy/IA+hJpBotpod8DjA8QwyhvVkGdZ2WkHPald4theAPx0zCsgdm/WU79KG4d2h /fsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iGojFyue; 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-152837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hg24-20020a170906f35800b00a51c9692fc1si5737313ejb.474.2024.04.22.00.13.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iGojFyue; 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-152837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152837-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E8D061F220A3 for ; Mon, 22 Apr 2024 07:13:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01E904F602; Mon, 22 Apr 2024 07:12:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iGojFyue" Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) (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 E95AF4E1D9 for ; Mon, 22 Apr 2024 07:12:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769927; cv=none; b=HuQ7ISYRFhqOnsQyzjJBLtGbMNUO5XRvtmSOV+dqf+S7atubTFHGeZmq/CjgBB03Zmm9oFu6Zg1tTmNeAEL7icpv0DRTZngqj42NQJFbI2NzFrxmQRw3mX1aQrJGp2FhJj+HjiL99zqCzC1mycV+bNWJD66PNjvikDt1W0CTcVI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769927; c=relaxed/simple; bh=uPH6Y67fwbijcJ63Bx9ZgEyKOxdB9i7MlDXsKbFIr70=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OLnjxHb0QeftwxFZhhcD5Gx5ABAtLr0pFu6xcISRpjWYk3wZzAr8coaEtP5/nITC5lNfeUSiUaEmOIi8yfssv7sMbfONbjE2R2NqT86Fv5/xxZlpepTL/cBkOXyozBQUDKEPOzUxn/+7pRKuyR5kvz2yGW7R/62LxTxw4WQ1yWM= 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=iGojFyue; arc=none smtp.client-ip=209.85.160.51 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-oa1-f51.google.com with SMTP id 586e51a60fabf-22efc6b8dc5so2549354fac.0 for ; Mon, 22 Apr 2024 00:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713769924; x=1714374724; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=4Cg+LkkJAMIn0twUnN3DDfZ/IhwvjeNrn5o075GoKwo=; b=iGojFyueUeaKUwnFwkF3iz+55T6H2EJ1Zq3N967psrLO+xUoi3J769DSbN+8siT2eM qr18WcnOnqmdUUfx4yvh8hW6fLjKmoyO/RiosIkQsdGTDa2Di1rtah+Yjwzq7zUDdeVF fN/49XzJzr3co0eLp+l52s3Y+0I4rq8ckqNSFOn7M8M2+Ad/ImWnOUowGoLzLeRdrhV9 siu+HDe+lpEonH+j0chy8zhREYqHZbHLSMBBoCvW6RZeQGg2zpdJX0YjXlUkxTQVUdAI U/OjTtXyk12zR7j50H2NnKWw/nK8mdH7b5dVyy4A1b7iM2YTMCaBgKzDZFEb5/nG6dA1 kuWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713769924; x=1714374724; h=in-reply-to:content-transfer-encoding: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=4Cg+LkkJAMIn0twUnN3DDfZ/IhwvjeNrn5o075GoKwo=; b=L1ANxbnssJSWkvnfbx4XL4JqEuFLBZBPUJDy1Q4Z1CG6HwuO5z/xxk+Q+CylFw+T8W REl5k0AuwKnVaEFbqJhEE9FxmHOD4q6e7A585yOdffYO0xZJQecy1vAd/ATYoB9vvCb5 9JTCL9Ur6uDTiIBDqk328IhYBlA9rkSexoCxBFfFDCLP0tS58ZVnQlkmmPifJBSl5TKQ 1PfDB6v4tubzB0LHkeBTRZv4X3ix6coiRwBKPSTEupbRqfAgc7uKZd+4lqYlfz9Bvqwm 4UHLpB9Xq/frxbPnmo4yfdlGYAT7H8x6iSANbl43gczx1B9pvEzGOQPlQeph+Y0MG3OX i+Ew== X-Forwarded-Encrypted: i=1; AJvYcCVkN/UsECBn5LIG6ZZrLAlgqiJdQYmnHpgcnGDsf3WvCiwoEDj8JTyH+9QKsv3M9TvOPZYEEFyESQsY1YlWpCcCPg5yZGHc5z/7w9WT X-Gm-Message-State: AOJu0Yw1l5zdkzwd8NRg7snG6e9joasvo9t2XeH6NIJyZG1XLva3ONr6 WoFDPRRfGJwljVUNpPfFI7dPzPDs+mJVSuNOmYG7aS6Vt8FPGaUQ6eN1Z0KpVw== X-Received: by 2002:a05:6870:82a6:b0:22a:4c05:2efd with SMTP id q38-20020a05687082a600b0022a4c052efdmr11720065oae.10.1713769923903; Mon, 22 Apr 2024 00:12:03 -0700 (PDT) Received: from thinkpad ([120.60.70.118]) by smtp.gmail.com with ESMTPSA id fe8-20020a056a002f0800b006ed00ea504asm7189292pfb.159.2024.04.22.00.11.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:12:03 -0700 (PDT) Date: Mon, 22 Apr 2024 12:41:56 +0530 From: Manivannan Sadhasivam To: mr.nuke.me@gmail.com Cc: Dmitry Baryshkov , Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v3 4/7] PCI: qcom: Add support for IPQ9574 Message-ID: <20240422071156.GB9522@thinkpad> References: <20240415182052.374494-1-mr.nuke.me@gmail.com> <20240415182052.374494-5-mr.nuke.me@gmail.com> <3cfc26e6-5587-d4a2-f217-1a30169ad1a0@gmail.com> <20240417070616.GB3894@thinkpad> <102f209c-3367-86ac-c583-73103d5510a9@gmail.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <102f209c-3367-86ac-c583-73103d5510a9@gmail.com> On Fri, Apr 19, 2024 at 02:44:36PM -0500, mr.nuke.me@gmail.com wrote: > Hi Mani. > > On 4/17/24 02:06, Manivannan Sadhasivam wrote: > > On Mon, Apr 15, 2024 at 03:07:02PM -0500, mr.nuke.me@gmail.com wrote: > > > > > > > > > On 4/15/24 15:04, Dmitry Baryshkov wrote: > > > > On Mon, 15 Apr 2024 at 21:22, Alexandru Gagniuc wrote: > > > > > > > > > > Add support for the PCIe on IPQ9574. The main difference from ipq6018 > > > > > is that the "iface" clock is not necessarry. Add a special case in > > > > > qcom_pcie_get_resources_2_9_0() to handle this. > > > > > > > > > > Signed-off-by: Alexandru Gagniuc > > > > > --- > > > > > drivers/pci/controller/dwc/pcie-qcom.c | 13 +++++++++---- > > > > > 1 file changed, 9 insertions(+), 4 deletions(-) > > > > > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > > > > > index 14772edcf0d3..10560d6d6336 100644 > > > > > --- a/drivers/pci/controller/dwc/pcie-qcom.c > > > > > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > > > > > @@ -1101,15 +1101,19 @@ static int qcom_pcie_get_resources_2_9_0(struct qcom_pcie *pcie) > > > > > struct qcom_pcie_resources_2_9_0 *res = &pcie->res.v2_9_0; > > > > > struct dw_pcie *pci = pcie->pci; > > > > > struct device *dev = pci->dev; > > > > > - int ret; > > > > > + int ret, num_clks = ARRAY_SIZE(res->clks) - 1; > > > > > > > > > > - res->clks[0].id = "iface"; > > > > > + res->clks[0].id = "rchng"; > > > > > res->clks[1].id = "axi_m"; > > > > > res->clks[2].id = "axi_s"; > > > > > res->clks[3].id = "axi_bridge"; > > > > > - res->clks[4].id = "rchng"; > > > > > > > > > > - ret = devm_clk_bulk_get(dev, ARRAY_SIZE(res->clks), res->clks); > > > > > + if (!of_device_is_compatible(dev->of_node, "qcom,pcie-ipq9574")) { > > > > > + res->clks[4].id = "iface"; > > > > > + num_clks++; > > > > > + } > > > > > + > > > > > + ret = devm_clk_bulk_get(dev, num_clks, res->clks); > > > > > > > > Just use devm_clk_bulk_get_optional() here. > > > > > > Thank you! I wasn't sure if this was the correct solution here. I will get > > > this updated in v4. > > > > > > > Please rebase on top of [1] and mention the dependency in cover letter. > > I am very hesitant to depend on another patch series. Is it okay if I > include your patch in v4 of this series? > Feel free to. - Mani -- மணிவண்ணன் சதாசிவம்