Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp610072ybh; Tue, 21 Jul 2020 03:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIbg0mNpKv+q0n129jkHwlrYv3eMVhqul14Cy0NnECUihqtcHmX8+K0yzPZkMXEj/6JAIK X-Received: by 2002:a17:906:b0d3:: with SMTP id bk19mr26239449ejb.167.1595328066359; Tue, 21 Jul 2020 03:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595328066; cv=none; d=google.com; s=arc-20160816; b=f5ifAzWiQ8sWb4hpOTQEMPi9v8JssdgPLqzelOK2wMp0+za1z7nnwIEIKPGiDpk/am tAH/0jVfJwjOIiCJg6rFr1GXsFaQpHIMrEQDzGO2f2AbczYjJrbYFxxphXTzc5KETI9W CGgFaeZwV8Ft/hHbDjMFypfXcK5vn2pqEiUwSOA4Nkm4ZXhMFfTqbXphuHiHMUdIyOGi 6SUwfBBBkhkc/LZSWlNMujaP1N5gtHUWcCn+pKhGwNvD3QgLt8qZz9oh2JxJ3cFvp22G kI4ArvQzlnw8Cb4UA47ThXhHfEnEuRuFu5PEtxXQ1Ieb/Tg5Sl4csQ6tWWm7xAHlqnXR xCnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/hrwegn9jIZlfwVSBJg2Q9e2hdiS+7p2jeJiI2B1tZg=; b=ZXc4JdgK1cG3z5e4lzlcPAjm4y+MVId6vuWft26BEY9vH87XzYzuT8Q4lHjcSVvzVX gmQV9vg4M+DW8UEb1B8yjM8hetQEGpPLrj4WLLT4qIgc2a7a2ZOLKXVmcFy24e3trqHo XOO2VhSPsKbdEYGwuz0ifwV0RUSMsDYcGWQCQhuhyEhwFLLnD9Ln8RaQU0kwBATGYw3N gYVebfNispasYlAoeBVAlfSdfU420wwRSBKhgPrqbikBx/ZEtkBLCCA9ZNXKAofslIBA 0ko24BRsMpDC6JECcADRzWI2arQk/CYPRL2WtY7l5OE14WpVbL3kcGJaTnfps/TZnA2D tkCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GUZPnTeD; 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 ca10si12258355edb.224.2020.07.21.03.40.43; Tue, 21 Jul 2020 03:41:06 -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=GUZPnTeD; 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 S1729260AbgGUKkW (ORCPT + 99 others); Tue, 21 Jul 2020 06:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728210AbgGUKkV (ORCPT ); Tue, 21 Jul 2020 06:40:21 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42AC6C061794; Tue, 21 Jul 2020 03:40:21 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id j18so2324079wmi.3; Tue, 21 Jul 2020 03:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/hrwegn9jIZlfwVSBJg2Q9e2hdiS+7p2jeJiI2B1tZg=; b=GUZPnTeD2J8NqDSP9WWLzmOQJngE2JShWf5MnBF9DhXIO/nlj0hJgKgpsEtvY5gEbT RCsYzV5kY8oVxrlmD95NjoEa0D8dZhsUismEAoQ3/sm0kJ47GRMw9iDejtWbEyoyfS60 9YrWiHDKQkR9dyIB67BVyHXal3r4JKDYxEdyMqK6H5Fvel4goKQwe0ILREBJzKfsD4IL oddpaPTwduKzajzjyV05JLwl+s0+et5ixn79RXRh9EI82rglF6wwQrOLezuDOr+e8Stf azffswxDOcsC65h6P/eNXvi0ziU7FCHgS/2xFoF7c6qyO3lb+LIBxEEpvoNumaetTZ2I 7BrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/hrwegn9jIZlfwVSBJg2Q9e2hdiS+7p2jeJiI2B1tZg=; b=tvJLqUog5yC9SD1jEBZU0qhftR1sQcQeGbgUSCmRx0znMoj5+8YGkt3PAOQqbiPbYB cikrsLd0HEpeWoCqoxlZKIOSIiE+vRnmz8h+745JxE0fGZf3zK1/EtkEIre1UWYSuAAV 2mij26bD8ExQrZ4MZXyQkqST7DFAD5eZ+UMK307uCUEw0BLn/zE6wed3Q+2RKZNaKj4A q2pmenLgTx/QSDl+IOpoTeDyZVkXTSMml4xRNEHLw3gIOk3fE4naT/uwunR+P3cEUEN5 r3Ytbscghp27LD25YF8/KQbO97wmmCcJun166X2tnYIvpTuvoTH52kK6Zquu/CQ+Vl+N yOYQ== X-Gm-Message-State: AOAM532cxc40DNGCt/xn989Sb4Znxb6u2FIocv68KZYdaaotYTGL2WQd G219KAo8s6NEwIw7Cduf3raiFrW5izbrpj8n3fARAKn5WKPBsw== X-Received: by 2002:a7b:c921:: with SMTP id h1mr3228394wml.29.1595328020057; Tue, 21 Jul 2020 03:40:20 -0700 (PDT) MIME-Version: 1.0 References: <20200721082128.GE1655283@kroah.com> In-Reply-To: <20200721082128.GE1655283@kroah.com> From: ivan Date: Tue, 21 Jul 2020 18:40:08 +0800 Message-ID: Subject: Re: [PATCH v5 4/4] power: supply: core: property to control reverse charge To: Greg KH Cc: sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, jiangfei1@xiaomi.com, Qiwu Huang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 21, 2020 at 4:21 PM Greg KH wrote: > > On Tue, Jul 21, 2020 at 01:59:37PM +0800, Qiwu Huang wrote: > > From: Qiwu Huang > > > > Interface to control wireless reverse charge. > > Supply reverse charge function when enabled. > > > > Signed-off-by: Qiwu Huang > > --- > > Documentation/ABI/testing/sysfs-class-power | 12 ++++++++++++ > > drivers/power/supply/power_supply_sysfs.c | 1 + > > include/linux/power_supply.h | 1 + > > 3 files changed, 14 insertions(+) > > > > diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power > > index 75ec7de2fe78..54647d6995d3 100644 > > --- a/Documentation/ABI/testing/sysfs-class-power > > +++ b/Documentation/ABI/testing/sysfs-class-power > > @@ -767,3 +767,15 @@ Description: > > > > Access: Read-Only > > Valid values: 0 - 100 > > + > > +What: /sys/class/power_supply//reverse_chg_mode > > +Date: Jul 2020 > > +Contact: Fei Jiang > > +Description: > > + Some phones support wireless reverse charge function which charge other phones. > > Replace "phones" with "devices"? Yes, devices better than phones > > And shouldn't these lines be wrapped properly at 72 colums or so? Sorry, I will modify the format to match this standard. > > > + The property supply interface to control wireless reverse charge. > > I can't understand this sentance. The property provider interface to enable/disable wireless reverse charge. > > > + If enabled, start TX mode and detect RX. Disabled when timeout or manual setting. > > Can this be set, or is it just something to be read? Sorry,I forgot the permission statement Access: Read, Write > > thanks, > > greg k-h -- Thanks Qiwu