From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Robin Murphy <robin.murphy@arm.com>,
Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>
Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND 2/3] iommu: omap: Simplify returning syscon PTR_ERR
Date: Fri, 14 Feb 2025 08:27:34 +0100 [thread overview]
Message-ID: <81b449b3-32fe-4f7c-bcb7-8c0f080ff667@linaro.org> (raw)
In-Reply-To: <dd1b7ca0-ef9f-4b9d-bca1-8a72c22231bb@arm.com>
On 13/02/2025 12:30, Robin Murphy wrote:
> On 2025-02-12 8:19 pm, Krzysztof Kozlowski wrote:
>> No need to store PTR_ERR into temporary, local 'ret' variable.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>> drivers/iommu/omap-iommu.c | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
>> index 04a7deaaba25cb270eb6eeaf6a21030440f78a5e..bce27805805010ae473aa8dbd9e0cb903dd79bba 100644
>> --- a/drivers/iommu/omap-iommu.c
>> +++ b/drivers/iommu/omap-iommu.c
>> @@ -1123,7 +1123,6 @@ static int omap_iommu_dra7_get_dsp_system_cfg(struct platform_device *pdev,
>> struct omap_iommu *obj)
>> {
>> struct device_node *np = pdev->dev.of_node;
>> - int ret;
>>
>> if (!of_device_is_compatible(np, "ti,dra7-dsp-iommu"))
>> return 0;
>> @@ -1132,8 +1131,7 @@ static int omap_iommu_dra7_get_dsp_system_cfg(struct platform_device *pdev,
>> syscon_regmap_lookup_by_phandle(np, "ti,syscon-mmuconfig");
>> if (IS_ERR(obj->syscfg)) {
>> /* can fail with -EPROBE_DEFER */
>
> This comment is no longer correct or useful, since it's alluding to the
> check which you removed in the previous patch. I'd just clean up the
I wouldn't call it useful ever, but I assume someone wants to note for
themself how syscon lookup works...
> whole lot in patch #1 as it's all closely related, and also turn this
> return into a dev_err_probe() to capture the spirit of the other errors
> being replaced, perhaps something like "No valid ti,syscon-mmuconfig
> available" - that way it adds some value for debugging probe deferral
> issues more than broken DTs.
Ack
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-02-14 7:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 20:19 [PATCH RESEND 0/3] iommu: omap: Simplify few things Krzysztof Kozlowski
2025-02-12 20:19 ` [PATCH RESEND 1/3] iommu: omap: Drop redundant check if ti,syscon-mmuconfig exists Krzysztof Kozlowski
2025-02-12 20:19 ` [PATCH RESEND 2/3] iommu: omap: Simplify returning syscon PTR_ERR Krzysztof Kozlowski
2025-02-13 11:30 ` Robin Murphy
2025-02-14 7:27 ` Krzysztof Kozlowski [this message]
2025-02-12 20:19 ` [PATCH RESEND 3/3] iommu: omap: Use syscon_regmap_lookup_by_phandle_args Krzysztof Kozlowski
2025-02-13 11:40 ` Robin Murphy
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=81b449b3-32fe-4f7c-bcb7-8c0f080ff667@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
/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®