Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1432461pxa; Sun, 2 Aug 2020 07:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjxwdlE1sFEPLAt0hOD2AqjbkaKO8dMxVn5Zr57IQx5dRsFYfcHQtoRShqlwZN7lG4K0nz X-Received: by 2002:a05:6402:c0a:: with SMTP id co10mr12450522edb.342.1596378543764; Sun, 02 Aug 2020 07:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596378543; cv=none; d=google.com; s=arc-20160816; b=CXi1WdB0zbcA+xLjAkemIY9E17bI85NV3W8oiOqLxPV5trKUdF11+CbnFcuK2e8Nq0 TfoMbsOTkZImo/GJRZm3+epSHmQQOtlT1blak3xHnBjYbyIcVvOKMO6v2GVhcUpQC+GF KZzz5x+1mTIzhLMbR2lmbrKQuR5ZuveiQaWOPwvLJ+WSlkoVeKqtysVjmuyc/pLodYUf QSgbv/quvy0ojCvI/iA8PabN1KVlHYaVu6JMW79XyWu2I84pO4LRVup/nebXNnpTCWE/ OLJb471pZZXelsgojdxKp9peWqdBSoVxWOeIJww82wyhahxi0aRG+BrkQGKwp8t8t9C6 wycQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aqfVQY/cmuVap49XQMBv2TOFj7iWlRj1aeAvj0GFRf4=; b=nBBHijmWw/DNv17VjT1zS0pm6FtTfB7WMxWLh7mOjevDZS0geVBzGsEe6HGXbnke82 5sPQPHLEaqrulo5h7Y74/SzNFof2BGyFQQnhTryhf58WmV51n5MOqHF+baT0xsIVCCSe 7Pwczzzn5B5yf461+k9J58yBz7z63iOi73LPCLK26Z4ecdv4b9PiIPliMXzhMoJNQLhI murwchhOEg3yX1XKO5zVrMVcigjfn9BL39FPKTf8JTCt7imoT2RHolsa8ZtCJtvr3x6S 0sM+FWaLwd8/ECrYNzHNeKq9Vz2u6sHj5rKaNFeBYLcTaAdpXrWV9tBav1aydK4njN19 RFQg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si8813119eji.183.2020.08.02.07.28.42; Sun, 02 Aug 2020 07:29:03 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726460AbgHBO21 (ORCPT + 99 others); Sun, 2 Aug 2020 10:28:27 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:60200 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgHBO21 (ORCPT ); Sun, 2 Aug 2020 10:28:27 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id DF1EC1C0BD4; Sun, 2 Aug 2020 16:28:25 +0200 (CEST) Date: Sun, 2 Aug 2020 16:28:25 +0200 From: Pavel Machek To: Greg KH Cc: Qiwu Huang , sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, jiangfei1@xiaomi.com, Qiwu Huang Subject: Re: [PATCH v4 1/4] power: supply: core: add quick charge type property Message-ID: <20200802142825.GA20261@amd> References: <20200802120015.GA1289@bug> <20200802123742.GA257810@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline In-Reply-To: <20200802123742.GA257810@kroah.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2020-08-02 14:37:42, Greg KH wrote: > On Sun, Aug 02, 2020 at 02:00:15PM +0200, Pavel Machek wrote: > > On Mon 2020-07-20 13:47:14, Qiwu Huang wrote: > > > From: Qiwu Huang > > >=20 > > > Reports the kind of quick charge type based on > > > different adapter power. > > >=20 > > > Signed-off-by: Qiwu Huang > > > --- > > > Documentation/ABI/testing/sysfs-class-power | 21 +++++++++++++++++++= ++ > > > drivers/power/supply/power_supply_sysfs.c | 1 + > > > include/linux/power_supply.h | 10 ++++++++++ > > > 3 files changed, 32 insertions(+) > > >=20 > > > diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentat= ion/ABI/testing/sysfs-class-power > > > index 216d61a22f1e..dd3773dcf16a 100644 > > > --- a/Documentation/ABI/testing/sysfs-class-power > > > +++ b/Documentation/ABI/testing/sysfs-class-power > > > @@ -708,3 +708,24 @@ Description: > > > =20 > > > Access: Read > > > Valid values: 1-31 > > > + > > > +What: /sys/class/power_supply//quick_charge_type > > > +Date: Jul 2020 > > > +Contact: Fei Jiang > > > + Description: > > > + Reports the kind of quick charge type based on different adapter p= ower. > > > + Different quick charge type represent different charging power. > > > + QUICK_CHARGE_NORMAL : Charging Power <=3D 10W > > > + QUICK_CHARGE_FAST : 10W < Charging Power <=3D 20W > > > + QUICK_CHARGE_FLASH : 20W < Charging Power <=3D 30W > > > + QUICK_CHARGE_TURBE : 30W < Charging Power <=3D 50W > > > + QUICK_CHARGE_SUPER : Charging Power > 50W > > > + > > > + Access: Read-Only > > > + Valid values: > > > + 0: QUICK_CHARGE_NORMAL, > > > + 1: QUICK_CHARGE_FAST, > > > + 2: QUICK_CHARGE_FLASH, > > > + 3: QUICK_CHARGE_TURBE, > > > + 4: QUICK_CHARGE_SUPER. > >=20 > > NAK. > >=20 > > Just expose value in watts or something... People are talking about > 1= 00W charging, no > > need to go with fast/turbe/super/hyper/nonsense. > >=20 > > BTW fast charge is already "well defined", and what you call Normal is = usually fast charge. >=20 > I think these names come from the Qi charging spec, right? So lets use > what is given to us. There are other standards, and this should better be generic. Simply expose value in watts. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --2fHTh5uZTiUOsy+g Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl8mzYkACgkQMOfwapXb+vLHmwCfe58sH+wQnjUwSoQDY71diLxA W1gAnjcLHsCbfBEBb8DBVMKF+jM8H2MM =GuP/ -----END PGP SIGNATURE----- --2fHTh5uZTiUOsy+g--