Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1801409pxy; Mon, 2 Aug 2021 10:31:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwePecNL1cMdTxuJFWJvo8IM7yDCsqYWjSfpE7Bvdh8GW8Pzg/W0AcY4+QfIei1F0heWymu X-Received: by 2002:a05:6602:1587:: with SMTP id e7mr179529iow.112.1627925514440; Mon, 02 Aug 2021 10:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627925514; cv=none; d=google.com; s=arc-20160816; b=jwMsCy7wReWKhLtVmkWAkbXfhs7zs6aJyitPAR7rCkGuU+wG47mEAZoMXRigDfzke2 Z1tkxwguHsrJQlJuAaJIsc14XTFM90kpfyW9d9zssXbqYLOtU1p+OQ4guXZUZvpdjuRO MCMNlIK+4Vec0J3WyK7zWbeTieGiahUxvB2CwhX4Gl0oD19OqLndYe+vWA0CWRXwdBIS FSJoxWZ4EgZMn6lbLzNR1KJAJw4a8uNV8aFVZ5j4DysPyHymaRwUzaM30CJaT8ASAaFe 9kC/tjyvGRvdLctC0kKqmokdqcyCeAMxCuVOLLYRKi7c8QZ+YjlCRod1EanjAz1VDnk0 px+A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TdTUUb4TKLw1EDd+/NkT6qzqU7dHNmmwVExmWwJi8Sg=; b=lBTg5hzshD8AYkJDoT/gnUyw+/kEpnr32sFlgiNVXBIwuP87XCGL114Z8FHiRO7QxK IFcnv6vE2fxVknypi8/U+g8vGv19OKde/pU8kA4YCE6yVNXmtCf+7NrIux/TTgJUnWb7 6h8EFecChYbJ5Sidk33/xPl162QtX9UnLa6W4Tm05ztmq4+UlR/FldlCZYB/XCfRedRC WqA6OjM5/quvUJCGXxdQTY51cMlJAbTOKGrPRcYeEGMGhw2ac8fc5WWayE81T3V+FxXk 03n4c3V5swg0tRQEYBdwlPZBGDont54gD1rcGuH+h6zc22NmqjUAOhFVGmdJ0PjSGbYU ADvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GJuxzopT; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si12303357iod.50.2021.08.02.10.31.42; Mon, 02 Aug 2021 10:31:54 -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=@kernel.org header.s=k20201202 header.b=GJuxzopT; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbhHBR36 (ORCPT + 99 others); Mon, 2 Aug 2021 13:29:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:38454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbhHBR3x (ORCPT ); Mon, 2 Aug 2021 13:29:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D34FA61102; Mon, 2 Aug 2021 17:29:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627925384; bh=CW+mp2qidRVwZuQRESt49L6zsHui5LNvQSbJNC6LeVE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GJuxzopT4ZZ8IP7n6PDsaXGTnmND1JBKaef9LYBwxNX3ZZwt+Ch+6o0qBNDCJtud1 KehPtmMIKy4vZzh5qbRRpxnBkoDSFUpK/Qf44+LUI3dScFDQIkIcZL1FMvPAgZisU2 CQgHBAcNY6O2xFRRjDEeJIv/gEXIU6DCxc17oD7gipRSDfuc5I373kwPTgKNYn8gkn Ok9uP2iamkjtNeAOXjgQET4zOjkQktxmiO5pWwXOFuDxYqWHMLBgMSKlxg5xtvpxQH br4+qjZTrR9qwSZG8Po9ZVSDNnzcSzdkNk6wew0AR9dmnOWMDzx/rXa27tQjS7BSYs CEVcHQBzKVclA== Received: by pali.im (Postfix) id 9AAF4B98; Mon, 2 Aug 2021 19:29:41 +0200 (CEST) Date: Mon, 2 Aug 2021 19:29:41 +0200 From: Pali Rohar To: Carlos Alberto Lopez Perez Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Guenter Roeck , Jean Delvare Subject: Re: [PATCH] hwmon: (dell-smm) Add Dell Precision 7510 to fan control whitelist Message-ID: <20210802172941.is2e4bxpsnuwslew@pali> References: <20210802131538.8660-1-clopez@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210802131538.8660-1-clopez@igalia.com> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 02 August 2021 14:15:38 Carlos Alberto Lopez Perez wrote: > This allows manual PWM control without the BIOS fighting back on Dell > Precision 7510. Meanwhile at it, also sort alphabetically the entries > of the i8k_whitelist_fan_control struct. > > Signed-off-by: Carlos Alberto Lopez Perez Acked-by: Pali Rohár > --- > drivers/hwmon/dell-smm-hwmon.c | 24 ++++++++++++++++-------- > 1 file changed, 16 insertions(+), 8 deletions(-) > > diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c > index f2221ca0aa7b..a677c8a4ef29 100644 > --- a/drivers/hwmon/dell-smm-hwmon.c > +++ b/drivers/hwmon/dell-smm-hwmon.c > @@ -1186,14 +1186,6 @@ static const struct i8k_fan_control_data i8k_fan_control_data[] = { > }; > > static struct dmi_system_id i8k_whitelist_fan_control[] __initdata = { > - { > - .ident = "Dell Precision 5530", > - .matches = { > - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), > - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 5530"), > - }, > - .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], > - }, > { > .ident = "Dell Latitude 5480", > .matches = { > @@ -1218,6 +1210,22 @@ static struct dmi_system_id i8k_whitelist_fan_control[] __initdata = { > }, > .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], > }, > + { > + .ident = "Dell Precision 5530", > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), > + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 5530"), > + }, > + .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], > + }, > + { > + .ident = "Dell Precision 7510", > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), > + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7510"), > + }, > + .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], > + }, > { } > }; > > -- > 2.20.1 >