From: Maxim Kochetkov <fido_max@inbox.ru>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>, barebox@lists.infradead.org
Cc: pmamonov@gmail.com, a.kuyan@yadro.com, p.mamonov@yadro.com,
Maxim Kochetkov <m.kochetkov@yadro.com>
Subject: Re: [PATCH 1/1] serial: ns16550: move iomem/ioport init after clock init
Date: Fri, 17 Feb 2023 17:03:08 +0300 [thread overview]
Message-ID: <07d4762e-ba94-0f43-febd-a35d1c130aaa@inbox.ru> (raw)
In-Reply-To: <4073a83d-e7b8-0965-b44b-ad1005b800c7@pengutronix.de>
On 17.02.2023 12:02, Ahmad Fatoum wrote:
> Hello Maxim,
>
> On 17.02.23 08:31, Maxim Kochetkov wrote:
>> - ret = ns16550_init_iomem(dev, priv);
>> - if (ret)
>> - ret = ns16550_init_ioport(dev, priv);
>> -
>> if (ret)
>> return ret;
>
> ret is now uninitialized here.
>
>>
>> @@ -511,6 +507,10 @@ static int ns16550_probe(struct device *dev)
>> goto err;
>> }
>>
>> + ret = ns16550_init_iomem(dev, priv);
>> + if (ret)
>> + ret = ns16550_init_ioport(dev, priv);
>
> second ret is never checked.
Sorry about that. I will fix it in v2.
>
> If you move the second if (ret), patch looks ok to me.
> jfyi, If you enable deep probe for your board/platform, clk_get()
> would automatically probe the clock driver if unavailable, so you
> shouldn't ever see -EPROBE_DEFER.
I tried deep probe and it works fine without any -EPROBE_DEFER. Thanks a
lot for the tip!
next prev parent reply other threads:[~2023-02-17 14:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-17 7:31 Maxim Kochetkov
2023-02-17 9:02 ` Ahmad Fatoum
2023-02-17 14:03 ` Maxim Kochetkov [this message]
2023-02-17 14:10 ` Ahmad Fatoum
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=07d4762e-ba94-0f43-febd-a35d1c130aaa@inbox.ru \
--to=fido_max@inbox.ru \
--cc=a.fatoum@pengutronix.de \
--cc=a.kuyan@yadro.com \
--cc=barebox@lists.infradead.org \
--cc=m.kochetkov@yadro.com \
--cc=p.mamonov@yadro.com \
--cc=pmamonov@gmail.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