Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp920060rbd; Fri, 23 Feb 2024 07:34:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUc1zPO9+tiLdpKAqqnXdz0BXsqRFogjUyK9dCtI4hyBbCdptCRoQUZRzETIPMg5QY1ikQdSJA6O1ozeOa8hdN+W7mOIfOudd4ClA6veQ== X-Google-Smtp-Source: AGHT+IHEVanAI1lSXlDrdVgn1HqAQdhjQ46ZVustbt+FiETjBX4lLzmArwZFVrMjp85nTEAXNrl+ X-Received: by 2002:a17:906:c18c:b0:a3e:e04c:457 with SMTP id g12-20020a170906c18c00b00a3ee04c0457mr115994ejz.19.1708702495550; Fri, 23 Feb 2024 07:34:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708702495; cv=pass; d=google.com; s=arc-20160816; b=gs3NYPeiHHi2GGcVsk8fGpU3+Ey4Ou4zHNQUAS/sZNXzAUu77REZEomXnb/fLxYMlk wL3l0w6gt/1Z100eXXRyfkItxpVwO0WnvJLqizm0U8uE45njbX29kNYBwLTkwaagmIor i67Q/9YELLyGOeQX0oj7qfAbZmyHfM0r42VZSXlAjwpwrqgQfu4iIfjqs44Z/10amnEg qdguc+jOpxbuEHu3DAiwSC8UBWTevtxP+m3z00awnYSIvvo+4NYda4B9K5BoolXzNFLt nT3CaXp5GYRr0EceKLf4tooLnp10wTFKOWfhQPJjx+QXjyV1ujBDPI4uLF9K6lvEeBOO ZZIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JUuUcBNcw91DarHkf6NZIrEk4pcSbGKiAGC9N97sc3I=; fh=cXPPtccr6KfI0h82UAizC+4p8mBRhR3IdYTHcaKY1PU=; b=hy1K9T48S90i8kEfVYSWqiacIDQPvN5S0xaJmQwPju5HhaFQQrn8LwOSndxpQo7Li4 5b9ZiudBLz2H+s0jgw361cvWdJkMPFbYzm9tKmqOPwbRK/zgG64wv2/hd6wqiHHuFbTw c45LbwRdkTUpwHm/+e6jLnMEv73ZoCowVUwSzA2i0KcL7jZ9h80vUjCM+efPpoEyrVhi ZPKWWRnOF18rkuxfpcAtZAjhbKdabAQKCRe2XPkcG80W1LZpv2jrhBXjo7bYDeAc8hiD Xu0U7skXo+M6FiG1WRsqvKsUa4Uik8qzYXdVGwRpvDzOV3ShLfYFFK5xbcWFGlucsVIT kTdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=qq6TzNBG; arc=pass (i=1 spf=pass spfdomain=trvn.ru dkim=pass dkdomain=trvn.ru dmarc=pass fromdomain=trvn.ru); spf=pass (google.com: domain of linux-kernel+bounces-78615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b19-20020a170906039300b00a3f94ad3e75si316859eja.657.2024.02.23.07.34.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 07:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=qq6TzNBG; arc=pass (i=1 spf=pass spfdomain=trvn.ru dkim=pass dkdomain=trvn.ru dmarc=pass fromdomain=trvn.ru); spf=pass (google.com: domain of linux-kernel+bounces-78615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 528B21F25C03 for ; Fri, 23 Feb 2024 15:34:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76CC382897; Fri, 23 Feb 2024 15:34:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="qq6TzNBG" Received: from box.trvn.ru (unknown [194.87.146.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 827214A3D; Fri, 23 Feb 2024 15:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.87.146.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708702484; cv=none; b=tmTTw2da6IM0n0IcsmagIAG0cK7BR6h+UTMMm7+qC0nGcpnxTCUxfHKLXbXbpdmWNzpTTE1P+krNBnL2bsAvQMdxLlAtsYNk9zGTYl6ynAuq0rnq/OqrPiXHFwZVk6s4D1R/lwgrjULEes5jl+RXXWw/RBqWbs9Z/WFK18kf+W4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708702484; c=relaxed/simple; bh=0SNtXViAi/uuzITK6f3+yak148HxUT/1hggSYF8AK6Y=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=SmmfxeQ9jWjmDSuk33Sm9WTsdLK2WZB+pJ68pPZ3C9Ho1FR1XH1vohWb+b2nCy9r+CMcVX0IWgyrE9YDWiVkCWep7I2CfsOFjgp9Ar+LyT71F2kx1SZwvkCNL4cl3HPQ7NyzILZkS8W/enWDIiyr12y+o2wozFeHOVkELBsU0pU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru; spf=pass smtp.mailfrom=trvn.ru; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b=qq6TzNBG; arc=none smtp.client-ip=194.87.146.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trvn.ru Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 9694A40164; Fri, 23 Feb 2024 20:34:30 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1708702471; bh=0SNtXViAi/uuzITK6f3+yak148HxUT/1hggSYF8AK6Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qq6TzNBGn05giGvmcRQt3AaAYb/F/pzsMBFrc0khdePz1ghzyF/iRXUEmoaELmULx kGf29xKC7wG0D4ZNvipJkyYDbp7hnSCsq/2MHRw8ko6B4+ndA0lGGw2ylRvH3tKsZt qdrTV6ECrpuN7f0V2xSsBgWoNyLUJQeJikTicP3lSiGIaIXp7QhUDaimK4uKjAE3eC rcSnmEdBRh0QskL1PWIAyqEcZXukZp378sMEb7T5RFPDvw+44WEGLPaWS4j66IfprM R5oBdwi2MET5cZCR+LtLhHxzrZxVDPWBeGtgereyi5DxsLAzQqEMUMP32E8hJP71Yd CaU1bnWbVbJkA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Fri, 23 Feb 2024 20:34:29 +0500 From: Nikita Travkin To: Sebastian Reichel Cc: Hans de Goede , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH v3 2/3] power: supply: Add Acer Aspire 1 embedded controller driver In-Reply-To: References: <20240220-aspire1-ec-v3-0-02cb139a4931@trvn.ru> <20240220-aspire1-ec-v3-2-02cb139a4931@trvn.ru> <7c429d2110dbac68d0c82c8fb8bfb742@trvn.ru> Message-ID: <6e3fb1080c54cfc38dc3c3e79e32a53d@trvn.ru> X-Sender: nikita@trvn.ru Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sebastian Reichel писал(а) 23.02.2024 20:04: > Hi, > > On Fri, Feb 23, 2024 at 07:32:17PM +0500, Nikita Travkin wrote: >> >> + This driver provides battery and AC status support for the mentioned >> > >> > I did not see any AC status bits? >> >> I was referring to whatever ACPI spec calls "AC Adapter" but I guess >> I should have used the word "charger" instead... Will reword this. > > But you only register a power-supply device for the battery and not > for the AC adapter/charger. When you write "and AC status support" I > would have expected something similar to this (that's from ACPI AC > adapter driver): > > $ cat /sys/class/power_supply/AC/uevent > POWER_SUPPLY_NAME=AC > POWER_SUPPLY_TYPE=Mains > POWER_SUPPLY_ONLINE=1 > Ah, I see... Yeah looking at it one more time, I mistakenly assumed the acpi ac code uses the same data fields as the battery but seems like it reads the single online flag from a different place. I don't think there is really a point on implementing that field since we can still easily track the battery charging/discharging status so I will probably omit it for now. Will reword the help text to not mention charger/ac adapter. Thanks for clarifying! Nikita > -- Sebastian