Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1981968pxy; Mon, 2 Aug 2021 15:53:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT996v7GLreNvXtp/IeZU50l+bnvfU82C3CgMTo8itGho+a4gsVQTfp1zdTy/7bvw7r5OH X-Received: by 2002:a17:906:7c8:: with SMTP id m8mr17747622ejc.72.1627944824405; Mon, 02 Aug 2021 15:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627944824; cv=none; d=google.com; s=arc-20160816; b=ZyNRQ0KaF22gpsgWsZEEMADLuBvz35kWUuqAgCYzItS39I9f0P5ROOwXClrII4PFxg Xj38D5qntqrkpwDV147CL2m6a8tJvjAeaKQKKDx9/AVt3/2TN7WUs//qerqJkIIghZsE j+/5VvrmxeNxRfh5jQFXLATzZw8if4znz1R6NNjWDuyL0Bqjnrd7pEZx0OKNAfzUGYvm MESIKfkzJObqm+pxQtTtBMcbuu3WHzwU2UDScCy59ns5rqOuxl3hIehlilwcyZDdzOFB bxY3CPG3uVC5tMINzoDqPP+2n421H4wnKd6aKuqQaCp2sk4w2PgDVwsllrYkAgZlR7M1 FKzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=Gc7O31W9o/ImGg2xRSYFF5T9hdypGeqEYgTYqohoq0k=; b=TixCirduz+sSbZtmWpr44doppMtlzxOmDswgvJMmk5KckGemt79gYON2X8bCC55hL/ bf082D72uztMjMevRajwHXkBinIlBRXQ/9O8gysX3Qh+n+wtSKohR+b7D54E/OVvcgen 8OsDwQcPF0k5MmbKg4YY1H7Zq85rwHhELA9siJiLtvyIOvEWzMkG0NnKel0XfjfRKvlk ZcU8/XSJkia2DA53zHLl9o8OydC0vb1ieVWE00FufgZzPSYqmXYfA8CFYTHEYNzc3k1B TMF21+M9QzyJC4qTB1W90JCrVBQgrX7qSfjfMnJOQJIEyw7AGihR25E7QR2UayB6wGHl uZCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Oyd8OU0N; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x10si10889346ejs.36.2021.08.02.15.53.21; Mon, 02 Aug 2021 15:53:44 -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=@gmail.com header.s=20161025 header.b=Oyd8OU0N; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232359AbhHBWwF (ORCPT + 99 others); Mon, 2 Aug 2021 18:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232130AbhHBWwE (ORCPT ); Mon, 2 Aug 2021 18:52:04 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 494C5C06175F; Mon, 2 Aug 2021 15:51:53 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id o185so25940619oih.13; Mon, 02 Aug 2021 15:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=Gc7O31W9o/ImGg2xRSYFF5T9hdypGeqEYgTYqohoq0k=; b=Oyd8OU0NqfFZPvv6vbZ/1gCZ06byBJNjjqj5k6R0A1LC0tTLUAJRGbxdId+r10d/L4 wFGsOTihTxkItKcPc/gVv4mTCPnB6yqk+JKtKYbKGIdsng6rdPHt1kfdRwe3rxa2CD2S Q4YQUJyPVni0r/jVOaDjaIQRWHFf08N7+BUwM3eHXJJm/k9txsgeitsuLUvCpS2iKOj4 V0J6wbS8I8RYAPNrt1Me+TiVHmk1r0tji7pRj+eK5vzUgsznn4tfLGwampV19VW+OxB7 qRmiLu7MOCC5tpPQ4Exi3egcJ64WAO5yFq9gIZ3hcWuStjFEzgIOG14WwQ/0Zyi1eP8v /rYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=Gc7O31W9o/ImGg2xRSYFF5T9hdypGeqEYgTYqohoq0k=; b=oYIVIv0P0myU71XBXdB7zAUX2YAnmOM6FR2WbCWJbt6gGuKc15JhPaBdZePgtvx+Sg LVXnqdFuq4IEA5aGz5jgUyffCAg3epL8tu9oY+QsnS1V7cJ7i5f0d+HAwSc6MoUWFix1 2Qq1//3V1Z0SKPiDo7pS3GfqQmIXYzCSmB2UiNclK/lya9g6kzT0QJ6GXNzQ7INQq3Gu tKp64qViHQAxswe5+14kEUb7DxaomZ8pFjJLTV787Xgi8g7p3RajSmtmzkBxh8w/MKMi 5Y0/9q1wF5QwmMaeABRsx1qv5hC02JbrWiqUeG4FfJ5YFIscKWzKLIAblBeROwUM5f8w oVLw== X-Gm-Message-State: AOAM5317PAXCJd+4w/ptm3aNs+P4QgoC0tmc3wnX/zX+u26Q9Fr76vcW bUstn9OU2CEIJgXXku/LBiQ= X-Received: by 2002:a54:4806:: with SMTP id j6mr12526276oij.66.1627944712738; Mon, 02 Aug 2021 15:51:52 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id r1sm1967921ooc.16.2021.08.02.15.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 15:51:52 -0700 (PDT) Sender: Guenter Roeck Date: Mon, 2 Aug 2021 15:51:50 -0700 From: Guenter Roeck To: Carlos Alberto Lopez Perez Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Jean Delvare , Pali Rohar Subject: Re: [PATCH] hwmon: (dell-smm) Add Dell Precision 7510 to fan control whitelist Message-ID: <20210802225150.GA2134522@roeck-us.net> References: <20210802131538.8660-1-clopez@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210802131538.8660-1-clopez@igalia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 02, 2021 at 02:15:38PM +0100, 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 Applied. Thanks, Guenter > --- > 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], > + }, > { } > }; >