Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp635051ybh; Tue, 21 Jul 2020 04:18:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHDaHY6SzSnm3i3wCoVmFV6YME3IS+i9a2C8sn2aPKl2pUn51p30QRyPA3wGSnhVOmO7j2 X-Received: by 2002:a17:906:84ef:: with SMTP id zp15mr24764732ejb.3.1595330310790; Tue, 21 Jul 2020 04:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595330310; cv=none; d=google.com; s=arc-20160816; b=D5rWUqf4i1TN0hR/OHPXLpX9D0QU2hkfcr4pK97gZaPXlLsiAagBnpSwtknOAvdg49 zKXaxMnmO4LE1QsJJJuBe6oIQ2VR5Ab/NvOmhADoOWnPMGkpzhe+HxwvrlRoKuldujbO BHGAvDrPmwl7cUfSwHB+0w6bEQp6M3epAVoIygc5UqR9XopJMKLM5ACnZSK55KfE5WDU xbPAD+jBnnqoaifA9VPK8dV6063ZhNsWtHU7lN1BV8Piuewyz84GNKmVo3yz2naKSv7V vo5fQa8hBywDXQ9Z79NtIcryEUPRT3jN9lUBQIZ7XWcKKiJMuUZTSYJLkwzQa46FlNY6 oEtg== 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=Y1sUu7IRkmKxX3OgEjjqPHVwVLT2AAnTvOPxWUsKTqw=; b=ZB3wk5MWB71uvxD5m+9dPSILSPr6xQu7w8Luo3pGXIL2/g9gIBQxXtXufBzbkngpHN j5xvL4wtDhWnSZPHYh3VtXdQbnEYrdbRM8+FnV9ZZp6k3MVqDNpPUjGZv5gEvcSG8sBg CM/pYpdZnQo7qcZgZFvxp+9OJQt2OHC5VtN0xc3XfCD8Lb7wAsx5+A4TXxYHsk309vIa MskBATlHc+Wh48LyW6qCpxXiaXHSND/DXK5Q3HDGD6Q0tuCe4Lq1FMGikIFOW25XPcYn THbg8NXCssLCpgTqCXMS7iGlIvnfKF/vq7bKK66GiWKsnz7xeTMRli7ONgrzzmMclkon n+6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="U/yo2P4M"; 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 d26si1828178edy.410.2020.07.21.04.18.07; Tue, 21 Jul 2020 04:18:30 -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="U/yo2P4M"; 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 S1729589AbgGULRs (ORCPT + 99 others); Tue, 21 Jul 2020 07:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgGULRq (ORCPT ); Tue, 21 Jul 2020 07:17:46 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF0EDC061794; Tue, 21 Jul 2020 04:17:46 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id d4so11797230pgk.4; Tue, 21 Jul 2020 04:17:46 -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=Y1sUu7IRkmKxX3OgEjjqPHVwVLT2AAnTvOPxWUsKTqw=; b=U/yo2P4MMX3QLNOeAoYV+mfCmXz++pGqXLjZrX8UYkOInAOX9Hf9YVSBk9fD8tIiPG PInnW+rlK79jCQb08dWUa7Bw9TS6ZrlvTK9p5007bPWAypwZi80j0BycYFBxLQ4ISYYv 007pGBj7yyHW2n+GlbuEuYf5b2py97hIW3cPZxqeAp05DQ3QtHv12n/TJt4lHMSutR8a HwMWB+OJOdUiF8gDmIcJ+1E+1M4342L/2CGiqc63m4rdS09k0VnQT7P0iK/Jjd81q9Bo eOoXqCPxRREZBQpow8rzhSh9XyDljARP13Q3djLvt5PQgdMR9VJ7RKSilkP4b1DWjrbT wbdQ== 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=Y1sUu7IRkmKxX3OgEjjqPHVwVLT2AAnTvOPxWUsKTqw=; b=PqJKZPJeYGLkC4FOJQhNUML8SPji8TQ6Ric8H4/1ZoYdmTmUIAdEFtWN0JAZ38fmka 3KnDyhWwQdB3s5U1Zrpv7L4Rey9Hv77yTISemBbnNi6Z+HiEGYHY7L7VQcNesdkDKPzB jbrODF7kCgHmaqIjzagVUvCkxibZHYW6Jjyi1LUW51c9d47Se9MOM+3vvKeYyzgeshmc DYl3CiqSDu+3r7WQtNbdqdLQYS5ZFDXq6Nswbmt5w6HV6fF3TRe45u0nP2ZTF1eo0qfV ErPv8j46NfV3xKSZuz0WrQQN42bC/W5vW7mHF3uahHt7xPElZBV4F7go6SZHLNSU3iL9 m3zA== X-Gm-Message-State: AOAM532NwErd6OMPlvuwC3GWVQGrcnLxGZ2gut+czLLlV596ZJECwQjs 2FOlFrjpqZ0mr/S6IUhaIHypBdFQhCadjg== X-Received: by 2002:aa7:91d3:: with SMTP id z19mr23129574pfa.119.1595330266390; Tue, 21 Jul 2020 04:17:46 -0700 (PDT) Received: from xiaomi.mioffice.cn ([209.9.72.214]) by smtp.gmail.com with ESMTPSA id f72sm19829566pfa.66.2020.07.21.04.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 04:17:45 -0700 (PDT) From: Qiwu Huang To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, jiangfei1@xiaomi.com, Qiwu Huang Subject: [PATCH v5 0/4] add some power supply properties about wireless/wired charging Date: Tue, 21 Jul 2020 19:15:35 +0800 Message-Id: X-Mailer: git-send-email 2.27.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 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 + include/linux/power_supply.h | 31 ++++++++ 3 files changed, 120 insertions(+) -- 2.27.0