[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v65v40RDWz3V4Fu=MfU4K+MUXxmj5_LB7wFt2Qtxw9RMzQ@mail.gmail.com>
Date: Mon, 13 Jan 2020 12:05:49 +0800
From: Chen-Yu Tsai <wens@...e.org>
To: Samuel Holland <samuel@...lland.org>
Cc: Sebastian Reichel <sre@...nel.org>,
Oskari Lemmela <oskari@...mela.net>,
"open list:THERMAL" <linux-pm@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-sunxi <linux-sunxi@...glegroups.com>
Subject: Re: [linux-sunxi] [PATCH v3 6/8] power: supply: axp20x_usb_power:
Allow offlining
On Mon, Jan 13, 2020 at 11:53 AM Samuel Holland <samuel@...lland.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@...lland.org>
Reviewed-by: Chen-Yu Tsai <wens@...e.org>
Powered by blists - more mailing lists