Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp429773rwb; Wed, 28 Sep 2022 04:51:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4g12buVi4VJ28ivb0hD+6hhbHywdazjrpG7PrY3yo9kYtXQeQa9NHB3wyxxmHKu6q5M6sv X-Received: by 2002:a17:90b:1e45:b0:201:6b28:5403 with SMTP id pi5-20020a17090b1e4500b002016b285403mr10389566pjb.164.1664365896454; Wed, 28 Sep 2022 04:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664365896; cv=none; d=google.com; s=arc-20160816; b=MthZxLRDtLc30Hcz0E4xzRaNMXIp9vqKzaemcb6Pd3i+4A5VXAUgMU7npJ+hOsCwFo xW98iO9tBjtfAW35d/qWXf7RPassEijDH7/dgg01DW+Dg2AGwan56IxOcc5LcLOOrDdg 4zYBlJlGuVxGZf8eMJQRQCO1eJSseOqIgN6V9cy0txWc/nmnAobgC/kziXre21NDCKfk eWeWhNiOTXXXCWW+Qjs6vT27InWxvHmsnDj6Aq2SLXVwUhovqrG2ojdXNyqUq6U/JbpG CM1BLhJG4T6DF2HxG0hRfLDFZGrO9hTVfg+KN60b3xZBZKnRqdR/5hPySkMtn0gZ1wDv b0kQ== 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=0T5p0Y493/N1/pFQ05/rtmN/mCGm71H3Y3YBZL6Swqk=; b=mPYCNChZsGKOgEQi9iWSoiW4vMpS97g8qiF9EgOJ+BnxmeI3mv1O+66U3K2duIJeY7 /tv/TRHeNsqtHU1NxghUs7QcOla/wNgEV8VzoTYKKaVwVor8moYDpx9RYTO6uvJN9CqN TChDRY3FMn6uiUdfIqLrFSCvSkhse7tpRUhmPia8QqbpiC2nhVcPRZV74SZRQkwY1rjI oLNAlSjgxfHtpMD1h/i2Arn4KWdZLkO9g0nkDzVw5eyQK097A2WLt7ddqFmaYHlP+yb+ Tv1YDItiq5Ad99TSXwY/s2JcOIvcDZgCqm0Iq82hQp/xrIq1norWfw1M8LKnlxwdh1pn G87Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eRZ3KYff; 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 d16-20020a170902ced000b0016781796321si5399454plg.49.2022.09.28.04.51.24; Wed, 28 Sep 2022 04:51:36 -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=eRZ3KYff; 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 S233470AbiI1Lhq (ORCPT + 99 others); Wed, 28 Sep 2022 07:37:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233468AbiI1Lhn (ORCPT ); Wed, 28 Sep 2022 07:37:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B79DBB for ; Wed, 28 Sep 2022 04:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664365060; 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=0T5p0Y493/N1/pFQ05/rtmN/mCGm71H3Y3YBZL6Swqk=; b=eRZ3KYfffdOqzw+0qQ9A5eOC33IM5lrHCrkZoIg1KV06iwXErgt0XlI7LrGmJYxLaf9tXu 5qEzirTiOcKpE4lzoWuAgVdYE9MgRkLF2Q1y0HLG8/yeArdMqtFyB72zvqWUhtGZ9RNQDU Lk93hpsWhZQFxxez49GCRR9immalOXE= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-447-LGOxNiOzM8OUaEga5sYMLw-1; Wed, 28 Sep 2022 07:37:39 -0400 X-MC-Unique: LGOxNiOzM8OUaEga5sYMLw-1 Received: by mail-ej1-f72.google.com with SMTP id qf38-20020a1709077f2600b00783ac0b15f0so4115655ejc.8 for ; Wed, 28 Sep 2022 04:37:39 -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=0T5p0Y493/N1/pFQ05/rtmN/mCGm71H3Y3YBZL6Swqk=; b=TsfmwX0corYIehf+eYT0aa8C0T4fz081+9/SXMm3NXcHhnAUy3YRE2LLiOvUbohi7N JbSXdD0eav8PjkW9UOHjNJLS+8ihwwh12mAxdLOiu+A+SQrwiur4FjeyL9rIrzoUtILm cxKrBtD7wOYbWoyqSg/3sLj/tUSGuO83ysPHBYf7wyHMUWhAglKqUphBZpFVcQiBeR/+ 1OkJKA/i1SyQdBszW0AaXg6EKeAbb4OnQyNTXLPdWyADcCZIuC6tcIojxBJRa6roxoEs PksSdcK1oa2otSVP00BQkg9z6vWYFwgWqNb5kcTFs6mwCHeCwNoLUZp0xCapJ5tAY+ra CAdw== X-Gm-Message-State: ACrzQf2BDxAfQS/N3Z8x/pnycUags8GfTin7UF3P1WkNprImY/y6wn94 ZZYDddGxjfopOU4tNX9/pQfN7+yP3hWCSMGZjEVrCQdPOAGyJpXKi0e8MOXdouwpqhVS/ktaSPX vIgD2LtpNE56DcDcZQD1Au38i X-Received: by 2002:a05:6402:26d3:b0:451:6ca9:bc5e with SMTP id x19-20020a05640226d300b004516ca9bc5emr32273447edd.325.1664365057839; Wed, 28 Sep 2022 04:37:37 -0700 (PDT) X-Received: by 2002:a05:6402:26d3:b0:451:6ca9:bc5e with SMTP id x19-20020a05640226d300b004516ca9bc5emr32273402edd.325.1664365057231; Wed, 28 Sep 2022 04:37:37 -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 p14-20020a17090653ce00b0077f20a722dfsm2225594ejo.165.2022.09.28.04.37.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 04:37:36 -0700 (PDT) Message-ID: <4e579766-5b95-d44a-c482-e629889b482b@redhat.com> Date: Wed, 28 Sep 2022 13:37:35 +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: Andy Shevchenko Cc: Armin Wolf , markgross@kernel.org, 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> <8d976e9c-8fea-8a67-1331-7993705c60d9@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 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_LOW,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/28/22 12:48, Andy Shevchenko wrote: > On Wed, Sep 28, 2022 at 11:52:51AM +0200, Hans de Goede wrote: >> 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). > > I gave some comments, but it's up to you if they have to be addressed now or as > a follow up. I have answered a couple of your comments. What remains is very small / trivial. So IMHO this can go in as is and then a follow-up patch can be done to address your remaining comments. Armin, can you do a follow-up patch addressing Andy's remaining comments please? I guess it also depends on Rafael and if Rafael is ok with taking this for 6.1 or if this is going to be 6.2 material. If this is going to be delayed till 6.2, then we can squash in the follow-up patch while merging. Regards, Hans