Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp899624pxu; Wed, 6 Jan 2021 07:19:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyphepnT/20xgJAZIi2nuvQvGd99hDZbevS5Jb2zAd8WFdVm699BZqGwqkxbQxCBSD3OHg X-Received: by 2002:a17:907:6e9:: with SMTP id yh9mr3152790ejb.131.1609946368667; Wed, 06 Jan 2021 07:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609946368; cv=none; d=google.com; s=arc-20160816; b=XycdeHjs2RTFemSDmkOTWIFKP3wL1uxYXdu7qiv2vuIe0FJG7XWrHp54aX0lo0t11t SjCttvZx5EsKqXZIBPJ90+8Yk2pG1ztE8taRbtwbxb/Uv5n46POUaYcbe2+Nw2S4uojV GPy/wpiQTiJ8qoygh0hyFCbybqRbKZYKdKE2p7GpeQe6879CVe0eRoLdQHZeyIwE7kvD UG+xtrQhBLOqExLM7yCkoM7DMgxECPCKXTdZrTCCIdI8Py37k6SHb4bV7tR9QJ0ZiX4p a+yeZWPsUNgJrU+RzVmwkvvtWYd2DWVr1QIPWI4qei0f2AtHJr+RhoKznI65q3p6TjoT bwtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DHyebudI7kwJMist7eum50X7AemX8Gku7OeiJTIF9eQ=; b=b/4+r5RSAw3SXokIFwcOkphc+nAhjJKUm/KxjlGVmLSjNfVPFZOQk0hxn3yWM5FCfb FT+fd3ZYX6mCyMXLJTiWeML8J6Rr1+CSEbKJSMRbtU+68SD+lZIOXynVNzbQy2ShTvNw caFNEdXQJ6kRY986sDUl0lC7ajdue+dr3GjmmRhVCYw/72TzKdQXPnO431NpZ6LzA5gN cr1t5pKgFrg7uvKZsmL6ZauFh94e7M++zkvrwsg4PYzpH/MPA0sCJ34KxpZYttfkRt2O fxiOhsna/5cvRMDfN5UiHqdaS8lnw9PSuI8nucPzrIqWXv3+MeIsm1z4X2hGrlfRXnfc eHeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc30si973499ejc.139.2021.01.06.07.19.04; Wed, 06 Jan 2021 07:19:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbhAFPR3 (ORCPT + 99 others); Wed, 6 Jan 2021 10:17:29 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57440 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbhAFPR3 (ORCPT ); Wed, 6 Jan 2021 10:17:29 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id B72CE1F45F97 Received: by earth.universe (Postfix, from userid 1000) id B15903C0C94; Wed, 6 Jan 2021 16:16:44 +0100 (CET) Date: Wed, 6 Jan 2021 16:16:44 +0100 From: Sebastian Reichel To: Mike Looijmans Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] power/supply: Add ltc4162-l-charger Message-ID: <20210106151644.jyfpjvazof565mhk@earth.universe> References: <20210106075557.21626-1-mike.looijmans@topic.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hfiybnxhmy47yu46" Content-Disposition: inline In-Reply-To: <20210106075557.21626-1-mike.looijmans@topic.nl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hfiybnxhmy47yu46 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Jan 06, 2021 at 08:55:57AM +0100, Mike Looijmans wrote: > Add support for the LTC4162-L Li-Ion battery charger. The driver allows > reading back telemetry and to set some charging options like the input > current limit. >=20 > Signed-off-by: Mike Looijmans > --- > v2: Use microohm units instead of milliohm > Add interrupt support using smbalert > Support obtaining cell-count from devicetree > v3: Fix overflows in calculations involving resistor values > v4: Use attr_grp member to register attributes > Report input current/voltage for charger and make battery > voltage and current into sysfs attributes Fine with me until we have a better way to solve the problem. IIUIC you no longer have access to the hardware anyways? But you need to document the custom sysfs nodes: Please document them in the following file: Documentation/ABI/testing/sysfs-class-power-ltc4162l [...] > +static int ltc4162l_remove(struct i2c_client *client) > +{ > + struct ltc4162l_info *info =3D i2c_get_clientdata(client); > + > + sysfs_remove_group(&info->charger->dev.kobj, <c4162l_attr_group); > + > + return 0; > +} power-supply core automatically removes the sysfs groups specified in power_supply_config.attr_grp. -- Sebastian --hfiybnxhmy47yu46 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl/11E8ACgkQ2O7X88g7 +prrYA/+NKYgvnBnp5yVsziQU46pWKi53aA/+HGiAiNJmHVnBNQGxsIyR9KAlaHM RYZWquQH3HNu0OllXTLRtG7zxtEp17c/NMBHdxIKIz8Ovg22yV6jgDtZ8/lzF+tX YviiKYf4y7q7QqAsoxt8TXgHPawJ4M+VB7vEDycH1MInGCHDTsvkkENOBRQqsODI R9kvL+dhEGRu8cg/Ei+CBkeoQRU6LOp0+unYPa2e3oN2RV7bXKxgbBtZiCEOKAm8 OByzQXq/Wt9RDDUV1Qv60GtFkN6TW3GU0lKFajTM3I1CNmS600c+o2GZcaB6HFGM YZfk79dlZ1Uw+RlL6QndBX8KlYDjbWmwGGfh7uaBMlAsdGAm45IvTsnY0SQQREgK Uo7ALqa3SnNzXUHqiDO/EwRYiAFXrDJO7sQWvR+SEqxshf4LElc29aB/3wh1IVrs V9GXw3n/h8lkm0u2hOkPv3ki4JXz5UaA8ytQPXB87NNUslXZ8He23HWqJebIvKRK yoTFwmX2DVMX9Cg0Ric6aUwbKafQLYgkb7MUEc1c84vwONf0hbShzM5or7OwmSv9 9Ly9CHi97U73gd300NWLtkj/XmoGeTVOFZNcaY0402WWYiARwUeWHadMdzY6t5K9 2YHYYE3oXIEMyJ7a8djnX/jcRcUq0JRFdOtcFXf1XHvngPjw8Ag= =c9KA -----END PGP SIGNATURE----- --hfiybnxhmy47yu46--