Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1286053ybi; Tue, 16 Jul 2019 12:30:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWJiNheHFsk9J6F2JIjVyaSrkslaII2kwE9KhCQ/+SP2HZFngl0FcUEXQByB6EsKM/MSTl X-Received: by 2002:a65:640d:: with SMTP id a13mr35814869pgv.256.1563305411838; Tue, 16 Jul 2019 12:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563305411; cv=none; d=google.com; s=arc-20160816; b=lJUmKF+T7xLFhtufb0l1gcREe9765JUgU6T37+ZWZzWMBZa0EyanvBWphDEqugJSTm EitQL1N1JqiNMOIOd85ocsTtQZlK69RZiYQ6LbAzi+fuyhH2gHytgw8WJupH7UNJuf6W aQ4UeyIaUaFbtrckIBPt4DMF3bOxoO/IPcIp28rtwkI3uuqkrzUSY3T+PIJ0qDsjhFGp aMPob52lj3LFN11SiRm37t1JFIJVm06pp4OjxgwvQv2RZdtXYFY+pvwEcBZUVtBM3YRG lbShiX09kVK8gTeTqoSaH3V5v6S3zydUa35LoAnf20l9olRzFZ8UjN7uWCowS5kAdIPv 2N5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=W/Xw3yutNvVECfEgrGC8arAdbDX+7NXs3Wu2tflpPPc=; b=jyYb1j571v05xSGwCsEHDLYjB01erFUk/2fuWA5FSrJDuWtjjralKmfbQZ8n58ZW3e m9XY4pF8QL/qr+712zv90FEFCtAB+i7pPlJsEA0zvnNwDx2Lfk9+yfykfiicaog7vdmM wJlLhXYXTOnOl+uWCCAevCF3xmhT9VKnUlQkvVbPTp0jFaYADVpjc8IPvgm2/Ca0lHXn EFquNQOiEr3ca9dL5sQKlqx21eiIDLbuvbYSmfmfZdGy+OK2FCfnx3WzIycoqLXpLWaU Z3jGw/sRMhVwoju+4FPfyzPa3UAlgS6plgdyziRlpdbKEMIDHL5lGdnhphffdz6zbCA1 0Uzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si17140047pgi.324.2019.07.16.12.29.55; Tue, 16 Jul 2019 12:30:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388521AbfGPT2I (ORCPT + 99 others); Tue, 16 Jul 2019 15:28:08 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47311 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbfGPT2I (ORCPT ); Tue, 16 Jul 2019 15:28:08 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7C66D80593; Tue, 16 Jul 2019 21:27:54 +0200 (CEST) Date: Tue, 16 Jul 2019 21:28:05 +0200 From: Pavel Machek To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, jacek.anaszewski@gmail.com, dmurphy@ti.com, linux-leds@vger.kernel.org Subject: Re: [PATCH 5/6] leds: apu: fix error on probing failure Message-ID: <20190716192805.GE10400@amd> References: <1563202653-20994-1-git-send-email-info@metux.net> <1563202653-20994-6-git-send-email-info@metux.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KuLpqunXa7jZSBt+" Content-Disposition: inline In-Reply-To: <1563202653-20994-6-git-send-email-info@metux.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KuLpqunXa7jZSBt+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2019-07-15 16:57:32, Enrico Weigelt, metux IT consult wrote: > From: Enrico Weigelt >=20 > The current error message on failed probing tends to be a bit > misleading. Fix it to tell exactly that an APU v1 was not found. >=20 > Signed-off-by: Enrico Weigelt > --- > drivers/leds/leds-apu.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) >=20 > diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c > index 451cb9f..892fea7 100644 > --- a/drivers/leds/leds-apu.c > +++ b/drivers/leds/leds-apu.c > @@ -170,13 +170,9 @@ static int __init apu_led_init(void) > struct platform_device *pdev; > int err; > =20 > - if (!dmi_match(DMI_SYS_VENDOR, "PC Engines")) { > - pr_err("No PC Engines board detected\n"); > - return -ENODEV; > - } > - if (!(dmi_match(DMI_PRODUCT_NAME, "APU"))) { > - pr_err("Unknown PC Engines board: %s\n", > - dmi_get_system_info(DMI_PRODUCT_NAME)); > + if (!(dmi_match(DMI_SYS_VENDOR, "PC Engines") && > + dmi_match(DMI_PRODUCT_NAME, "APU"))) { > + pr_err("No PC Engines APUv1 board detected\n"); You may want to add here: "For APUv2,3 support, enable CONFIG_xxx". If you have any APUv2 users (and you may), this si chance to get their attention. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --KuLpqunXa7jZSBt+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0uJUUACgkQMOfwapXb+vITAQCgpmLDfopl+tqzT8H7ZJndlrxD m54An1S+GSHoiMWyLP9MPPyxcJEVzmt2 =dx8m -----END PGP SIGNATURE----- --KuLpqunXa7jZSBt+--