From: Andrew Murray <andrew.murray@arm.com>
To: Dilip Kota <eswara.kota@linux.intel.com>
Cc: linux-pci@vger.kernel.org, lorenzo.pieralisi@arm.com,
helgaas@kernel.org, linux-kernel@vger.kernel.org,
andriy.shevchenko@intel.com, cheol.yong.kim@intel.com,
chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com
Subject: Re: [PATCH 1/1] PCI: dwc: intel: fix nitpicks
Date: Fri, 13 Dec 2019 10:36:03 +0000 [thread overview]
Message-ID: <20191213103602.GL24359@e119886-lin.cambridge.arm.com> (raw)
In-Reply-To: <457c714ba7a73075291778b3436fd96feca7c532.1576144419.git.eswara.kota@linux.intel.com>
On Fri, Dec 13, 2019 at 01:19:43PM +0800, Dilip Kota wrote:
> Fix the minor nits pointed in review of
> Intel PCIe driver and PCIe DesignWare core.
> No functional change expected.
>
> Signed-off-by: Dilip Kota <eswara.kota@linux.intel.com>
> ---
> drivers/pci/controller/dwc/pcie-designware.c | 3 +--
> drivers/pci/controller/dwc/pcie-intel-gw.c | 30 ++++++++++++++--------------
> 2 files changed, 16 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
> index 479e250695a0..681548c88282 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.c
> +++ b/drivers/pci/controller/dwc/pcie-designware.c
> @@ -12,10 +12,9 @@
> #include <linux/of.h>
> #include <linux/types.h>
>
> +#include "../../pci.h"
> #include "pcie-designware.h"
>
> -extern const unsigned char pcie_link_speed[];
> -
> /*
> * These interfaces resemble the pci_find_*capability() interfaces, but these
> * are for configuring host controllers, which are bridges *to* PCI devices but
> diff --git a/drivers/pci/controller/dwc/pcie-intel-gw.c b/drivers/pci/controller/dwc/pcie-intel-gw.c
> index 8eada8f027bb..fc2a12212dec 100644
> --- a/drivers/pci/controller/dwc/pcie-intel-gw.c
> +++ b/drivers/pci/controller/dwc/pcie-intel-gw.c
> @@ -57,9 +57,9 @@
> #define RESET_INTERVAL_MS 100
>
> struct intel_pcie_soc {
> - unsigned int pcie_ver;
> - unsigned int pcie_atu_offset;
> - u32 num_viewport;
> + unsigned int pcie_ver;
> + unsigned int pcie_atu_offset;
> + u32 num_viewport;
> };
>
> struct intel_pcie_port {
> @@ -192,7 +192,7 @@ static int intel_pcie_ep_rst_init(struct intel_pcie_port *lpp)
> if (IS_ERR(lpp->reset_gpio)) {
> ret = PTR_ERR(lpp->reset_gpio);
> if (ret != -EPROBE_DEFER)
> - dev_err(dev, "failed to request PCIe GPIO: %d\n", ret);
> + dev_err(dev, "Failed to request PCIe GPIO: %d\n", ret);
> return ret;
> }
>
> @@ -265,7 +265,7 @@ static int intel_pcie_get_resources(struct platform_device *pdev)
> if (IS_ERR(lpp->core_clk)) {
> ret = PTR_ERR(lpp->core_clk);
> if (ret != -EPROBE_DEFER)
> - dev_err(dev, "failed to get clks: %d\n", ret);
> + dev_err(dev, "Failed to get clks: %d\n", ret);
> return ret;
> }
>
> @@ -273,13 +273,13 @@ static int intel_pcie_get_resources(struct platform_device *pdev)
> if (IS_ERR(lpp->core_rst)) {
> ret = PTR_ERR(lpp->core_rst);
> if (ret != -EPROBE_DEFER)
> - dev_err(dev, "failed to get resets: %d\n", ret);
> + dev_err(dev, "Failed to get resets: %d\n", ret);
> return ret;
> }
>
> ret = device_property_match_string(dev, "device_type", "pci");
> if (ret) {
> - dev_err(dev, "failed to find pci device type: %d\n", ret);
> + dev_err(dev, "Failed to find pci device type: %d\n", ret);
> return ret;
> }
>
> @@ -300,7 +300,7 @@ static int intel_pcie_get_resources(struct platform_device *pdev)
> if (IS_ERR(lpp->phy)) {
> ret = PTR_ERR(lpp->phy);
> if (ret != -EPROBE_DEFER)
> - dev_err(dev, "couldn't get pcie-phy: %d\n", ret);
> + dev_err(dev, "Couldn't get pcie-phy: %d\n", ret);
> return ret;
> }
>
> @@ -445,9 +445,11 @@ static int intel_pcie_rc_init(struct pcie_port *pp)
> return intel_pcie_host_setup(lpp);
> }
>
> -int intel_pcie_msi_init(struct pcie_port *pp)
> +/*
> + * Dummy function so that DW core doesn't configure MSI
> + */
> +static int intel_pcie_msi_init(struct pcie_port *pp)
> {
> - /* PCIe MSI/MSIx is handled by MSI in x86 processor */
> return 0;
> }
>
> @@ -508,19 +510,17 @@ static int intel_pcie_probe(struct platform_device *pdev)
>
> ret = dw_pcie_host_init(pp);
> if (ret) {
> - dev_err(dev, "cannot initialize host\n");
> + dev_err(dev, "Cannot initialize host\n");
> return ret;
> }
>
> /*
> * Intel PCIe doesn't configure IO region, so set viewport
> - * to not to perform IO region access.
> + * to not perform IO region access.
> */
> pci->num_viewport = data->num_viewport;
>
> - dev_info(dev, "Intel PCIe Root Complex Port init done\n");
> -
> - return ret;
> + return 0;
> }
I'll ask Lorenzo to squash this in when he returns.
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Thanks,
Andrew Murray
>
> static const struct dev_pm_ops intel_pcie_pm_ops = {
> --
> 2.11.0
>
next prev parent reply other threads:[~2019-12-13 10:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-13 5:19 Dilip Kota
2019-12-13 10:36 ` Andrew Murray [this message]
2020-01-09 12:06 ` Lorenzo Pieralisi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191213103602.GL24359@e119886-lin.cambridge.arm.com \
--to=andrew.murray@arm.com \
--cc=andriy.shevchenko@intel.com \
--cc=cheol.yong.kim@intel.com \
--cc=chuanhua.lei@linux.intel.com \
--cc=eswara.kota@linux.intel.com \
--cc=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=qi-ming.wu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®