Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3622964lfb; Mon, 9 May 2022 00:13:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlM57QnmeDKeeGW9a/+pwatDx4i2d8xlKC0vI4Vlx3jOjOtqKc75JQCX8G26CVp3p6gSpo X-Received: by 2002:a17:903:124a:b0:154:c7a4:9375 with SMTP id u10-20020a170903124a00b00154c7a49375mr15016002plh.0.1652080396987; Mon, 09 May 2022 00:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652080396; cv=none; d=google.com; s=arc-20160816; b=vVYhROLF6NUVwwYjewO9oHwbGZzzBnznIRmFP4Dhx57ean0ejE5KKjzcPJSXGPD2OH Fu8e8TI54f/+hat7uDknsqFwIxo8u5i9a38skug4ClcI/5DnyPOlPjFh+9jw1hnzqj11 dgvftpmj75obzuyPkTJSWhCsTseMXEQYqqB6Yy22cr+aLutGfbdA9WviXpcrV7BKGxgP 1IRi1tGrxrws60w8YzQH6Z2JkSbGocJljk4irk4afQ9PKiEX000AgrA5cFpWrYtP/B2k IeYPOhXzJ2QM1U/btlpAM3JtBA65/zz9T6HkAtHIWChZ9vxnrX6E4eTZF1qxhHAaH7Js b8nw== 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=Vt0OWBct8YhWCch2+2OkXoGqDKSr3TcXp5y1WslSxb0=; b=fYDiekalR+S8P5BllfboYtAgIEVYq6+mnkerHFp799xHlIEA7+xdH98zDmRvsqrLAw nBXVinKZfCTReTBzLNKZp+yGDwfXPhceDwldOj4eqFdXiCzVLxdWK6JX1DzdnZbDpfL9 xs0EpxGzIGou6/YGBv3S4xq1pXVvrbDLseUTFXBNvLsPnm7QPwFVp+ryRw1yGA1osH48 64c+rjNx/f8RX6DcU+NN2qOGSh5ndIU5bimP2leJbZsGuxAVuw2mUBEeCuz4+rzqJFyU AxYRv5JK523snl+Z7LHNQt66CrOnlCy8pQlHv5HpShD2D10uXFjHh5VeUlNyfeY7USYj qy6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Cjo/YUax"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 23-20020a630017000000b003816043f01fsi11243898pga.532.2022.05.09.00.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:13:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Cjo/YUax"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C8BB19C76F; Mon, 9 May 2022 00:09:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388500AbiEFSvO (ORCPT + 99 others); Fri, 6 May 2022 14:51:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388545AbiEFSvG (ORCPT ); Fri, 6 May 2022 14:51:06 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF6B63533; Fri, 6 May 2022 11:47:22 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id k2so11115942wrd.5; Fri, 06 May 2022 11:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Vt0OWBct8YhWCch2+2OkXoGqDKSr3TcXp5y1WslSxb0=; b=Cjo/YUaxkMwPxpg/1jrCgoxVaa0657POk8MVPJtu2fSAfdjI9N/0OoJ8AMA/b5qVBF NhjbTxO8G7FOzu+75usLEAjKTwDOxFC9pMH94Y2sWjRxRuRqXzh9MIdC/rBP8uAhE9vu wpZWRYwVM36ejJ4OkCrsMyiKKRCWPaxivl/2pB0eksZ/gGQQBycu9nzwrU6Uc9Jla/uh AAjg1kIsvvuEkmRyQZLlBrHMQHlpjmzmfjIhKDdBInawqPxEZbK5CtxsyeZoo9eUdeAX SKoCrIfnb+z5xt5J4shDn4p32/zUzn1qhxlkb+Ecz4Dla2jKxDvywirWavYdpD9wgCZX mamQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Vt0OWBct8YhWCch2+2OkXoGqDKSr3TcXp5y1WslSxb0=; b=pN6PqhPwbIAecp49E6SzZUZQ4+kUqUyHLu+Q4SHOoWyFFiwXpt1yepr1Wr9vssWah9 /EjnwT45blLKbx5vz51u+CgtRZsgx+ya0oMVx+7WiHaX+h623uqi1sd4xV0b9Ormuk+q lASHapa5aS+iGZSS50JSxOK2GMIfDQ+QoQwa8YcR5VrCmxaGp5ms9Ih5f5O++2EObhvq u2MDdIhFCf6EPizOQvU7ZFyI4kY7RHrV/Jyavn8VKHcRlwqw7/VV2E8qfsghp7p2HqCm qd9CPy0zNXur7VUCdOz051whwuFcsoUqzjUgiiBn4B24ZVX7F3DBnQEa2tHoS5DAu3oh RpjQ== X-Gm-Message-State: AOAM530IBM4IhMMGskux1wV9xhYxxsZiQzFectfC+5k1KZeCluhQKKRo r99+iP/6gOiwFZgKBV7fKxKUAhzXJDg= X-Received: by 2002:adf:e7c1:0:b0:20a:b724:cedd with SMTP id e1-20020adfe7c1000000b0020ab724ceddmr3894091wrn.409.1651862840866; Fri, 06 May 2022 11:47:20 -0700 (PDT) Received: from [10.17.0.15] ([194.126.177.12]) by smtp.gmail.com with ESMTPSA id e13-20020a5d530d000000b0020c5253d8fasm4276785wrv.70.2022.05.06.11.47.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 May 2022 11:47:20 -0700 (PDT) Message-ID: <40c3033e-b9d8-0cf6-4009-35701f02c8aa@gmail.com> Date: Fri, 6 May 2022 20:47:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] ACPI: battery: Add "Not Charging" quirk for Microsoft Surface devices Content-Language: en-US To: "Rafael J. Wysocki" Cc: Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List References: <20220429174114.1277799-1-luzmaximilian@gmail.com> From: Maximilian Luz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On 5/6/22 20:43, Rafael J. Wysocki wrote: > On Fri, Apr 29, 2022 at 7:41 PM Maximilian Luz wrote: >> >> Microsoft Surface devices have a limiter that sets a fixed maximum >> charge capacity for the battery. When that maximum capacity has been >> reached, charging stops. In that case, _BST returns a battery state >> field with both "charging" and "discharging" bits cleared. The battery >> driver, however, returns "unknown" as status. >> >> This seems to be the same behavior as observed on the ThinkPads, so >> let's use the same quirk to handle that. >> >> Signed-off-by: Maximilian Luz >> --- >> >> For what it's worth, I don't think the ACPI spec explicitly states that >> any of the status bits need to be set, or that there are only the >> "charging" and "discharging" states. As far as I can tell, ACPI only >> states: >> >> Notice that the Charging bit and the Discharging bit are mutually >> exclusive and must not both be set at the same time. Even in >> critical state, hardware should report the corresponding >> charging/discharging state. >> >> But that does not exclude the case that no bit is set. So, strictly >> going by spec, I don't think it's necessary to put all of this behind a >> quirk. > > I think that this should be covered by the patch I've just applied: > > https://patchwork.kernel.org/project/linux-acpi/patch/20220427154053.499203-1-wse@tuxedocomputers.com/ > > Shouldn't it? It does, thank you! Sorry for having missed that one. Regards, Max