Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4227859ybb; Tue, 7 Apr 2020 03:23:27 -0700 (PDT) X-Google-Smtp-Source: APiQypKg4ZFNS7kMPtI8E2XTV/7ZaI7cCaFyI2VRnQv9xp8fqDFu692Kknqm+/KzIaFA3EJILmfG X-Received: by 2002:aca:dbd6:: with SMTP id s205mr907693oig.109.1586255007199; Tue, 07 Apr 2020 03:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586255007; cv=none; d=google.com; s=arc-20160816; b=JU86iAx/wAv9jLpKyDC7jxAUinjVrAtJIXiUDGDFQvpncX72/sxCnfMlMuN19QjKiX Ham2ydHYaXnfaVl8ygRt2yinlEymVuSQwZWBB983zAgpQtwQAvwGbap7t/f5NUcQWVpz Od9eygvAJw21EOEBw72lSyPSP+Q39eB30bLcQhRch10rCS5+G8A3OHMzf6HNcSNsLiKT 2PZLsmZVAFRb3KFU2/jrC4yvNkBSWy6NzocbhnR/pPHdmftOmYA2755CSp/gyNGXwAou nrijwEgfUZArmZiZeKwTysSPSuBkM4bOvIgm8gONYImbw10rbJVOHa3Anw2GiWYO255u HEbA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=utfsS9M3Kp0537NEBsGq/GpINIkvX5vstKjVloLSaBE=; b=r9WhvzmxMX3DHtKz6Oqc2P+tDv/+s92RSkffVfKDttu19p7W0UXSYWo2T8keRynoIw qmt/2cphSy7kfdeT6SlfdwLkMbht5KJpQAKI/HznpAIOrEihr6c0AIrqrGJznbEGg065 jgqmMYLooRKBIdIXys4M79FR5DJ4JPZltsPAohtz+vEYLgfnbQ0tX0EuOEh0f8RymvgV v7OjZwxfGe/AYYkUvEkYzUkXI4/1KYz5GbXjsbnggaDa2f3pqSNaLZduzJ43tHbwNy9d D/VWyHDTkH5sDW0Nar0i06yu/wrQNKAHa/zDPlywto5FPCWdJ6laaF8unS7IUw350Ph+ RP9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sgYqeamJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si499025oih.275.2020.04.07.03.23.14; Tue, 07 Apr 2020 03:23:27 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sgYqeamJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728209AbgDGKWm (ORCPT + 99 others); Tue, 7 Apr 2020 06:22:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:60204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbgDGKWl (ORCPT ); Tue, 7 Apr 2020 06:22:41 -0400 Received: from pali.im (pali.im [31.31.79.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4281720771; Tue, 7 Apr 2020 10:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586254960; bh=juQKuUZDgyyxGgsF7uNhckuR4k0PFa3vOdCv8igXe0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sgYqeamJWAiaBCp2NFSD03QPo70At2AUr/IUVrprBg+Ml5NDCfoPAKTNJYYXNX6an vAQ7e3e2LWUeFyKv98p4GoBGzkyh2TeRFOvdvOm18bZZP3vlg38k0CTydolrBFmEWu 29LGMbGbHOxwLRXzrU3Ok29lE8bw89yC7XaBAWNk= Received: by pali.im (Postfix) id 418C85F1; Tue, 7 Apr 2020 12:22:38 +0200 (CEST) Date: Tue, 7 Apr 2020 12:22:38 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Thomas Hebb Cc: linux-kernel@vger.kernel.org, Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org Subject: Re: [PATCH v2] hwmon: (dell-smm) Use one DMI match for all XPS models Message-ID: <20200407102238.zweh7s7t6rn5cwhf@pali> References: <5d7e498b83e89ce7c41a449b61919c65d0770b73.1586033337.git.tommyhebb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5d7e498b83e89ce7c41a449b61919c65d0770b73.1586033337.git.tommyhebb@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Saturday 04 April 2020 16:49:00 Thomas Hebb wrote: > Currently, each new XPS has to be added manually for module autoloading > to work. Since fan multiplier autodetection should work fine on all XPS > models, just match them all with one block like is done for Precision > and Studio. It makes sense. We already load driver for all Inspirion, Latitude, Precision, Vostro and Studio models so I do not see reason why not to load it also for all XPS models. I doubt that Dell uses one base firmware for all mentioned models and second one specially for XPS. > The only match we replace that doesn't already use autodetection is > "XPS13" which, according to Google, only matches the XPS 13 9333. (All > other XPS 13 models have "XPS" as its own word, surrounded by spaces.) > According to the thread at [1], autodetection works for the XPS 13 9333, > meaning this shouldn't regress it. I do not own one to confirm with, > though. > > Tested on an XPS 13 9350 and confirmed the module now autoloads and > reports reasonable-looking data. I am using BIOS 1.12.2 and do not see > any freezes when querying fan speed. > > [1] https://lore.kernel.org/patchwork/patch/525367/ I guess that these two tests are enough based on the fact that lot of XPS models are already whitelisted. Guenter, it is fine for you now? Or is something else needed? > Signed-off-by: Thomas Hebb Acked-by: Pali Rohár > --- > > Changes in v2: > - Remove another now-redundant XPS entry that I'd missed. > > drivers/hwmon/dell-smm-hwmon.c | 26 ++------------------------ > 1 file changed, 2 insertions(+), 24 deletions(-) > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c > index d4c83009d625..ca30bf903ec7 100644 > --- a/drivers/hwmon/dell-smm-hwmon.c > +++ b/drivers/hwmon/dell-smm-hwmon.c > @@ -1072,13 +1072,6 @@ static const struct dmi_system_id i8k_dmi_table[] __initconst = { > DMI_MATCH(DMI_PRODUCT_NAME, "Vostro"), > }, > }, > - { > - .ident = "Dell XPS421", > - .matches = { > - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), > - DMI_MATCH(DMI_PRODUCT_NAME, "XPS L421X"), > - }, > - }, > { > .ident = "Dell Studio", > .matches = { > @@ -1087,14 +1080,6 @@ static const struct dmi_system_id i8k_dmi_table[] __initconst = { > }, > .driver_data = (void *)&i8k_config_data[DELL_STUDIO], > }, > - { > - .ident = "Dell XPS 13", > - .matches = { > - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), > - DMI_MATCH(DMI_PRODUCT_NAME, "XPS13"), > - }, > - .driver_data = (void *)&i8k_config_data[DELL_XPS], > - }, > { > .ident = "Dell XPS M140", > .matches = { > @@ -1104,17 +1089,10 @@ static const struct dmi_system_id i8k_dmi_table[] __initconst = { > .driver_data = (void *)&i8k_config_data[DELL_XPS], > }, > { > - .ident = "Dell XPS 15 9560", > - .matches = { > - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), > - DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15 9560"), > - }, > - }, > - { > - .ident = "Dell XPS 15 9570", > + .ident = "Dell XPS", > .matches = { > DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), > - DMI_MATCH(DMI_PRODUCT_NAME, "XPS 15 9570"), > + DMI_MATCH(DMI_PRODUCT_NAME, "XPS"), > }, > }, > { } > -- > 2.25.2 >