Re: [patch 2.6.27-rc7] gpiolib: request/free hooks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Magnus Damm
Date: Saturday, September 27, 2008 - 8:00 am

Hi David,

On Thu, Sep 25, 2008 at 7:08 AM, David Brownell <david-b@pacbell.net> wrote:

Looking good. I'm currently hacking on some pinmuxed gpio code for
SuperH, and I'd like to use these request/free callbacks to select
proper pinmux state.

I have one comment below though:


The code above doesn't catch double gpio_request() user calls
properly. Or rather, the user will receive an error but the
chip->request() callback may get called twice.

What about modifying the gpiolib code to handle that? I think that
sounds like a better idea than cover ing that case in the chip code...

Thanks!

/ magnus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 2.6.27-rc7] gpiolib: request/free hooks, David Brownell, (Wed Sep 24, 3:08 pm)
Re: [patch 2.6.27-rc7] gpiolib: request/free hooks, Magnus Damm, (Sat Sep 27, 8:00 am)
Re: [patch 2.6.27-rc7] gpiolib: request/free hooks, David Brownell, (Sat Sep 27, 11:29 am)
Re: [patch 2.6.27-rc7] gpiolib: request/free hooks, Magnus Damm, (Sun Sep 28, 8:48 pm)
Re: [patch 2.6.27-rc7] gpiolib: request/free hooks, David Brownell, (Mon Sep 29, 10:21 am)
Re: [patch 2.6.27-rc7] gpiolib: request/free hooks, David Brownell, (Sun Oct 5, 9:57 pm)