lkml.org 
[lkml]   [2018]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 2/4] mfd: add Gateworks System Controller core driver
    > What about the 'reset' functionality? Is there something in the power
    > supply API for hooking in a GPIO based power switch (in my case it
    > would be i2c) as I would think that would be common for ATX supplies?
    > I didn't see anything in Documentation/power.
    >
    > This is what led me to the restart handler idea. Ultimately when
    > someone issues a 'reboot' I would like it to use the GSC to
    > power-cycle the board.

    Hi Tim

    I think you end up with the same problem. By the time you need to turn
    the power supply off, too much of the kernel is shut down to be able
    to use I2C. And if you are in the middle of an Oops, you have no idea
    of the current state. Another I2C transaction could be under way etc.
    All the current reset drivers are pretty much self contained, atomic
    and use KISS hardware like a GPIO.

    Maybe you best bet is to see if you can find any other I2C PMICs which
    the kernel supports.

    Andrew

    \
     
     \ /
      Last update: 2018-04-04 15:14    [W:2.106 / U:1.636 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site