From: Kartik <kkartik@nvidia.com>
To: <andriy.shevchenko@linux.intel.com>
Cc: <arnd@arndb.de>, <digetx@gmail.com>, <frank.li@vivo.com>,
<jonathanh@nvidia.com>, <kkartik@nvidia.com>,
<linux-kernel@vger.kernel.org>, <linux-tegra@vger.kernel.org>,
<pdeschrijver@nvidia.com>, <petlozup@nvidia.com>,
<pshete@nvidia.com>, <robh@kernel.org>, <stefank@nvidia.com>,
<sumitg@nvidia.com>, <thierry.reding@gmail.com>, <windhl@126.com>
Subject: Re: [PATCH v3 5/6] soc/tegra: fuse: Add ACPI support for Tegra194 and Tegra234
Date: Wed, 11 Oct 2023 15:08:32 +0530 [thread overview]
Message-ID: <20231011093832.8095-1-kkartik@nvidia.com> (raw)
In-Reply-To: <ZP7wDm5w/b5RIlIq@smile.fi.intel.com>
On Mon, 2023-09-11 at 10:46, Andy Shevchenko wrote:
>On Thu, Sep 07, 2023 at 12:40:51PM +0530, Kartik wrote:
>> Add ACPI support for Tegra194 & Tegra243 SoC's. This requires
>> following modifications to the probe when ACPI boot is used:
>> - Initialize soc data.
>> - Add nvmem lookups.
>> - Register soc device.
>> - use devm_clk_get_optional() instead of devm_clk_get() to get
>> fuse->clk, as fuse clocks are not required when using ACPI boot.
>>
>> Also, drop '__init' keyword for tegra_soc_device_register() as this is also
>> used by tegra_fuse_probe() and use dev_err_probe() wherever applicable.
>
>...
>
>> +static const struct acpi_device_id tegra_fuse_acpi_match[] = {
>> + { "NVDA200F" },
>> + { /* sentinel */ }
>> +};
>
>Where is NODULE_DEVICE_TABLE() for it? And why it's located here and not
>at the its first user's location?
Fixed this in v4.
>
>...
>
>> + if (is_acpi_node(pdev->dev.fwnode) && !fuse->soc) {
>
>We do not dereference fwnode in struct device, use dev_fwnode() for that.
>
>...
>
Fixed this in v4.
>> + return dev_err_probe(&pdev->dev, PTR_ERR(fuse->clk), "failed to get FUSE clock\n");
>
>> + return dev_err_probe(&pdev->dev, PTR_ERR(fuse->rst), "failed to get FUSE reset");
>
>This requires a separate patch.
>
Pushed a separate patch in v4 of this series.
>...
>
>> + /*
>> + * Wait for fuse->clk to be initialized if device-tree boot is used.
>> + */
>
>> + if (is_of_node(fuse->dev->fwnode) && !fuse->clk)
>
>dev_fwnode()
>
>The second check is questionable. If you get it NULL, it won't ever appear.
>Did I miss anything?
>
If tegra_fuse_readl is called before Tegra fuse driver is probed, then
fuse->clk will NULL. Hence, this is required here.
>> + return -EPROBE_DEFER;
>
>--
>With Best Regards,
>Andy Shevchenko
Regards,
Kartik
next prev parent reply other threads:[~2023-10-11 11:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-07 7:10 [PATCH v3 0/6] soc/tegra: fuse: Add ACPI support Kartik
2023-09-07 7:10 ` [PATCH v3 1/6] soc/tegra: fuse: Refactor resource mapping Kartik
2023-09-07 14:25 ` Andy Shevchenko
2023-09-07 7:10 ` [PATCH v3 2/6] soc/tegra: fuse: Add tegra_acpi_init_apbmisc() Kartik
2023-09-07 7:10 ` [PATCH v3 3/6] soc/tegra: fuse: Add function to add lookups Kartik
2023-09-07 14:35 ` Andy Shevchenko
2023-10-11 9:37 ` Kartik
2023-09-07 7:10 ` [PATCH v3 4/6] soc/tegra: fuse: Add function to print SKU info Kartik
2023-09-07 7:10 ` [PATCH v3 5/6] soc/tegra: fuse: Add ACPI support for Tegra194 and Tegra234 Kartik
2023-09-11 10:46 ` Andy Shevchenko
2023-10-11 9:38 ` Kartik [this message]
2023-09-07 7:10 ` [PATCH v3 6/6] soc/tegra: fuse: Add support for Tegra241 Kartik
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=20231011093832.8095-1-kkartik@nvidia.com \
--to=kkartik@nvidia.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=digetx@gmail.com \
--cc=frank.li@vivo.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=pdeschrijver@nvidia.com \
--cc=petlozup@nvidia.com \
--cc=pshete@nvidia.com \
--cc=robh@kernel.org \
--cc=stefank@nvidia.com \
--cc=sumitg@nvidia.com \
--cc=thierry.reding@gmail.com \
--cc=windhl@126.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