Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3509276ybl; Sun, 12 Jan 2020 20:07:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzP/B5SzwnHW8nFw074LdwVgCWYKpYGHdVet+FeYFT7FvAkK0fvbN88RyjCyu9JGsF6UEVN X-Received: by 2002:a9d:5918:: with SMTP id t24mr12188951oth.310.1578888441406; Sun, 12 Jan 2020 20:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578888441; cv=none; d=google.com; s=arc-20160816; b=mUXAnIstrblr8J3gtUiCFeUMH9e4NCe0SNaYDeP3k2s3pdVqMfDqOrzP5g/d7uL0ch j1z9dIUvCfF10Xo0+FXaxaFTdySuA8H/bGNLZxsJTGKLCjALS/GbHoIlxNS85SD8csvj b63MDvm7Pznz/coI0ArjVUDLt48vjdhRc1PCNRRENsAiiHie5uex3vuyUF3kT6H6s96C zwT1vCpiTY2Y+6nAR0Yr+EM8iXG6W0ePxZKUZUAGEXtcz0plmfA1fLNXAt4YJQNpI+oo bsO1zDdPWBkDgoLQUavdMdFQQpsoBcoWYHPnzhykJf+vfS2v2taBJAjTuW96LL23ehRa j1gQ== 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; bh=2XoQxnxnbf89i87hmMyaS+hS25moXF0WF8eizgFC4Nw=; b=awUufWOE8rv273QLjoDVAeQE47YlYnlwnwXynbVR6CUJm40v9ZwPF0Sjxc59jdJ1y9 QVxZPyoaJbmsMyMcZvZTsfRLiW7vCH6H5r5UBhU9rAtP51D7M2RCaKNQ8vWMVMld0sW1 5kX8ck3E5Pfc5Rm2CQeKjdADoszUsnELbMU867pKkFtZw0OoBojWh9EjHVc1JdLbvWvF BJDzx3xZui8JtEx4HGpzgtv+aGwGEFT1D/hFyLKKB+KXQaWyeIJxv0AtohpcInKveGT2 4DQEEj3rHgvX9pS+TbDCkUUvooODtWv7JL53rRHvb3aE5MXe8RPWV5ny9MnbPWN1xjaf r7ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si5914885otq.203.2020.01.12.20.07.09; Sun, 12 Jan 2020 20:07:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387576AbgAMEGC (ORCPT + 99 others); Sun, 12 Jan 2020 23:06:02 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:35471 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387415AbgAMEGB (ORCPT ); Sun, 12 Jan 2020 23:06:01 -0500 Received: by mail-ed1-f66.google.com with SMTP id f8so7259706edv.2; Sun, 12 Jan 2020 20:06:00 -0800 (PST) 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=2XoQxnxnbf89i87hmMyaS+hS25moXF0WF8eizgFC4Nw=; b=Vw3abKezw0SGONxn7qnSSx+GxsNKaFXprbwllqpPSaA7fnS6QAYeCyDG+9yT/BwaVw EAs87soF1wv8TaPdLHRwp3qq3p+SrS/7drrVTnom2+j0OYD0yixycrOwFXntiBwltkix Vy2LOem4E+al6sKfk7gObC7Yv84bVStISVXqyekSJwvvq3WNWnjHYpS1p9tIjoAPKln1 pIDKYnpl/d2yBGpRA2TlaNxBxjmCeJlQwi69buz6uZh+EvVrcgfHNSHS6Fd8JOaEMunV mut4YwmxgrzwBjPUUZJrkcLV6gBvkGz4uWRtnAoF1E0gz/7SR3M1p2I9+Bzj5jJTcf6R IObA== X-Gm-Message-State: APjAAAVnJOZ23m4BKE/LtwotKg7GjGcop/j+O++tCV2hTYghgMzbTHOg MZVMzewhEPtXhKNUW1wEzNNvDqwyebw= X-Received: by 2002:a17:907:43c1:: with SMTP id i1mr14475961ejs.138.1578888359060; Sun, 12 Jan 2020 20:05:59 -0800 (PST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com. [209.85.128.41]) by smtp.gmail.com with ESMTPSA id j21sm415191eds.8.2020.01.12.20.05.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Jan 2020 20:05:58 -0800 (PST) Received: by mail-wm1-f41.google.com with SMTP id u2so8047020wmc.3; Sun, 12 Jan 2020 20:05:58 -0800 (PST) X-Received: by 2002:a05:600c:2409:: with SMTP id 9mr16419248wmp.109.1578888358440; Sun, 12 Jan 2020 20:05:58 -0800 (PST) MIME-Version: 1.0 References: <20200113035310.18950-1-samuel@sholland.org> <20200113035310.18950-7-samuel@sholland.org> In-Reply-To: <20200113035310.18950-7-samuel@sholland.org> From: Chen-Yu Tsai Date: Mon, 13 Jan 2020 12:05:49 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v3 6/8] power: supply: axp20x_usb_power: Allow offlining To: Samuel Holland Cc: Sebastian Reichel , Oskari Lemmela , "open list:THERMAL" , linux-kernel , linux-sunxi 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 Mon, Jan 13, 2020 at 11:53 AM Samuel Holland wrote: > > AXP803/AXP813 have a flag that enables/disables the USB power supply > input. Allow control of this flag via the ONLINE property on those > variants. > > It may be necessary to offline the USB power supply input when using > the USB port in OTG mode, or to allow userspace to disable charging. > > When the USB VBUS input is disabled via the PATH_SEL bit, the VBUS_USED > bit in PWR_INPUT_STATUS is cleared, so there is no change needed when > getting the property. > > Signed-off-by: Samuel Holland Reviewed-by: Chen-Yu Tsai