Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2631502rbb; Wed, 28 Feb 2024 07:49:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWqMtaisRNMpV3ABrj+xIhil6g1SIR4CF9vYItC+4z0+K3pKgkczqzbUsMkLIvqOaubcyMhzwFR3hiOkcJa1r69GqLp9z1jec4om0xnRg== X-Google-Smtp-Source: AGHT+IFsw1dpQlJ6kUDPQ3Nay0Uwqr0zifIpBeN8sYbdZ8z8U8laC3DaHTZt0q+psQrZ9ELMAttm X-Received: by 2002:a17:903:41c4:b0:1db:ab9c:d33d with SMTP id u4-20020a17090341c400b001dbab9cd33dmr13010058ple.9.1709135383886; Wed, 28 Feb 2024 07:49:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709135383; cv=pass; d=google.com; s=arc-20160816; b=qO9PzjwNMObXIhSFp9nQ7BbMQIX2xj2HOA5UEpsqro5lIgrzu81PyycIizHvUN6mpC t2LiGwUmQ/AEJL41Nlvlo/hFwTlR0NsL+JpXdwH5pQcqzMTRfntDK7bcM0/anRdnQJnZ Y+C3DyPk8TQ+v+XDh3hHV3FvUewPeISR7uQhemZVAaW02J8Wylie4zZbVnoUg4Lr2hD1 5SWQbC3GEP7Per9Az/NaT+ynt4POQctY33aQSoU0ANgr+5iuif6TYvo3wzFrDVhzQ3+B Sk66I6/jBJbrJiwmhTY/wEj4eatAUxCSDEMRyJplAlKeKD09/7hORqm/Hj5uX3nWwG19 QhAg== 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=K5kXoxlBlk0JupR4TI7I5hPzkWqaeQSLc9AS3cLtEjQ=; fh=voDXhkvGdOX/f3FcOPWh8sndSOSo3nn+eykw1cwKcxA=; b=R+EoIki2NPSdPuM13/cb3bNdEdiWxJWyqmbSZof4Ch7C3mW+UxxGtlVyiUtNMDyUg2 XVCP/7oO3gUoi4HwFUYh3Jo0iF75PLLXI71Fpa/oHc49g/DE0c7OYoDQQ/fyXMmPZGjy Icr6DBSFxBeS+0PYchy2W96Jox6tK1Pzp1nrVSfrkVo2V2h3RUljvhf5gsxT+3knKmaD Ev+0de6eXQlEsak5NNkEg93fK00PfCrY1PFXWIJLL53wW7QDv3hEiVxDb7qNmnVyAFzf LjxFYzRsSkM/WytHm2NsJia5d6f0mZ7BYnII8MYh//jZy0lM0ZQ2vjuPcGBXOpLRKz2j Su8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=VhUxaeXu; 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-85298-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85298-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d1-20020a170902cec100b001dbf6a7e789si3623672plg.122.2024.02.28.07.49.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:49:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85298-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=VhUxaeXu; 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-85298-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85298-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 77815289E17 for ; Wed, 28 Feb 2024 15:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0FAD15CD65; Wed, 28 Feb 2024 15:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="VhUxaeXu" Received: from box.trvn.ru (box.trvn.ru [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 EA7C915B990; Wed, 28 Feb 2024 15:49:29 +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=1709135374; cv=none; b=UIJWFoa0bEJzRhaaLjlY4sQKykAutPQ6DEKUIvWBdjJD+n3y46lBsFgAVXweH+bLE4BdksY8beRq8lHjHZZz1Jc7IBQ6L0QpeRAycrF8dE6nr1X1/ZJ/yp9xpRT9BIwffbKPTGRb9I8klO+7oqD14esci7s6b8TUhUI/tR8vHjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709135374; c=relaxed/simple; bh=TXDkaVmG4OI79+ODTlB7W6xh7e9pcZZeRG8zXY6AXzw=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=ie+cRsjsouoBCaTcsL9NE4tWHjPWAqNTB/kz1dATcQqxXQt4IBUhNXsl4UdDVuM45MVdyixKpPSgdrFAsBc1uo3QZz7S9nhBiaFeIfxDR3Im5MEyOc7Uwiz3SlnQ76rUFA2bwvplPM52zJpvEPEYwgI/34tyf9JwB3wUimfFFX4= 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=VhUxaeXu; 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 17F9C401B2; Wed, 28 Feb 2024 20:49:20 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1709135361; bh=TXDkaVmG4OI79+ODTlB7W6xh7e9pcZZeRG8zXY6AXzw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VhUxaeXulzylqIHcBOnJNwY4jOYMTJXvIftsBCqCYyH6bJYpqGMkNdixEF8ywO1gd YBXJs4cXAbTUzHbceGHR7lQaNudEBrUJT0i4ObkYrLbtcDxHWusSt3gzfB5Ao2m2w6 SS32hXdQrrBzOIrfcMZV9JvV+7FTIlQIf7RwMg7TAko/xdQzOtcPG0qKy7vJSYSIhB a7eWrk3WbM+XGAZgA4diXytBhRufxWHFsLFioElwvPQlNH8FOYEXObh3vXfjFNQNJk b4Qb3rzba0t924LGfS6qCqPm7tceRPbeCial2GrvwJEfqh27O5Qdxw9kzRgzOnUUh3 ipJ4nfXO16Y7w== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Wed, 28 Feb 2024 20:49:18 +0500 From: Nikita Travkin To: Hans de Goede Cc: Sebastian Reichel , =?UTF-8?Q?Ilpo_J?= =?UTF-8?Q?=C3=A4rvinen?= , 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: X-Sender: nikita@trvn.ru Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hans de Goede писал(а) 26.02.2024 15:59: > Hi, > > +Ilpo (fellow pdx86 maintainer) > > On 2/23/24 15:32, Nikita Travkin wrote: >> Sebastian Reichel писал(а) 22.02.2024 04:41: >>> Hi, >>> >>> On Tue, Feb 20, 2024 at 04:57:13PM +0500, Nikita Travkin wrote: >>>> Acer Aspire 1 is a Snapdragon 7c based laptop. It uses an embedded >>>> controller to control the charging and battery management, as well as to >>>> perform a set of misc functions. >>>> >>>> Unfortunately, while all this functionality is implemented in ACPI, it's >>>> currently not possible to use ACPI to boot Linux on such Qualcomm >>>> devices. To allow Linux to still support the features provided by EC, >>>> this driver reimplments the relevant ACPI parts. This allows us to boot >>>> the laptop with Device Tree and retain all the features. >>>> >>>> Signed-off-by: Nikita Travkin >>>> --- >>>> drivers/power/supply/Kconfig | 14 + >>>> drivers/power/supply/Makefile | 1 + >>>> drivers/power/supply/acer-aspire1-ec.c | 453 +++++++++++++++++++++++++++++++++ >>> >>> I think this belongs into drivers/platform, as it handles all bits of >>> the EC. >>> >> >> Hm, I initially submitted it to power/supply following the c630 driver, >> but I think you're right... Though I'm not sure where in platform/ I'd >> put this driver... (+CC Hans) >> >> Seems like most of the things live in platform/x86 but there is no i.e. >> platform/arm64... >> >> Hans, (as a maintainer for most things in platform/) what do you think >> would be the best place to put this (and at least two more I'd expect) >> driver in inside platform/? And can we handle it through the >> platform-driver-x86 list? > > I guess that adding a drivers/platform/aarch64 map for this makes > sense, with some comments in the Makefile and in the Kconfig > help explaining that this is for PC/laptop style EC drivers, > which combine multiple logical functions in one, only! > > Assuming that we are only going to use this for such EC drivers, > using the platform-driver-x86 mailinglist for this makes sense > since that is where are the people are with knowledge of e.g. > userspace APIs for various typical EC functionalities. > > It might even make sense to also use: > > git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git > > As git tree for this and send pull-reqs to Linus for this > together with the other pdx86 for the same reasons. > > I would be open to that as long as this is strictly limited to > EC (like) drivers. Yes, I believe the EC are the only "boad-specific" drivers we need for the Windows-on-Arm devices as of today. I expect at least two more EC drivers to be added later. Then I will re-target this series to platform-driver-x86: - Will add a new drivers/platform/aarch64/ dir with a Makefile and Kconfig that would explicitly note it's only for EC-like drivers. Will update the "X86 PLATFORM DRIVERS" entry in MAINTAINERS. (Or should I add a new entry?) - Will add this driver there, also updating per the last Sebastian's comments. - Will also move the dt binding to a new bindings/platform/ dir. Thanks! Nikita > > Ilpo, what do you think about this ? > > Regards, > > Hans >