[lkml]   [2017]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Regulator] Request for clarification - GPIO controlled regulator, USB VBUS,
Hi Mark,

Thank you for your reply.

> On Tue, Oct 03, 2017 at 06:58:00PM +0200, Łukasz Majewski wrote:
>> Have I overlooked something? Maybe there is any other mainline code, which I
>> could reuse?
> No, we don't support randomly toggling power for devices without their
> cooperation - it's not generally going to end well. The reason it's
> difficult to do this is that it's a bad idea.

I do understand the rationale. No issues with this.

> Perhaps this is something
> that could be implemented generically for USB as it's a hotpluggable bus

In this case we use VBUS as a power supply voltage. The problem with
regulator API used in this case is that we enable it on boot-up, but
then we cannot "symulate hotplug" anymore.

> but I'm not convinced.

Maybe, I can look into USB driver and see if the VBUS is manageable from
there (so I could add some sysfs entry to control it if needed).

Best regards.

Łukasz Majewski

 \ /
  Last update: 2017-10-04 13:03    [W:0.041 / U:7.460 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site