Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1480570pxb; Sun, 17 Jan 2021 10:23:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbg4TmTvhVDLSL+YBeS13jcZ+EyrEmZ70tUG5jPp5UDSB7Yz6niA+hV7XcweajgvgYXoH0 X-Received: by 2002:aa7:c94a:: with SMTP id h10mr16713892edt.247.1610907801071; Sun, 17 Jan 2021 10:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610907801; cv=none; d=google.com; s=arc-20160816; b=PkF93/YbL7LdB+pu3OnZWQqW6+vMDRkyaTKB30GlgpoTfTbaceizAZ6QjfBGHXjxGb 7wmreeB61iULDyNY2CHUOqFBuQhzc8Z1gUxtUSN8a1WIWaFnHqyxGi5GVf+S3OQ1YP63 nd3NhJ6zJ/n4rpQ090tBl6gT7r2yRGtTNvN+X4aJ9n+T52BBUvme7XexiKHxo1bVdsWw X919wfBsdET4DA5lfQMUky/h+yVP/DAeE8BZgCa1sa1+Z3GEE3tqZyEG4xeviwtGTwlW +XzdKDAAgIwCoKB24DE9ytIs6i8HIVGcZOHXZo1ia4odtW3omeqo9HqgZj6DCC4ib/Vf FBDg== 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=GExbYXYzoN2bFW2pCf5dOVfhMZLCiR3UWGR3g+44Kvg=; b=FFFZFxMEat8b3MZPoIiMBRF3D6hCfZQocmBH8mtIrW+vYjFJWteVmWV4kPgXY92d63 2Oj3j16gC6WfbR/Qo2HoJMif6UOfpPUo70+3QAwfDpUQV067HgVKZTEiKJao7qfRRuGz bOZMIMGpaI6Hp087ZiWidNsd0UmeUIfJernVeB2h5eoqjHtCDAkXTP9AgqGHZilMvybo gK8GmtbijjPmfezt4PfZohZEICs30+B4JcfPMWIb0wOKMn50tfhwvoTCTeAWOuY3Sfko ohsQTsdjaUoZ2mYAOiFH5jb6GqtDVyEql2X+RUOb0mhhG6FSC4YgJWeecfx4ogvAJ2Ff Tvqw== 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 mb25si201522ejb.563.2021.01.17.10.22.57; Sun, 17 Jan 2021 10:23:21 -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 S1729556AbhAQSWE (ORCPT + 99 others); Sun, 17 Jan 2021 13:22:04 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59442 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729315AbhAQSWC (ORCPT ); Sun, 17 Jan 2021 13:22:02 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 96E761F44A51 Received: by earth.universe (Postfix, from userid 1000) id BC9953C0C95; Sun, 17 Jan 2021 19:21:17 +0100 (CET) Date: Sun, 17 Jan 2021 19:21:17 +0100 From: Sebastian Reichel To: Martin Mokrejs Cc: Randy Dunlap , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Greg Kroah-Hartman , nicolassaenzj@gmail.com, Nicolas Saenz Julienne , "Rafael J . Wysocki" Subject: Re: [PATCH] power: supply: fix sbs-charger build, needs REGMAP_I2C Message-ID: <20210117182117.ewq2e6ce2c5p2mdz@earth.universe> References: <20210116211310.19232-1-rdunlap@infradead.org> <537de36b-6709-3e58-5610-9f54e2bee8a9@fold.natur.cuni.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zzpialt2nuswu7ld" Content-Disposition: inline In-Reply-To: <537de36b-6709-3e58-5610-9f54e2bee8a9@fold.natur.cuni.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zzpialt2nuswu7ld Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sun, Jan 17, 2021 at 10:48:44AM +0100, Martin Mokrejs wrote: > Hi Randy, > thank you very much. I would not mind dropping my name but I tested the= patch > now with 5.4.89 so you may actually also add >=20 > Tested-by: Martin Mokrejs >=20 > It also happened with 5.10.7, it is probably obvious. >=20 > Thank you for quick action. > Martin >=20 > On 16/01/2021 22:13, Randy Dunlap wrote: > > CHARGER_SBS should select REGMAP_I2C since it uses API(s) that are > > provided by that Kconfig symbol. > >=20 > > Fixes these errors: > >=20 > > ../drivers/power/supply/sbs-charger.c:149:21: error: variable =E2=80=98= sbs_regmap=E2=80=99 has initializer but incomplete type > > static const struct regmap_config sbs_regmap =3D { > > ../drivers/power/supply/sbs-charger.c:150:3: error: =E2=80=98const stru= ct regmap_config=E2=80=99 has no member named =E2=80=98reg_bits=E2=80=99 > > .reg_bits =3D 8, > > ../drivers/power/supply/sbs-charger.c:155:23: error: =E2=80=98REGMAP_EN= DIAN_LITTLE=E2=80=99 undeclared here (not in a function) > > .val_format_endian =3D REGMAP_ENDIAN_LITTLE, /* since based on SMBus = */ > > ../drivers/power/supply/sbs-charger.c: In function =E2=80=98sbs_probe= =E2=80=99: > > ../drivers/power/supply/sbs-charger.c:183:17: error: implicit declarati= on of function =E2=80=98devm_regmap_init_i2c=E2=80=99; did you mean =E2=80= =98devm_request_irq=E2=80=99? [-Werror=3Dimplicit-function-declaration] > > chip->regmap =3D devm_regmap_init_i2c(client, &sbs_regmap); > > ../drivers/power/supply/sbs-charger.c: At top level: > > ../drivers/power/supply/sbs-charger.c:149:35: error: storage size of = =E2=80=98sbs_regmap=E2=80=99 isn=E2=80=99t known > > static const struct regmap_config sbs_regmap =3D { > >=20 > > Fixes: feb583e37f8a ("power: supply: add sbs-charger driver") > > Signed-off-by: Randy Dunlap > > Cc: Sebastian Reichel > > Cc: linux-pm@vger.kernel.org > > Cc: Martin Mokrejs > > Cc: Greg Kroah-Hartman > > Cc: nicolassaenzj@gmail.com > > Cc: Nicolas Saenz Julienne > > Cc: Rafael J. Wysocki > > --- > > Martin, do you want Reported-by: on this? Thanks, queued. I added Reported-by and Tested-by from Martin. -- Sebastian > >=20 > > drivers/power/supply/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > --- linux-next-20210115.orig/drivers/power/supply/Kconfig > > +++ linux-next-20210115/drivers/power/supply/Kconfig > > @@ -229,6 +229,7 @@ config BATTERY_SBS > > config CHARGER_SBS > > tristate "SBS Compliant charger" > > depends on I2C > > + select REGMAP_I2C > > help > > Say Y to include support for SBS compliant battery chargers. > > =20 > >=20 >=20 --zzpialt2nuswu7ld Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmAEgBcACgkQ2O7X88g7 +prWyBAAoxtPZN6DuY6SHm6D8CnY7c7aVcpUum3Ipc3dLD1HOKOc2t+qo2dtMBbX WJALYV/QhsBmOChnNNd9962fOhxlU8mpBftAO6FONjCJnupRdG5cTqacJBcUv8R2 UZb6ABAmFkjScRUoGXR7OcBirzCbwNh9/e0sIxu4JrCAA9qtXuFCQt4/lAtWVSiT m582qGLMDEH9cbrmlITgAmDPgzXZHQJugCAA0zt1kFbd5d7XfZCHXW50lAvNb+Bw MvApWZEK0hD1YrGcYOLwz8CMHoiDUYZm+3LC0n4gZoZxVc9ey/84pr0PnI0b9Ttr K346KBMnArUpBATUG3OloCdfGc744anNe+FA5DbpYZc0YeZJ9QJ8nHe8H/bzsSFW RxzeWwejrfj2jE5f+avln0Cuup+5uzt7XUh/xV4tTU/PjhUfdDBiU+k3ai/9r2ql qtAP5vi1BOov7unk6HOZmtCHRTzIhDtyRM7/hXt9ktKXnfU/WJDGzRomSJR0clfT yTFROIEBCAiE9czAogHnD8h8IL7lVAoIzmZNCsI4nwiL/9csYm9LtUwHNZwhIg0x ZHKuWpFqHF0zT23kofOTiZyfIeXWnx9jlwHP12s3672K+Ks2ZDp95uVZXK0d0uDJ ZsmM+MlPwqw4JUhssPZE1rsjZrjxipY9LosE3ziM29byjak4GUc= =4asC -----END PGP SIGNATURE----- --zzpialt2nuswu7ld--