From: Robin Murphy <robin.murphy@arm.com>
To: "Ondřej Jirman" <megous@megous.com>,
"Frank Lee" <tiny.windzz@gmail.com>,
linux-sunxi@googlegroups.com,
"Vasily Khoruzhick" <anarsoul@gmail.com>,
"Zhang Rui" <rui.zhang@intel.com>,
"Daniel Lezcano" <daniel.lezcano@linaro.org>,
"Amit Kucheria" <amit.kucheria@verdurent.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Chen-Yu Tsai" <wens@csie.org>,
"open list:ALLWINNER THERMAL DRIVER" <linux-pm@vger.kernel.org>,
"moderated list:ARM/Allwinner sunXi SoC support"
<linux-arm-kernel@lists.infradead.org>,
"open list" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] thermal: sun8i: Be loud when probe fails
Date: Wed, 8 Jul 2020 14:42:12 +0100 [thread overview]
Message-ID: <7f7843aa-def2-2bca-fbd4-ae20e4ebb020@arm.com> (raw)
In-Reply-To: <20200708132124.3b3iaavms43o622g@core.my.home>
On 2020-07-08 14:21, Ondřej Jirman wrote:
[...]
>>> @@ -523,10 +547,17 @@ static int sun8i_ths_probe(struct platform_device *pdev)
>>> ret = devm_request_threaded_irq(dev, irq, NULL,
>>> sun8i_irq_thread,
>>> IRQF_ONESHOT, "ths", tmdev);
>>> - if (ret)
>>> - return ret;
>>> + if (ret) {
>>> + dev_err(dev, "Failed to request irq (%d)\n", ret);
>>> + goto err_out;
>>> + }
>>>
>>> + dev_info(dev, "Thermal sensor ready!\n");
>>> return 0;
>>> +
>>> +err_out:
>>> + dev_err(dev, "Failed to probe thermal sensor (%d)\n", ret);
>>
>> When the driver fails, there will be this print. Isn't it superfluous
>> for you to add these?
>>
>> sun8i-thermal: probe of 5070400.thermal-sensor failed with error
>
> There's no such failure message in the case I investigated, which is
> EPROBE_DEFER failure waiting for nvmem driver that never loads,
> because it's not configured by the user to build.
Ah, in that case this was a bit misleading, since "probe failure" isn't
really the problem at all. As it happens, there's a whole other
discussion ongoing around making probe deferral issues easier to debug:
https://lore.kernel.org/linux-arm-kernel/20200626100103.18879-1-a.hajda@samsung.com/
Robin.
next prev parent reply other threads:[~2020-07-08 13:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 10:55 Ondrej Jirman
2020-07-08 11:03 ` Russell King - ARM Linux admin
2020-07-08 11:10 ` Ondřej Jirman
2020-07-20 7:55 ` Icenowy Zheng
2020-07-20 8:28 ` Russell King - ARM Linux admin
2020-07-08 11:55 ` Frank Lee
2020-07-08 13:21 ` Ondřej Jirman
2020-07-08 13:42 ` Robin Murphy [this message]
2020-07-08 13:33 ` Ondřej Jirman
2020-07-08 12:25 ` Maxime Ripard
2020-07-08 13:29 ` Ondřej Jirman
2020-07-08 13:36 ` Maxime Ripard
2020-07-08 13:44 ` Ondřej Jirman
2020-07-08 13:57 ` Maxime Ripard
2020-07-12 23:29 ` Ondřej Jirman
2020-07-23 15:20 ` Maxime Ripard
2020-07-08 13:29 ` Maxime Ripard
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=7f7843aa-def2-2bca-fbd4-ae20e4ebb020@arm.com \
--to=robin.murphy@arm.com \
--cc=amit.kucheria@verdurent.com \
--cc=anarsoul@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=megous@megous.com \
--cc=mripard@kernel.org \
--cc=rui.zhang@intel.com \
--cc=tiny.windzz@gmail.com \
--cc=wens@csie.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®