Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2856066pxa; Tue, 25 Aug 2020 05:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAdWxjYvpM1IRhugvxE3heHOzQ6wvpWHTvLf2RnJAhCISvq9U8htqyi54ksOOqP6SZfgIz X-Received: by 2002:a17:906:f84b:: with SMTP id ks11mr6450605ejb.264.1598358259589; Tue, 25 Aug 2020 05:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598358259; cv=none; d=google.com; s=arc-20160816; b=fU6zoEs7/gVazwkRkkwJrVSjptyHV3ZMX3sukm+DxEYksaveod+DBQjSVv8dxwwmjh UBDjHOgo3ULdgdf1KBpaoHbQuMSOzswxQGWIxrdN5DjMgh4eKkCrpLfoutsRTnmDpYXM keT4GUDOfZpg67g3m2A9pevxhJWMBxNsm/Fqm93MagRaG9mkOL3eujfe/lfSG1rUxskF Qf0Ul5xB08CSLSeAbCNsOgPTfOUfRnHJLGHSqAdlAUs0TxccRqpn8KV4PJN4R4RyXWyn xxcf14D4NvzKp5xtNddvwMQu/sIT+GuwUbzo52XsTdjA6oLdFY9Puu9jOQ0UoBS66LlM hJLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HGcOqNhZLhnAwiVvDmN/ctXcgXqADodUT+Mo4Ml8vjI=; b=0ZtZUQDVus7BXiIzeqE6EdR5yYuzYxPQSyuJlpEVWz0bgHPg2nAfRwN5lcKYkErbI4 kkIcFaVC7CKcJvgDl772zbiyw5PXT8zthBEQbo2GdgsO9WbMMigI+61STigOPmrZZ+0m 1U04fRuWi0gsWkcpYPj0YGT/BKrzVKWiWnnj0eOTRv1vHXN0wuPBqI5yqj5ivXMYH0pY 4DUy9UZBOdc+z7Ap6bInmDg/0jwRp2GwjojyQ0qT2RDM8kzRtLkV5kYjSw2OybIEU0eO 9Tm9mH3q76rBtzFGurGBv7NnFi9Cv0uAagaA+MurwaKqAikrT5SQQ8jFXV+49/JG2SN3 oSDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IuopKSXi; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si6671434ejb.407.2020.08.25.05.23.56; Tue, 25 Aug 2020 05:24:19 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IuopKSXi; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729794AbgHYKSe (ORCPT + 99 others); Tue, 25 Aug 2020 06:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729253AbgHYKSZ (ORCPT ); Tue, 25 Aug 2020 06:18:25 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C515CC061574; Tue, 25 Aug 2020 03:18:24 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id k18so6961182pfp.7; Tue, 25 Aug 2020 03:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HGcOqNhZLhnAwiVvDmN/ctXcgXqADodUT+Mo4Ml8vjI=; b=IuopKSXiM81mdVx2zqo1INWZi4EBaHhGIClt8zZMDCtmf3Gx6wOkxUZl6CE8sh7zZj 0qJrlRmAAlMrfZMkmW+Vsk6R8PnPMg+c6eKhh9hsphZa1+SKvbrmOs4qFqlw0cuV6sIA 9GfSzRGrPU2Kg2JtmFgCjAGaNtatM6iUgK+l9cUkSXFhHcpDtNWTaacwI9K739paB5Go RbOn/3CHi+ZERlRw7lDC9mWDLbNrVrtJuvj3wcigtgQCQ8ntR23B19TzNoVmUfCqdilk 1ua9Ez3ihTGK4q8GcFxr84nT3vWnDHh5n1fxN4OYxPMfnViIsq6GAkZPYRsNfDWyv0ws csWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HGcOqNhZLhnAwiVvDmN/ctXcgXqADodUT+Mo4Ml8vjI=; b=WFOenVruYhSAMxuuBVKgxwBnBBnKCAv7szsPIXvqjUqSbTmGfkHFDwEH3mGpqi6PZ6 u7N1RFL1kXoeYoyMGOXim9XrVpQ/z7KigMrgp5wEHKTH8VNiKLfdMRzrwkfNYR5MfGSc YEZXA3tMEPUYBMLB+xgvndMHB7u7g0ZaWB7wGd2vjZ1hBnjEbRdpO5zRHXIGYE43bTid cBNU6yi7+HOL7SbZOKbRIPFKsMfOLEKZvrxo3dvBftW+CccU0pzjVHJnnMbghDyuIDrK 0TLkggrBbSN0GzQUJTmWjz6QrYXFzJF5PU1HyMilXSsSQf0AtlfEfK5O3vfnb9gFIVR/ 9dBw== X-Gm-Message-State: AOAM5309jqk2E7AGnhasH9uOxzME0Uk+2IkYwG1+oSdfyHoa+MBqz7mS 5Zt83xKyLlgGmsRKxW9I3mQ= X-Received: by 2002:aa7:9427:: with SMTP id y7mr7379937pfo.12.1598350703143; Tue, 25 Aug 2020 03:18:23 -0700 (PDT) Received: from xiaomi.mioffice.cn ([43.224.245.179]) by smtp.gmail.com with ESMTPSA id 19sm1788911pjk.28.2020.08.25.03.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 03:18:22 -0700 (PDT) From: Qiwu Huang To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, Qiwu Huang Subject: [PATCH v10 0/4] add some power supply properties about wireless/wired charging Date: Tue, 25 Aug 2020 18:16:13 +0800 Message-Id: X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qiwu Huang This patchset aims to provide power supply properties about wireless/wired charging. "quick_charge_type" reports different types of quick charge based on the charging power; "tx_adapter" shows" the type of wireless charging adapter; "signal_strength" shows the coupling level between TX and RX; "reverse_chg_mode" provides the interface of enabling/disabling wireless reverse charging. Changes in V10 - Fix build error on linus/master v5.9-rc2 next-20200824 Reported-by: kernel test robot - Fix build error on power-supply/for-next Reported-by: kernel test robot Changes in v9 - Set bat_imax When get quick charger type Changes in v8 - Add quick charge type driver in qcom_smbb suggested by GregKH Changes in v7 - Fix PATCH version error in 0/X email Changes in v6 - Replace "phones" with "devices" suggested by GregKH - Add permission statement for "reverse_chg_mode" - Update description for "reverse_chg_mode" in ABI suggested by GregKH - Update description for "PING phase" in ABI suggested by GregKH Changes in v5 - Add details in 0/X email Changes in v4 - Exclude the patch of "power: supply: supply battery soc with decimal form" - Fix some typo Changes in v3 - Add enumederated for quick charge type - Add enumederated for tx adapter type - Update the return type and description in ABI Changes in v2 - modify to capital letters for "power_supply_attrs" - Update the return type and description in ABI Qiwu Huang (4): power: supply: core: add quick charge type property power: supply: core: add wireless charger adapter type property power: supply: core: add wireless signal strength property power: supply: core: property to control reverse charge Documentation/ABI/testing/sysfs-class-power | 85 +++++++++++++++++++++ drivers/power/supply/power_supply_sysfs.c | 4 + drivers/power/supply/qcom_smbb.c | 81 +++++++++++++++++++- include/linux/power_supply.h | 35 +++++++++ 4 files changed, 204 insertions(+), 1 deletion(-) base-commit: 6a9dc5fd6170d0a41c8a14eb19e63d94bea5705a -- 2.28.0