[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200708132947.6rsgsqychmtzvuhr@gilmour.lan>
Date: Wed, 8 Jul 2020 15:29:47 +0200
From: Maxime Ripard <maxime@...no.tech>
To: Ondrej Jirman <megous@...ous.com>
Cc: linux-sunxi@...glegroups.com,
Vasily Khoruzhick <anarsoul@...il.com>,
Yangtao Li <tiny.windzz@...il.com>,
Zhang Rui <rui.zhang@...el.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Amit Kucheria <amit.kucheria@...durent.com>,
Chen-Yu Tsai <wens@...e.org>,
"open list:ALLWINNER THERMAL DRIVER" <linux-pm@...r.kernel.org>,
"moderated list:ARM/Allwinner sunXi SoC support"
<linux-arm-kernel@...ts.infradead.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] thermal: sun8i: Be loud when probe fails
On Wed, Jul 08, 2020 at 12:55:27PM +0200, Ondrej 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;
I missed that in my first mail, but I'm not sure we want to print
anything on success. This doesn't bring any value and that will only
make it harder to find errors in other drivers.
Maxime
Powered by blists - more mailing lists