Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp559942ybt; Wed, 8 Jul 2020 06:30:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztDg9nbdpP6mfASKXP3gwzJYexZVWY+j6RbTSsEatXH3Di/AdFKfFj2R87SsORzCBqkhi8 X-Received: by 2002:a17:906:cc0e:: with SMTP id ml14mr50512308ejb.432.1594215059472; Wed, 08 Jul 2020 06:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594215059; cv=none; d=google.com; s=arc-20160816; b=RVvWOi2yuBFV4JoYb37fgJAW+lbjeKze/qjNykNFnQ6dnMEyUU5Tqu6xHDAvPv2Iag WzT29PIbnf4+bK0dxNs84j80e7/aqDCGG4OYPCl0umMDeySwXHSWg3M6LMSQ7m1gs+pO jzzjFxDyhXTq5p49dveTb4UTV238MHJcrWGOtd7zdgv6ThIA3hDQJA/hIROvCXLpkKIX Jby5EVXQ+BV1luaatbIIP497kR2X7998pr6sZislStF8u1qaeOUBEEm+YEdSd9L1810X xMTHc2uE9BmYfAo9Jw+KOr5ulLDFnE1N1Gd0z14iRcwmBfzpqc473CD1gpsW4N0tOoYs 4ABA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=JgqM+l7NWg3T7iC7VFNhEk0S3/jtNUOXIDLh0bXRuPI=; b=c8kgIRRtbu8O6eP+z5EHJOeSSA9yEFbd5ChNhXpxkckjiWd3z/WzHXSWzNKOo9TeW1 /F9Ve4GXt5lFP+uItB/GD/sQ5SSz78nlEgIBkrsxr5JzzLRaOV8MBRvtGEb+Ou9j1/mT AUCaQzfHTgbHn9cT2+5uCq2SmG2M9vyzYX9Ysz+WZllJW/+6mgUBjfwnpO3kzRgvTuci ldGyb76+UX3A+WiZlMYHQwNc0CwVmYiSRKTx0yp3t1mQGe623JeeaUUzwKhkjCrwveGN /jvpDRdzJ4piLWc8fa3lZOunvm8l5fvQ4ZHOEeMOYjO0/5GUpRLhHRgwqW8P2wEHOuFP P6+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=kewKNCCY; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fOf9EPcx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t27si12133290eji.205.2020.07.08.06.30.36; Wed, 08 Jul 2020 06:30:59 -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; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=kewKNCCY; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fOf9EPcx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729461AbgGHN3w (ORCPT + 99 others); Wed, 8 Jul 2020 09:29:52 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:59809 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728148AbgGHN3w (ORCPT ); Wed, 8 Jul 2020 09:29:52 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 75059B4A; Wed, 8 Jul 2020 09:29:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 08 Jul 2020 09:29:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm3; bh=J gqM+l7NWg3T7iC7VFNhEk0S3/jtNUOXIDLh0bXRuPI=; b=kewKNCCYBt56UwdbX zn044rAYxmzBJCeLQQNYNx/m9SG5nut+WSWsNX5vxS8FTmHXC3SeY4ER3oj9d9h9 xe2O07Y5Wu7UDKJpEATK8NOUkxjXDjx7TpIwtlhnDVhgoZ4qUB+I9gnrtGECiYK5 bqWFvgVUYXW+G/+O+fbnE7BsUFDmfBXRZCm61cQh+fUmjXueVLS/J/73h7OueIDw wsid/eB3Q8o11vx6tcvAsiOHr1rV/CTlIXYzUM+ChdtyvsX1wqN1pRITjPDKRZkR uU+615lNx1XSRjxaLPjfra8VuSB7Fhe0DRi+6ecallrGWm2LIy2uCZvDVje360tB s/YPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=JgqM+l7NWg3T7iC7VFNhEk0S3/jtNUOXIDLh0bXRu PI=; b=fOf9EPcxN5J7ynthXkbJPdNJO/1BGgVihQjEkUiqzXckLxoaUEj5sDbVT /BNC1wdMsuj4lB4X/rBAbhWAg10DN5y6xyHpRAxYboL6LhZJj38KG0+CyVobLVKT nH6XnWQjQ4x/C04NHL/HF8PEr7XN9zzEnMMr2z5hmh85Up/EswW1V6iG0C9bKmF3 KyplaGdTlBbwFLsAKXgII4t2Ryll2RsNQ4p/tgvNAreohqZeQmukmsSt4zsAcTPV d+ciO/VxoMb9oVWbAlzoBAAMuf3GCSrgnGvuwz4YVRjm8lAq7gS2vY0gD8cDqPkA 5asGg7vcEt4Xy7un0vr/l2ueER5uw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudejgdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjsehtqhertddttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepgfejtedtjefggfffvdetuedthedtheegheeuteekfeeghfdtteejkeeludeg vddunecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id F3E61328006A; Wed, 8 Jul 2020 09:29:48 -0400 (EDT) Date: Wed, 8 Jul 2020 15:29:47 +0200 From: Maxime Ripard To: Ondrej Jirman Cc: linux-sunxi@googlegroups.com, Vasily Khoruzhick , Yangtao Li , Zhang Rui , Daniel Lezcano , Amit Kucheria , Chen-Yu Tsai , "open list:ALLWINNER THERMAL DRIVER" , "moderated list:ARM/Allwinner sunXi SoC support" , open list Subject: Re: [PATCH] thermal: sun8i: Be loud when probe fails Message-ID: <20200708132947.6rsgsqychmtzvuhr@gilmour.lan> References: <20200708105527.868987-1-megous@megous.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200708105527.868987-1-megous@megous.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 =3D 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; > + } > =20 > + 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