Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp340561rwb; Wed, 28 Sep 2022 03:33:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wUKJayXPxq/mA+v0Cfraeof1cOvYRrqTEinw1vdFR3fDMlKbEFhSJNGb7QAuJvRp0f6Rs X-Received: by 2002:a17:906:ef8b:b0:77f:2b14:6eef with SMTP id ze11-20020a170906ef8b00b0077f2b146eefmr27070270ejb.612.1664361188544; Wed, 28 Sep 2022 03:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664361188; cv=none; d=google.com; s=arc-20160816; b=R6dD12M6kTpBmU8nvmDgBA2qtgxVHTObI6AppppGiuP6aTdZK0zXYgNBA5xCtheNxN XgxmUfQwvGLUt68Hl43yOjnOEbLpmEp9JqxxgktMzJIIZqJN8KXd8v8zw5kd0aDaiXTr 9TxprUsiMs9ys+x1mNDdQGNuMQZqf5l17gfCfzx0VP0LFlyJjUQHczgW+DTnWXzHI6Uu /7dfnRlND8lXG+n1Dq7BdfZCiQHrb0k26dt6/qSqgqQWX8ZVjRSnVJqsVTv8CmYJsRuS GVDgczwTOXVpSuczm8QqTKIU18deUVadXMi7zx05zNe6JHAZL/RU+fFsM4CDaQJboQB2 IoqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=x2xFUdcVDWsoKQ6dRV/lMVVHVLWuHfpAMF2LfPYKj1M=; b=bUjaI6w9/SttH8WjwegwSFybPM/kOYRnoFpxEtLR+ERiVcXhF6dxdZbtzrmWhZ9dVy ZDHbgI9+M6X8e3JN876Mx85KMBPMCq9r3EAn4N3o3f/581nX65tgcxW9ud1t6Wo253VR U08Sz/kvLQnytouJooyCtpRwwUGyIOK8+aoDMOPHZmYL9l1PdsUfh7GWNVT+5EDJDEe5 Ah9gnouZrOE/oYIBfQkuw9mjLuNiDB5aSdhpFDnSddaqK8v9nT0xo1H4a1zi7gkkEuWs UGx9HCdL04zHcLmbslPvBkkwsWpfOWrVLWEd2uc0CpQVLz/S4/eEYXbCOJ/UL6uONKUs eK8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iebKwHTW; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a50c2d1000000b00457e6752422si2106770edf.189.2022.09.28.03.32.42; Wed, 28 Sep 2022 03:33:08 -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=@redhat.com header.s=mimecast20190719 header.b=iebKwHTW; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233703AbiI1Jyq (ORCPT + 99 others); Wed, 28 Sep 2022 05:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233693AbiI1JyR (ORCPT ); Wed, 28 Sep 2022 05:54:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AA59D69F5 for ; Wed, 28 Sep 2022 02:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664358777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x2xFUdcVDWsoKQ6dRV/lMVVHVLWuHfpAMF2LfPYKj1M=; b=iebKwHTWdQdHS/s/Q5BAK4PWdrz0HPLP/9OdNdJY8JIIeXE2nxqDCzck/Hut30AZdp6Iop J0yG5wTznKtbZjFJyEYQf1fVf+lTR4JxVLfJkROhZBhC53aAMX5Y5Irt4pJ6pcWjrGzSxu XIn0/3eT+UQsClNHMvfG0vNqHAt3KkA= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-384-XTqdikmCOWSEdzVi7vfJVA-1; Wed, 28 Sep 2022 05:52:55 -0400 X-MC-Unique: XTqdikmCOWSEdzVi7vfJVA-1 Received: by mail-ed1-f71.google.com with SMTP id s17-20020a056402521100b004511c8d59e3so9956031edd.11 for ; Wed, 28 Sep 2022 02:52:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=x2xFUdcVDWsoKQ6dRV/lMVVHVLWuHfpAMF2LfPYKj1M=; b=xoNtIr3kPrX0xSlWeAec7MKSHk6ijQ/cvccaLSPCRdTCBfIFuvOYWEO3QDkGw8sjfS 3zNuT8+TM/wGyXyTFahcgDzGwXULUccruOX0lMxhBz5vRliik81Q3ZqlzAcNoRO+EWZ2 BAvvM+eSXQwHKHhXe98mRcnLRR1BGObzHEXe9wuMD/56go8dDxvC+C3+mfqvq1q/cxt3 IGNgDyypazH1e5FjbduNGir4lccW3SxTIuA+rj5j25KunpgFPYG66YrsLLhObA7yaNku zv2DcTKF37NK3AlnMywn04M45SHut4zYormmAaYXUJmzssCvzdPSE2eLEQZ3eASai6Wv fVPw== X-Gm-Message-State: ACrzQf3PRI+ItTgKELGdh4jfTZM89OQVLmz1xLG5YZR14IMCGrzMoqS2 D8cKgtNsL7iI+Bc9qZ6WbXsHf1ryrolVt+YI5lTJkW+3EZseeYLdxs2x098B5PWyZpRJk7BMHsx uKsOJZWX4v6qSo3LoyVkiAraK X-Received: by 2002:a17:907:6ea4:b0:782:6b82:a2cb with SMTP id sh36-20020a1709076ea400b007826b82a2cbmr25723796ejc.408.1664358774450; Wed, 28 Sep 2022 02:52:54 -0700 (PDT) X-Received: by 2002:a17:907:6ea4:b0:782:6b82:a2cb with SMTP id sh36-20020a1709076ea400b007826b82a2cbmr25723778ejc.408.1664358774260; Wed, 28 Sep 2022 02:52:54 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id f20-20020a50ee94000000b004482dd03fe8sm2967121edr.91.2022.09.28.02.52.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 02:52:52 -0700 (PDT) Message-ID: <8d976e9c-8fea-8a67-1331-7993705c60d9@redhat.com> Date: Wed, 28 Sep 2022 11:52:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH v2 0/2] platform/x86: dell: Add new dell-wmi-ddv driver Content-Language: en-US, nl To: Armin Wolf , markgross@kernel.org Cc: rafael@kernel.org, lenb@kernel.org, hmh@hmh.eng.br, matan@svgalib.org, corentin.chary@gmail.com, jeremy@system76.com, productdev@system76.com, mario.limonciello@amd.com, pobrn@protonmail.com, coproscefalo@gmail.com, platform-driver-x86@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220927204521.601887-1-W_Armin@gmx.de> From: Hans de Goede In-Reply-To: <20220927204521.601887-1-W_Armin@gmx.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Hi, On 9/27/22 22:45, Armin Wolf wrote: > This patch series adds a new driver for a WMI interface found in > many newer Dell machines. This interface allows to read battery > properties like temperature and the ePPID (Dell-specific), while > also providing fan and thermal sensor information. > > The interface does support multiple batteries which are indentified > by an "index", which appears to be the battery ACPI UID. Since > the interface also appears to omit any bounts checking of the > index, the ACPI battery hook mechanism is used to discover batteries. > > Since the information returned when querying fan/thermal sensor > information is currently unknown, a debugfs entry is created to > allow for easier reverse engineering. The interface is likely > to be replaced by a proper hwmon interface in the future. > > Since the driver can potentially be instantiated multiple times, > the ACPI battery hook mechanism had to be extended. > > The first patch passes a pointer to the battery hook to the > hook callbacks, so that they can access instance-specific data > with container_of(). > > The second patch finally adds the new driver. It was called > dell-wmi-ddv since the interface is called "DDV" by Dell software, > likely meaning "Dell Data Vault". > > The driver was tested, together with the changes made to the > ACPI battery driver, on a Dell Inspiron 3505. Other drivers > already using the battery hook mechanism where changed as well, > but could only be compile-tested due to missing hardware. > > --- > Changes in v2: > - Significantly lower the amount of changes being made to the > acpi battery driver > - drop unnecessary ABI description of the temp attribute > - return 0 when a unsupported battery is found to avoid being > unloaded > > Armin Wolf (2): > ACPI: battery: Pass battery hook pointer to hook callbacks > platform/x86: dell: Add new dell-wmi-ddv driver Thanks. The new version looks good to me: Reviewed-by: Hans de Goede for the series. Rafael, from my POV this can be merged through either your tree or mine. Feel free to merge this through your tree, or please give your Ack for merging through mine (assuming you are ok with the changes of course). Regards, Hans