Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp572264ybt; Wed, 8 Jul 2020 06:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOsjKPsuW0Px36QciHC6v29aOjfydZf+5Gq/PYdWh9bLQBnIHVcbYAgFsbWRb96U24vuof X-Received: by 2002:a17:906:b2c8:: with SMTP id cf8mr51860068ejb.132.1594216021752; Wed, 08 Jul 2020 06:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594216021; cv=none; d=google.com; s=arc-20160816; b=hmCfeWcSz4oG445VXdTeIyh63J6w78iBjOvJDP2naPPwiMjcQKOotdljYDah3jnD2c Q15PTUvZQKBD2XyVPYHJfyTwwwA/dGSnXkn3seLbnWYqTesrhi4EYULN6A4Dl4BMPjM3 fhOvA2B/qLsxA5QEZzmM0DwrlUFC38t3n0zpw6kX4DCwK7kKbTgRs/EMuxQT7IjCDYwB t38G6TAp/+KJOGYTSUbpbvkIEAYcfAntDr/vV395/I9Er1QGZfIm4X4qs+9xa3QRh1FK tFalozqUXv/QN2gvwvSq/2CA/2EN5bJHSRm+NDqAIAAUi1ZgtMMXZW4uVb/pJgiLSLgb 21rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=vux0PUQExz6vvelmewIwZrNVMVhSpT/q5+vKnuikHRQ=; b=cfy70jX668bsh5WwcKc5osy91mE6hQFyeCyS12QdD/GgUQEDV+Mlu6Q4bmDpzVjeCa w50Oe/5kX2IoUHTHKLUJvV6/MuLzlr4Xf/XMDP8KIai4FUc7l+C8DhSFdpWZwAluhJFC lwKHlvHrLYWJy22vzGM9Dw0pTOLbg7g0ure1AoBGElW1RPQGL/4ITR4lP//uxtcgqRC5 61NpJTKikjAUks3reeVHP333qlQEmIwFHZb6qKcq8Pq9AS37jdPv8VhkFTc9PrGIjS5+ Wc9xA/u8pu+Vz4Si7Ggf+/uJgFhOY4Y7HvqE1U9j/o2V3hIkjBr+WplRS8xE4Ddq9w2Z OUFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id br6si16187923ejb.203.2020.07.08.06.46.38; Wed, 08 Jul 2020 06:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729636AbgGHNmW (ORCPT + 99 others); Wed, 8 Jul 2020 09:42:22 -0400 Received: from foss.arm.com ([217.140.110.172]:41246 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729450AbgGHNmR (ORCPT ); Wed, 8 Jul 2020 09:42:17 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 564B01FB; Wed, 8 Jul 2020 06:42:16 -0700 (PDT) Received: from [10.57.21.32] (unknown [10.57.21.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 65CF03F237; Wed, 8 Jul 2020 06:42:14 -0700 (PDT) Subject: Re: [PATCH] thermal: sun8i: Be loud when probe fails To: =?UTF-8?Q?Ond=c5=99ej_Jirman?= , Frank Lee , linux-sunxi@googlegroups.com, Vasily Khoruzhick , Zhang Rui , Daniel Lezcano , Amit Kucheria , Maxime Ripard , Chen-Yu Tsai , "open list:ALLWINNER THERMAL DRIVER" , "moderated list:ARM/Allwinner sunXi SoC support" , open list References: <20200708105527.868987-1-megous@megous.com> <20200708132124.3b3iaavms43o622g@core.my.home> From: Robin Murphy Message-ID: <7f7843aa-def2-2bca-fbd4-ae20e4ebb020@arm.com> Date: Wed, 8 Jul 2020 14:42:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200708132124.3b3iaavms43o622g@core.my.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.