From: Jon Hunter <jonathanh@nvidia.com>
To: "Krzysztof Wilczyński" <kw@linux.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Bjorn Helgaas <bhelgaas@google.com>,
Thierry Reding <thierry.reding@gmail.com>,
Vidya Sagar <vidyas@nvidia.com>, <linux-pci@vger.kernel.org>,
<linux-tegra@vger.kernel.org>
Subject: Re: [PATCH] PCI: tegra: Fix building Tegra194 PCIe driver
Date: Wed, 19 May 2021 18:49:13 +0100 [thread overview]
Message-ID: <9eb01de8-1db7-7cab-d308-c19a3dc480ec@nvidia.com> (raw)
In-Reply-To: <20210519165703.GA589057@rocinante.localdomain>
Hi Krzysztof,
On 19/05/2021 17:57, Krzysztof Wilczyński wrote:
> Hi Jon,
>
>> Commit 7f100744749e ("PCI: tegra: Add Tegra194 MCFG quirks for ECAM
>> errata") caused a couple build regressions for the Tegra194 PCIe driver
>> which are:
>>
>> 1. The Tegra194 PCIe driver can no longer be built as a module. This
>> was caused by removing the Makefile entry to build the pcie-tegra.c
>> based upon the CONFIG_PCIE_TEGRA194 option. Therefore, restore this
>> so that we can build the driver as a module if ACPI support is not
>> enabled in the kernel.
>> 2. If CONFIG_PCIE_TEGRA194 is configured to build the driver as a
>> module, at the same time that CONFIG_ACPI and CONFIG_PCI_QUIRKS are
>> selected to build the driver into the kernel, then the necessary
>> functions in the driver to probe and remove the device when booting
>> with device-tree and not compiled into to the driver. This prevents
>> the PCIe devices being probed when booting with device-tree. Fix this
>> by using the IS_ENABLED() macro.
>
> Thank you for fixing this! Much appreciated.
>
> There are also few build time warnings related to these changes you
> mention above, as per:
>
> drivers/pci/controller/dwc/pcie-tegra194.c:259:18: warning: ‘event_cntr_data_offset’ defined but not used [-Wunused-const-variable=]
> drivers/pci/controller/dwc/pcie-tegra194.c:250:18: warning: ‘event_cntr_ctrl_offset’ defined but not used [-Wunused-const-variable=]
> drivers/pci/controller/dwc/pcie-tegra194.c:243:27: warning: ‘pcie_gen_freq’ defined but not used [-Wunused-const-variable=]
>
> We could bill two birds with one stone, so to speak, and move these
> variables into the block behind the CONFIG_PCIE_TEGRA194 and
> CONFIG_PCIEASPM guards respectively, so that these symbols are no longer
> unused.
Ah good to know. Yes I can incorporate into this change as well. Thanks
for letting me know.
> Also, since this change fixes and issue introduced in a different
> commit, then it would be prudent to add the "Fixes:" tag.
Yes it would. I had missed that, but will add.
Thanks!
Jon
--
nvpublic
prev parent reply other threads:[~2021-05-19 17:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 16:34 [PATCH] PCI: tegra: Fix building Tegra194 PCIe driver Jon Hunter
2021-05-19 16:57 ` Krzysztof Wilczyński
2021-05-19 17:49 ` Jon Hunter [this message]
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=9eb01de8-1db7-7cab-d308-c19a3dc480ec@nvidia.com \
--to=jonathanh@nvidia.com \
--cc=bhelgaas@google.com \
--cc=kw@linux.com \
--cc=linux-pci@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=thierry.reding@gmail.com \
--cc=vidyas@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.