linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@csie.org>
To: Samuel Holland <samuel@sholland.org>
Cc: Sebastian Reichel <sre@kernel.org>,
	Oskari Lemmela <oskari@lemmela.net>,
	"open list:THERMAL" <linux-pm@vger.kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-sunxi <linux-sunxi@googlegroups.com>
Subject: Re: [linux-sunxi] [PATCH v3 6/8] power: supply: axp20x_usb_power: Allow offlining
Date: Mon, 13 Jan 2020 12:05:49 +0800	[thread overview]
Message-ID: <CAGb2v65v40RDWz3V4Fu=MfU4K+MUXxmj5_LB7wFt2Qtxw9RMzQ@mail.gmail.com> (raw)
In-Reply-To: <20200113035310.18950-7-samuel@sholland.org>

On Mon, Jan 13, 2020 at 11:53 AM Samuel Holland <samuel@sholland.org> 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 <samuel@sholland.org>

Reviewed-by: Chen-Yu Tsai <wens@csie.org>

  reply	other threads:[~2020-01-13  4:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-13  3:53 [PATCH v3 0/8] X-Powers Power Supply Improvements Samuel Holland
2020-01-13  3:53 ` [PATCH v3 1/8] power: supply: axp20x_ac_power: Fix reporting online status Samuel Holland
2020-01-13  4:04   ` Chen-Yu Tsai
2020-01-13  3:53 ` [PATCH v3 2/8] power: supply: axp20x_ac_power: Allow offlining Samuel Holland
2020-01-13  3:53 ` [PATCH v3 3/8] power: supply: axp20x_ac_power: Add wakeup control Samuel Holland
2020-01-13  3:53 ` [PATCH v3 4/8] power: supply: axp20x_usb_power: Remove unused device_node Samuel Holland
2020-01-13  3:53 ` [PATCH v3 5/8] power: supply: axp20x_usb_power: Use a match structure Samuel Holland
2020-01-13  4:08   ` Chen-Yu Tsai
2020-01-13  3:53 ` [PATCH v3 6/8] power: supply: axp20x_usb_power: Allow offlining Samuel Holland
2020-01-13  4:05   ` Chen-Yu Tsai [this message]
2020-01-13  3:53 ` [PATCH v3 7/8] power: supply: axp20x_usb_power: Add wakeup control Samuel Holland
2020-01-13  3:53 ` [PATCH v3 8/8] power: supply: axp20x_usb_power: Only poll while offline Samuel Holland
2020-01-14  0:17 ` [PATCH v3 0/8] X-Powers Power Supply Improvements Sebastian Reichel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGb2v65v40RDWz3V4Fu=MfU4K+MUXxmj5_LB7wFt2Qtxw9RMzQ@mail.gmail.com' \
    --to=wens@csie.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=oskari@lemmela.net \
    --cc=samuel@sholland.org \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).