Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1477761rwa; Sun, 21 Aug 2022 09:13:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR5VgvelpfRgas8KDjaHfX38/7kRnKfvStwnP+jB7iVTn5tI8PgEVkmTgtuXUgzFS8cEJFTG X-Received: by 2002:a05:6402:3550:b0:43d:e475:7d2f with SMTP id f16-20020a056402355000b0043de4757d2fmr13056726edd.166.1661098409419; Sun, 21 Aug 2022 09:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661098409; cv=none; d=google.com; s=arc-20160816; b=qUhffxLM2WkMumEZl3youVizlx2loaig8qJhocNdtv4QVYCwj/c+bF9FwbbH2ugpRG lohV9NKBFpkM0YlawPS46YLhSfbuXGJoHHt2XY7KH5eV1B/3eAEP70DFDdaWqtNoCkMi KcLKF4F1km2xkwMcTfP70JH3X2UVQDLJX5xgeTGYJUl/g7lrndoxlxvYYg9TTZOdc4/i BZXLuHQEwRo+zl6VKHCqa+Epi6OKPEX6FCVB3dy+212ywmjtMJ5mj5k2tjIiuxQodWY7 5XqcpghgAt4LBT3r+4OBH9/w6uKh4ei6k4cNjg+lx5u5rB8wMElyQdviklTHqzOtRF52 QoYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5BKZ25CZFIw5qWIQvl4P8ku2VZlfQ/5y57WWwjA6sZw=; b=Uwgib5ONWwlLlq8yOua67DNBnIlWSsFhUobpBl20/hnRGDkdOdYyfPYzFBLHMfJa9L f4vAgTOJGAOghFAaUaiY61oPi64CNaOW++F8Arep0yz1tJHnFoguQn1Xn4DKgNgTfirL BQiS/Yz1VxyzrhvZBPdQAHeuATneon9LFV/XAJ5xfnMwv6/j5NFrSSH9X6efTyTTgfDp 4j2a0/QG5E8RQh9DnoUzgl/8505KKA/dw4nJbJhBry4jikU2D4wwxRdOZvrWEtxGtS3m bn8jaQlzVyIr9t4/3r9X1eOUL5jFqZGgFCLYVyur5Z1zFNE7bn1Djo9XmIsHSuA1ENwp VKBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Sk/lPly6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a056402328e00b0044683b49cfasi3142745eda.242.2022.08.21.09.13.03; Sun, 21 Aug 2022 09:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Sk/lPly6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231549AbiHUPqU (ORCPT + 99 others); Sun, 21 Aug 2022 11:46:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbiHUPqQ (ORCPT ); Sun, 21 Aug 2022 11:46:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DBD81DA67; Sun, 21 Aug 2022 08:46:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ECAD8B80923; Sun, 21 Aug 2022 15:46:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B632C433C1; Sun, 21 Aug 2022 15:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661096773; bh=8z0FUf5EZEBYCtClKGnP2GetQ1AGqbtC2TykMCaCWY0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sk/lPly6AJBSjFq3aL/eNUJv7wYlQIdrBMASFzb9M4dURbbkL/Banh67WbHoEj7c1 fca1WPkl0jOC20WPDkLefz2XJqyx9tmluq5pFPn3gDQqxbSP5O2ouxQrJTP7HBs10B /FjQw/4NtsAzZ4UbitzH3m8Bb24UvnRyVSxtBj45Adk8QY0j3MByBayAle8LkwZbcL pqjlOV/p2IewkziPftq1cfeX0z5hGOEevcttmp+jr7L3EfRuNLa2eNGlkyJLhACu9j xpVTjg9BpWNCDmqEToZrt8FcMilDQTRbJQGU55B6XyTEANs/+qSQzHN6kruJnh2C1m hd0FcTTYroQ2Q== Received: by pali.im (Postfix) id 86CAA828; Sun, 21 Aug 2022 17:46:10 +0200 (CEST) Date: Sun, 21 Aug 2022 17:46:10 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Armin Wolf Cc: jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] hwmon: (dell-smm) Improve warning messages Message-ID: <20220821154610.e2fokkqzytoqm2ba@pali> References: <20220821151713.11198-1-W_Armin@gmx.de> <20220821151713.11198-4-W_Armin@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220821151713.11198-4-W_Armin@gmx.de> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 21 August 2022 17:17:13 Armin Wolf wrote: > When dell-smm-hwmon is loaded on a machine with a buggy BIOS > with the option "force" being enabled, it wrongly prints > what the buggy features where disabled. This may cause > users to wrongly assume that the driver still protects them > from these BIOS bugs even with "force" being enabled. > Change the warning message to avoid such a misunderstanding. Should not there be also FW_BUG too? I'm thinking more about message, would not it be better to print also information if fan support and fan type call is allowed or disallowed (based on force argument) when broken BIOS is detected? > Tested on a Dell Inspiron 3505. > > Signed-off-by: Armin Wolf > --- > drivers/hwmon/dell-smm-hwmon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c > index f7bab1a91b93..bf13852afe48 100644 > --- a/drivers/hwmon/dell-smm-hwmon.c > +++ b/drivers/hwmon/dell-smm-hwmon.c > @@ -1354,13 +1354,13 @@ static int __init dell_smm_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, data); > > if (dmi_check_system(i8k_blacklist_fan_support_dmi_table)) { > - dev_warn(&pdev->dev, "broken Dell BIOS detected, disallow fan support\n"); > + dev_warn(&pdev->dev, "BIOS has broken fan support\n"); > if (!force) > data->disallow_fan_support = true; > } > > if (dmi_check_system(i8k_blacklist_fan_type_dmi_table)) { > - dev_warn(&pdev->dev, "broken Dell BIOS detected, disallow fan type call\n"); > + dev_warn(&pdev->dev, "BIOS has broken fan type call\n"); > if (!force) > data->disallow_fan_type_call = true; > } > -- > 2.30.2 >