Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1356816pxa; Sun, 2 Aug 2020 05:01:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNaprv6y7qUELcp4IaDofUWzpoga74KuKQ35wVRRof03jMXrOGv3uKag8R+Ty0GtRsaU2T X-Received: by 2002:a05:6402:31a3:: with SMTP id dj3mr11657265edb.73.1596369682964; Sun, 02 Aug 2020 05:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596369682; cv=none; d=google.com; s=arc-20160816; b=LjXrOWyG8AvRln4C4mcHPqXIrc1T+zDrH18ZeGCfGpc7UCjSxG1fxxnZ2IzXnmQQHS xltcQ7b5ygPQ3u+ViIeHsMHkxGBbpnclE0K1N+ug5oqRK9xjZ1p0ZKzA+HYA+BjRX0JI 7V9dXYpUqWXBDicveyLGRYJgA3HaDTt7TPIdGOnghOqOwL5cD9LMgL2bKfmJ6JdCOumk 7i4n9ymv3RWovtgd0ywNdvYmE/4txI0mhKFS751CdOMM6iDD4Oy5fZvZ1H3lrrlvVFzm /83Rjy32eYjyxuoV77zg1go7YfL2PRdUfpHhoSQWOEn1e4yh7N6yvaKSYBZzTrdQ+BOk xDRg== 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=08fmSeTPc9g7djwJicwasDLtKcUk6auMf6Om4ALZHwU=; b=l/V0noQ+QTIb5FA2HbahaxnpXPGOlfSnTinqHrgOw2o8KBXKp47q8FzEuVmT/m7EfT b0hQGGz3yA5UxE65d4o/6IR7ml3xrNL98S+nMo3ykMB95YQQLqACn/jd3FALqqZf334r 8f9qIBbBI17dlFTIk/q0KmkPFAKokVfnuUZASUfqHe9yMBpLybhYblNY7mDbtX9djPJq aIG/FKsRSSLf/Uo7xBeSwmmWuxEVtS//nxKYrHZJpAawhv6bMT/iTniJ+QjrDOROK3Dp 4cwJUdlJCz3WhNYl+HtzPlq7XHTYyRrzH/9+NWQAv2yItmoBjVApxBDmjiL3trNlJB4A aIlg== 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 q1si9369391edn.222.2020.08.02.05.01.00; Sun, 02 Aug 2020 05:01:22 -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 S1728043AbgHBMA1 (ORCPT + 99 others); Sun, 2 Aug 2020 08:00:27 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:51402 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbgHBMA1 (ORCPT ); Sun, 2 Aug 2020 08:00:27 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 7601C1C0BDD; Sun, 2 Aug 2020 14:00:23 +0200 (CEST) Date: Sun, 2 Aug 2020 14:00:15 +0200 From: Pavel Machek To: Qiwu Huang Cc: sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, jiangfei1@xiaomi.com, Qiwu Huang Subject: Re: [PATCH v4 1/4] power: supply: core: add quick charge type property Message-ID: <20200802120015.GA1289@bug> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Mon 2020-07-20 13:47:14, Qiwu Huang wrote: > From: Qiwu Huang > > Reports the kind of quick charge type based on > different adapter power. > > 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(+) > > diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/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: > > 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 power. > + Different quick charge type represent different charging power. > + QUICK_CHARGE_NORMAL : Charging Power <= 10W > + QUICK_CHARGE_FAST : 10W < Charging Power <= 20W > + QUICK_CHARGE_FLASH : 20W < Charging Power <= 30W > + QUICK_CHARGE_TURBE : 30W < Charging Power <= 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. NAK. Just expose value in watts or something... People are talking about > 100W charging, no need to go with fast/turbe/super/hyper/nonsense. BTW fast charge is already "well defined", and what you call Normal is usually fast charge. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html