Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp662173ybh; Tue, 21 Jul 2020 05:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPVBCF5Zfs8dE84ffgaQOXLefjtjwu3jIxK2ADEur3PITAFy17asmZqnD7XVkebPO2TDH1 X-Received: by 2002:a50:8adb:: with SMTP id k27mr24539633edk.267.1595332945344; Tue, 21 Jul 2020 05:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595332945; cv=none; d=google.com; s=arc-20160816; b=0DcH6NSukpB6mefGVW5xI3v9aEnqCpNRRWro40KG0OpR8e/xTJzYnGpafBmJZCmkJ8 iwcCikIJVIgfv2ghzqnUPlzB7Ej9nzdNNxpwXk4DcEkcVEi5h58t6emrcssOXMFCFJgB WMSeIbRLsFjgMpOLwopsTAmXt9D7eYXVZfXYt5e/5o5foL4o6IdwS4LsAojotcphiqrH yBQAcPfTPDZMmKCdouU5x/DdoiaTJmkGO2EFB4fbrhX4NLBUpFzVnyajr3/gMu9CrX7L V2qLnTkiSnUpAX3a/GcW99TlvvjK2k4Z6miqQ26tF89b8ITzTJ63KzC2gTyF8Jwo1Gxx oxhg== 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=YPUEFyO6GrJbWlArnra90agIJPKyOH5916N0ngmcw1Q=; b=VE/qYCXgnIRV6cdrE3cyN2rZSPedTVS4Nc2WhsDtikFl6B3kkKEQ1p/qNnJrzOi3ww ePVR7O712YYcMS9cA+6JYWMw1rqpkcHaIWxyJvAidyTQ0mVv4qlYdTFyY9hFSXw+2+A+ 0e2od+HYaADsANz2c1NDM6ffE67p5uBTi/8MQ1C5ky9UG9lTLorf+nCkU8EtC5zvgLWB lNxAbU/BE4VBDmBtlrQTPdka0tK1P0iXOxKeKlHUbfzsZHDeVqxXZVjbOCTkQYpAwuvt kBAdchgIaWhvQAVofPlLj/rLFkvAMqNjM3KLJukp3n+IPC0AnbLVQFVfnTySIchf7512 2MyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="rJO2Y/1e"; 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 g19si11542125edv.174.2020.07.21.05.02.01; Tue, 21 Jul 2020 05:02:25 -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="rJO2Y/1e"; 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 S1728716AbgGUMBv (ORCPT + 99 others); Tue, 21 Jul 2020 08:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728288AbgGUMBu (ORCPT ); Tue, 21 Jul 2020 08:01:50 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22457C061794; Tue, 21 Jul 2020 05:01:50 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id m16so10165855pls.5; Tue, 21 Jul 2020 05:01:50 -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=YPUEFyO6GrJbWlArnra90agIJPKyOH5916N0ngmcw1Q=; b=rJO2Y/1eWWCttoEkGBa785Q4kTRw4oId9KqBYRKb0XkkpuGqTbm4vrIrD9OkmbYgEn gGZbpBO7fR/UcxdqPGDLi/WXOqObcOZGSjpyDHQyeZ7AXB0oJQ0moD0bie96BXMSWn4N uXRCk5RM0uWU2hp/192q7Xry5iRi1rvuIatC/SdgprJ/7XNv6H7FRC3y6QA0ngcjY2lp RCTdvRBIiGR0r2Q1Aho/vMUYYAbdibIGo22IJP9FJojKZN8MCjea+QZSuA73q2JS667e TyIn33bdnaBX+ts00GM6R1GBy0b1BJtMNAPvwbxiWFb9BltYRReBDd7F3edlIKPBFMPJ ozRw== 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=YPUEFyO6GrJbWlArnra90agIJPKyOH5916N0ngmcw1Q=; b=XPKNnV22hlTcH4fkS3My6OxytSeGOdd5GRowoCtuhb1W+9cFNjoxCaDXkLxDOGZ5zR uCMraYl0UsOuSgl/8sfJwnINTYTxrCuhPMgYZWt6jr0hljoaA3pNaveYRprtLN4T+ZFy VhA50FkXbQLlN+HHB0omjdSTi2uzXQ/HKrLXOVMyM/qK8HUQZ9NM6eSq3k+mLG3fIX2y 54NEDTHtvWzUxk4XmWl+q3MPRUqaQR/iJiEVtIRSQcdzqgFB9dPvDZaXYzrQiWLdRET3 yLkDIgwI9qjGEb7tkJTYC//TqSktpO2TFChi5Sw/owmgwdy1PAmEyKp5+tGDcRWbLde/ oE1w== X-Gm-Message-State: AOAM530dczh5so1HhtMrMb0jUsGafI3qv8OKkM34H3xL/Uo1jPqomhYJ Uw0uyMf4m8+9vJN8rJRk9+o= X-Received: by 2002:a17:90b:124c:: with SMTP id gx12mr4683672pjb.191.1595332909282; Tue, 21 Jul 2020 05:01:49 -0700 (PDT) Received: from xiaomi.mioffice.cn ([209.9.72.214]) by smtp.gmail.com with ESMTPSA id t73sm20542041pfc.78.2020.07.21.05.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 05:01:48 -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 v7 0/4] add some power supply properties about wireless/wired charging Date: Tue, 21 Jul 2020 19:59:38 +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 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 + include/linux/power_supply.h | 31 ++++++++ 3 files changed, 120 insertions(+) -- 2.27.0