Message ID | 20230205205456.2364-1-W_Armin@gmx.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1926485wrn; Sun, 5 Feb 2023 13:10:39 -0800 (PST) X-Google-Smtp-Source: AK7set8RX4AXVaDYAY/mPXmD+0pmo6LREC/d+PYhKycAgaiDPTBoJK+7rNGm7wkvXQ6s8eR1zR3s X-Received: by 2002:a05:6a20:938a:b0:bf:7cbb:18d0 with SMTP id x10-20020a056a20938a00b000bf7cbb18d0mr20159736pzh.17.1675631439017; Sun, 05 Feb 2023 13:10:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675631438; cv=none; d=google.com; s=arc-20160816; b=YXxYFHfn5/NVndlQk79k7RHAIvMlt4uKUsFcoM+O2j0vQfSL9ZvFxlFIEAFXOIpY06 dmyDVijILgqiIzhO134ingpACfnvFuqVPMSlsbFqWPQFSymt7VSMLQCyhoulYho9CWNX ytTh2QiImsfYqm5vWd7iEvw13p4GtLhGNiL5Yf/epeON3bBn6rUhyra9l3KEdnO7y+RD sE1tEubtJOi3e61IjzEyhC/7SlwK6bjkkfPlK0UUi5Bxt7lpXrDl4AK2rNsXqe3uP5CX xHVAGpK0e1moDdtQTKFfO7HjW4YPXeP+eHBFYZUKAQ30Zhj5I9OVDKP6OaFnK8ZFf/k9 +SlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=xc4b2utZ6NlRpfe0i2Tlpqp4u1WQPm2xBpQhtBJL44k=; b=ppqb4v8ROJ+vPz2BRdhG0hKwQzuyw6Ss+r1+iLJZMdcshawRHOnzbh46/YB0lumtog Lxlb+mHxAogdBm/qPnKbOA2SCQQS89A1MCNCqaatA3rXf1igzUbOD988+e62Ee9QG2QD AcqhwGwGwDuJT2ewKtgrAuFMuP+K1CZlKd8M3mE1Z/LdKyJxjaykxwusFCj5C0SAYofC FwE/f0gRzLhnhZooVhhoepi3/FjVjr5BDKTLIeN9keW2pvrcvm9EZ+XaU5OexpJKgnYF p3sgIN/Lvy5pIjSzRmvHekBdSy4dkRlWHJbr+wo+Cc+JUT9+9GMBpugsTAaz1NakYZkD yauQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=r04R8Tkd; 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=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a633d03000000b0046ec058379bsi10228092pga.99.2023.02.05.13.10.26; Sun, 05 Feb 2023 13:10:38 -0800 (PST) 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=@gmx.de header.s=s31663417 header.b=r04R8Tkd; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229571AbjBEUzZ (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Sun, 5 Feb 2023 15:55:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjBEUzX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 5 Feb 2023 15:55:23 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DA7A1A49F; Sun, 5 Feb 2023 12:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1675630500; bh=hLmcV1s3cTU9WLWvvGVPIAQYigFM6bBky19OK8b5U+4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=r04R8TkdI/HeOSf9yxBHWMhiBCfq0YEMiBbvizy0UzhTMT6tEMe+Qy5JkJz4CgLkz is2zRJ9fH9tpta+RsL2vLBYGnLp4/oh7MQ2L2QHNdObii1SztKzaBe/UvQTlXci7cb sdO8khr/ETjtd9m4c/RxeJB3JvsjMCv463kbq4zeR7+OLDMpUMv7h1Obi6fuq+u8db AsTuJm9si3ZgL5ip4ozrZKMWBY9y7EuwhU7VSB6j+IfWyVc2cyxsKPNfgTQcr66O+k bq7ZZr/j/hF1tUyCDxj1ygXeJWpNEUpvqwlmWofV+xTYYx4IuYFypcf3OTnojF7P2j LO9ypmdvrmDPQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MRCOK-1pCips0Hw4-00NC3W; Sun, 05 Feb 2023 21:55:00 +0100 From: Armin Wolf <W_Armin@gmx.de> To: hdegoede@redhat.com, markgross@kernel.org Cc: jdelvare@suse.com, linux@roeck-us.net, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] platform/x86: dell-ddv: Various driver updates Date: Sun, 5 Feb 2023 21:54:54 +0100 Message-Id: <20230205205456.2364-1-W_Armin@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:AnwqbvaAXsbxdJGkH7b1Gm31VKClQFeRvB7plgX+K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p9DgMLBRF/hMlYGzaMrN+9E8O3sT9EGBEONWv1kWNAgc 1MSeBAquT4gQtz6DzWfYhadpXAuRX1/cl9sRQHMG4VQF3GRliEnWkkm+oBZ1dEJbmG5MuqLkA X4Sj2GtBFTIt4EJCm1ZmHKFihQY= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757026911912705735?= X-GMAIL-MSGID: =?utf-8?q?1757026911912705735?= |
Series |
platform/x86: dell-ddv: Various driver updates
|
|
Message
Armin Wolf
Feb. 5, 2023, 8:54 p.m. UTC
Thanks to bugreport 216655 on bugzilla, the contents of the fan/thermal sensor buffers could be almost completely decoded. The first patch adds support for exposing the sensor values over a standard hwmon interface, and the second patch enables asynchronous probing for the driver since the sensor interface can be quiet slow. The patch series was tested on a Dell Inspiron 3505, with the hwmon patch being tested by multiple people over bugzilla and email. Those who tested the final version of the hwmon patch are credited with Tested-by tags. --- Changes in v2: - remove already merged patches - add patch enabling asynchronous probing - cache sensor buffers - add missing break statements - remove C++ style comments - rework battery hook and hwmon probing - rework Kconfig dependencies Armin Wolf (2): platform/x86: dell-ddv: Add hwmon support platform/x86: dell-ddv: Prefer asynchronous probing drivers/platform/x86/dell/Kconfig | 8 +- drivers/platform/x86/dell/dell-wmi-ddv.c | 494 ++++++++++++++++++++++- 2 files changed, 497 insertions(+), 5 deletions(-) -- 2.30.2