Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5685086pxj; Wed, 23 Jun 2021 06:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+bzcPvtdIsQ4gPRJjSa795iJZWMs7+nZfdQ9KbIXlQm9ZCM91Y89rE350K4SjgkeGq7Y0 X-Received: by 2002:a02:cf82:: with SMTP id w2mr9207203jar.3.1624456543021; Wed, 23 Jun 2021 06:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624456543; cv=none; d=google.com; s=arc-20160816; b=COps7yBN5iHRSBfMaEe6MZev9dPz09e/+3Cn1oNpiayaUqFoo/ajWRXsXNu5+wd24+ 9UQuGsMnu5sqQs08KSa0ce1BlBuTkgefTHHyAB+dORFcHhtpnE7NR9eOvSnvvZ4DXWJ9 sTCXLbE09Y2pbCGsLF4NaQmT850v3eCmK5Ju272IfVjU0MYgchFrJWB2RAm29p0CtKEz PS+vThPtaIq9BIrtn5f0zlw62TWDlvE7xIPyqt9EBiu+Qu274zotC/0+qcZStSqJmrXP sBUVCsYr+eTliyWzXYscXHKyPY8yEmz9kJsYgMNDoVcxjTKvdXowr2UIxSVR5zyykR7u jvJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xJccocnoRdorcslUAq9kb6AGcZBt5E/D2oTNxvA/DUE=; b=xpwYBA2UaCvdLsf4hIKWVtuwpliehhJJfTKf64Gw9K3BjP4KJBkXe//dMZtN60jEdS FSvaBeprVHva471RGds3/QJekgtheohesSA+ARQ0q8JKpxBMUNMarihb4PrejKBp7vgg /QqpKMCFT47QNcJRjtGn5q4zyUh2zMUyI+RV7gvybejVx8RivFcApglee8S0gxYc744a MIfgKJPo6pbHe7q0lMQmDvdxgrQxs/Io74UGrLqR95jwlGbbepzQB0YrdiciXWrSq1vw QrKBvAH8qkwAeqcUyEtahxjFZL9m79yiadSZqJdZ4Tks3PDAmRpP3+Ks2lXBbQiib0by u40Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si82008iom.40.2021.06.23.06.55.30; Wed, 23 Jun 2021 06:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231147AbhFWNzt (ORCPT + 99 others); Wed, 23 Jun 2021 09:55:49 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:42828 "EHLO mail-ej1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbhFWNzr (ORCPT ); Wed, 23 Jun 2021 09:55:47 -0400 Received: by mail-ej1-f51.google.com with SMTP id bg14so4131363ejb.9; Wed, 23 Jun 2021 06:53:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xJccocnoRdorcslUAq9kb6AGcZBt5E/D2oTNxvA/DUE=; b=QWirZGqOn4x5bjIFEBJdvTlZx1redvBJXVAjbgNzQBr+JAdIGGKIURHSZGZ/o+fVj6 hYNN9ctv8gbVTrDceCyuuZ6CFZftY2MdSJV1e+KzZZ1XshIa7xoyz4uQaiT6DeOGkuxi T1A91Pg5tFZvFn/iwziIe56+nigpM/6zW+Zn7eXVr1vtfjgGfwG76b7xHJwdBOBECHz7 jIE3yOhPlEtou9FoxU9NZ8x5QAXm/PzdfQ49f14KuEqJs+zErfYQCvq+tM1++oTG7C1o rvcpLRIuNveJumB43JR6uyVMc9U304B3+Fic+cAuY2jOWpXXsqpu/M7YaJcGnjTW+Pe2 WodA== X-Gm-Message-State: AOAM532zEkJ+HFYqSNB2Qyvd2SQ18kR4S+OUQM/1tNKfpjU3tp+geqjM 8ak8rNLe2O2spy3syBJEZRsAyMNpuRUbX15f8jE= X-Received: by 2002:a17:906:ce29:: with SMTP id sd9mr168698ejb.56.1624456408751; Wed, 23 Jun 2021 06:53:28 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id da28sm77961edb.0.2021.06.23.06.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 06:53:28 -0700 (PDT) Date: Wed, 23 Jun 2021 15:53:26 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, git@xilinx.com, bharat.kumar.gogada@xilinx.com, Hyun Kwon , Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Ravi Kiran Gummaluri , Rob Herring , Sasha Levin , linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2 2/2] PCI: xilinx-nwl: Enable the clock through CCF Message-ID: <20210623135326.GA54420@rocinante> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Sasha for visibility] Hi Michal, Thank you for sending v2 so promptly! And for all the extra changes and fixes. Much appreciated! > Enable PCIE reference clock. There is no remove function that's why > this should be enough for simple operation. > Normally this clock is enabled by default by firmware but there are > usecases where this clock should be enabled by driver itself. > It is also good that clock user is recorded in clock framework. Small nitpicks: it would be PCIe here in the above and in the error message (this is as per [1]), and "use cases" also in the above. This can be corrected when the patch will be merged by either Bjorn or Lorenzo, to avoid sending v3 unnecessarily, provided that they would have a moment to do it, of course. > Fixes: ab597d35ef11 ("PCI: xilinx-nwl: Add support for Xilinx NWL PCIe Host Controller") Thank you! Does it make sense for this change to be back-ported to stable and long-term kernels? I am asking to make sure we do the right thing here, as I can imagine that older kernels (primarily because some folks could use, for example, Ubuntu LTS releases for development) might often be used by people who work with the Xilinx FPGAs and such. [...] > + err = clk_prepare_enable(pcie->clk); > + if (err) { > + dev_err(dev, "can't enable pcie ref clock\n"); > + return err; > + } > + As per the nitpick above, it would be "PCIe", but probably no need to send v3 to correct this. 1. https://lore.kernel.org/linux-pci/20171026223701.GA25649@bhelgaas-glaptop.roam.corp.google.com/ Krzysztof