Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp711836lqs; Fri, 14 Jun 2024 03:36:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUK+MYMXf3SCHPxq5Zu0OYu7AldJI8/NkoVLkbfckVa7LYAW1ISZapC/mGFHXxH/849g0nohAcvP+MakuNnfj/Xd9reC86vSpDg0LvAEQ== X-Google-Smtp-Source: AGHT+IFVLl9QvNHm+juFASa07rU8iciZAk6Rv+H6pFANSDPT8iQ0WmfJ/i1dBOT7yoiWmvXIvtgR X-Received: by 2002:a17:902:c40d:b0:1f6:f05:3189 with SMTP id d9443c01a7336-1f8627d0c17mr29821795ad.40.1718361382725; Fri, 14 Jun 2024 03:36:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718361382; cv=pass; d=google.com; s=arc-20160816; b=F9to+CsfpRV6jZ2PsSq/vSowP1DIEoq+rrPRbq3h3gTRNpXGUDU+NOGJHFCyMQmX8f TCwMLIuPQkr8bmTOgCIcqepmzrEkMxYGWWYLiJVGftIoATIQZ068EMTdMdEOiHmO5FMA 6oEgXEQpxFNJMfividCG9NUTH02xuKdFHHmZ2laKjjMC/r+qhRKoNN0UJagP/sX+eH4v fQR86X+h0sOFMO+5nnNBc11WRl4y9I/KJdLwVqltJCdGcQivw4BZ7574BUldVCDG0duk jl8bki2PgkayetsqxLbJUqEh3YU3p6jiUj1b+PvfcqW7MqQi9DQYXxwtf39hmLR9N11I N0EA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=efnhjpqQgsmtdaUVLcqkEj44nSpt4V5RfvjPWerlFZk=; fh=oxTtLwH/GGu7EzdqlJarspoBSnt3Nq7ikjXPozthZxw=; b=bOXs/jNH0YE+zTKjfAtad74CcP/DXnPc6pMEpMMO2COc5HF/qBhgPAuSZMkNqtXw4R erKlS8hKbBkg/Zd3uCFUEaIuaPzBqOpJQ2sj63+QfzCnrWZ1zznthfnWzAB6u225DooU P6E61K1+2QAxZwZyTtfwAZO+qu3OzHH+/7oaLQmXWjZiO6M2ROznkik4vK+Tcj+xjPZX sry+l9HjYnfbx+p/JlQn97kiKOL5jNs57BeARr1N6ykTpa5hgZVn5KdNDXlkNgJ9d1Hu PyEjjFIJJEXtqkbr0c0w1KQE3//0E2lyHowrF+m8nxIqOoB/kuOJ44V1yoEeqr9A7ByJ 3/TQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZVZqrN1b; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-214763-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f855e53ff8si4102765ad.180.2024.06.14.03.36.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 03:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214763-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=@linaro.org header.s=google header.b=ZVZqrN1b; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-214763-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 CDE5428CA3D for ; Fri, 14 Jun 2024 10:25:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12E77193067; Fri, 14 Jun 2024 10:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZVZqrN1b" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 C02A0194136 for ; Fri, 14 Jun 2024 10:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718360695; cv=none; b=YkK3agGXHdUnHEe6F6UKA/xrbVGy5Hh+GSoyJE+mFDV1Kw+Ip5XirVAdyIyRuv5Tu9xkoSmytmI7/OvDIYnOyS9DHQMmuuQ/DaS40k+/3pWI2ffmpM1Kzo+PxVmEKHz3QkBq+eDev6wfBqKTMj2vQpxwEUaIlZNpSTTQk1fRb0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718360695; c=relaxed/simple; bh=ZuwSgi9zLIoNZp877URK5FteNaoBqxpCKd2FeYdrG38=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qFfuDeE6JDJazSWw7E5uTABDXxkKJQiPscMmsEDPKJL3h3NDreeAU0acaVvGzZBpgH1yqYrHg5u8ofWVkwNKhaKHB4O0NBjtUOpNNVczz8UmfoEAM4QWXy7JeUkSGNQ36KKCDR32tuCGMRo5WxtZgkX/FJmBXTXj2BgfrxAWPsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZVZqrN1b; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52c8c0d73d3so2224113e87.1 for ; Fri, 14 Jun 2024 03:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718360691; x=1718965491; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=efnhjpqQgsmtdaUVLcqkEj44nSpt4V5RfvjPWerlFZk=; b=ZVZqrN1bcVkscnqRfkObQYXi2bS6sEMRFe0GFJamipcs+6ukeqxE86Hgc/RVZfOKa/ ZCv4KAN3DAJwAH+Zigx4dimz5aDoBUIhFlkzXZWcZ1zCypnt10DmANYns33SxLm4omOg eiCEMrgV1MHxZvbMcZ9li2buyyvPzmR+4NYXV0z+UVGCFK7hvImpwiSj0SCboHZ5wpTo idF2fQyVdX4wiliiqvet9M+WVQX204+OcpE4EZW/hYEPnoUpwAd2wnJ5yNCjhVK5t8nj V+x9FxyJDLpCvhEQ/iRZmKTYpU4S4ralN62CFSp6uZHs9olw4kfJvGfuZ098ZVF4D0ac zm/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718360691; x=1718965491; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=efnhjpqQgsmtdaUVLcqkEj44nSpt4V5RfvjPWerlFZk=; b=lV+2OApxe7QLapeTiL4QNv/vD6XKYGKHzQ052UduwE64lXcY6d7yL6WRbjt6KibIlb QFIgcFrx6VKEt/j2a86ruIQTjghWs4wZiQM+U4XJdziWVqt3i3R1FUgk3d+RASOoWGsr pQhAxwb3NWX+LJsCcGcSRC46484+eDbvbD3Gg2edtT4uFmu3fC+zlgiWtTzVYKnn5Uch aL4zAFMkxNuYcyg3V69Cyj2ohMY2vWt4Y26v/+NRcOR+vAYgDclOZXrVM3gDl1KtMX3/ jSEALVY8eum5N6uloqk7AGmsy8eWXgGK/QVd+vUXkobQ/BA/mvE6Lf5Ri+BtioAMSlCD 9Xag== X-Forwarded-Encrypted: i=1; AJvYcCWta7G47zRUzqq/U8qeHvZVGZ6MsooBJUtzEXj8dYZRPwXbJCVkfoD7qUb2l/T6GVp6x3v0DDvcUFnMqwvZRnd4ZSz8s2VE9+4LNExf X-Gm-Message-State: AOJu0Yx2OT3cAxHKqI8VUYDHDlWZFDPszjGjUgoGld+sxTEpT5y95jbG S+BTWIkxY0LOSrY/4E50FbScuuqrh1FvPdaxh0Q3kUpfGsZl+gb353myzDAec34= X-Received: by 2002:a19:914d:0:b0:52c:8a4e:f4bf with SMTP id 2adb3069b0e04-52ca6e90db1mr1229088e87.51.1718360690961; Fri, 14 Jun 2024 03:24:50 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyybrhy-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::b8c]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca886e23asm168540e87.270.2024.06.14.03.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 03:24:50 -0700 (PDT) Date: Fri, 14 Jun 2024 13:24:49 +0300 From: Dmitry Baryshkov To: Sebastian Reichel Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Hans de Goede , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Bryan O'Donoghue , Heikki Krogerus , Greg Kroah-Hartman , Konrad Dybcio , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, Nikita Travkin Subject: Re: [PATCH v6 4/6] power: supply: lenovo_yoga_c630_battery: add Lenovo C630 driver Message-ID: References: <20240612-yoga-ec-driver-v6-0-8e76ba060439@linaro.org> <20240612-yoga-ec-driver-v6-4-8e76ba060439@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jun 14, 2024 at 03:35:25AM GMT, Sebastian Reichel wrote: > Hi, > > On Wed, Jun 12, 2024 at 12:59:35PM GMT, Dmitry Baryshkov wrote: > > On the Lenovo Yoga C630 WOS laptop the EC provides access to the adapter > > and battery status. Add the driver to read power supply status on the > > laptop. > > > > Signed-off-by: Dmitry Baryshkov > > --- > > drivers/power/supply/Kconfig | 9 + > > drivers/power/supply/Makefile | 1 + > > drivers/power/supply/lenovo_yoga_c630_battery.c | 500 ++++++++++++++++++++++++ > > 3 files changed, 510 insertions(+) > > > > diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig > > index 3e31375491d5..55ab8e90747d 100644 > > --- a/drivers/power/supply/Kconfig > > +++ b/drivers/power/supply/Kconfig > > @@ -167,6 +167,15 @@ config BATTERY_LEGO_EV3 > > help > > Say Y here to enable support for the LEGO MINDSTORMS EV3 battery. > > > > +config BATTERY_LENOVO_YOGA_C630 > > + tristate "Lenovo Yoga C630 battery" > > + depends on OF && EC_LENOVO_YOGA_C630 > > The driver should no longer depend on OF. Otherwise LGTM. > Thanks for reworking it. Ack, I'll post a fixed version once Ilpo announces an immutable branch. -- With best wishes Dmitry