Re: [RFC PATCH] gpio: Add a defer reset object to send board specific reset

2014-06-17 Thread Houcheng Lin
Hi, 2014-06-16 21:18 GMT+08:00 Ulf Hansson : > > If I understand correct, you need a per device reset functionality? > And obviously the reset implementation is board/SoC specific. > > We have the "Reset Controller framework", drivers/reset. Could this help you? > > Kind regards > Ulf Hansson > T

Re: [RFC PATCH] gpio: Add a defer reset object to send board specific reset

2014-06-16 Thread Ulf Hansson
On 8 June 2014 03:09, Houcheng Lin wrote: > The Problem > --- > The reset signal on a hardware board is send either: > - during machine initialization > - during bus master's initialization > > In some hardware design, devices on bus need a non-standard and extra reset > signal aft

Re: [RFC PATCH] gpio: Add a defer reset object to send board specific reset

2014-06-14 Thread Houcheng Lin
Hi Linus, please see my replies below, 2014-06-12 20:35 GMT+08:00 Linus Walleij : > > OK this is interesting stuff.. > > But this driver *MUST* live under drivers/power/reset/*, as it > has absolutely *nothing* to do with GPIO except for being a consumer > of it. I won't merge it. > > And you shou

Re: [RFC PATCH] gpio: Add a defer reset object to send board specific reset

2014-06-12 Thread Linus Walleij
On Sun, Jun 8, 2014 at 3:09 AM, Houcheng Lin wrote: > In some hardware design, devices on bus need a non-standard and extra reset > signal after bus is initialied. Most reason is to wake up device from hanging > state. > > The board spefic reset code can not be put into machine init code, as it i

Re: [RFC PATCH] gpio: Add a defer reset object to send board specific reset

2014-06-08 Thread Houcheng Lin
# RESEND and please ignore previous mail # On 2014/06/08 20:58, Alexandre Courbot wrote: > Interesting approach to a long-standing problem. I had my own > embarrassing attempt at it (power sequences), and more recently Olof > (CC'd) sent something related for the MMC bus > (http://www.spinics.net/

Re: [RFC PATCH] gpio: Add a defer reset object to send board specific reset

2014-06-08 Thread Alexandre Courbot
On Sun, Jun 8, 2014 at 10:09 AM, Houcheng Lin wrote: > The Problem > --- > The reset signal on a hardware board is send either: > - during machine initialization > - during bus master's initialization > > In some hardware design, devices on bus need a non-standard and extra reset >