Re: Latest gpio gumph

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Brownell <david-b@...>
Cc: Ben Nizette <bn@...>, linux-kernel <linux-kernel@...>, <kernel@...>
Date: Wednesday, May 28, 2008 - 5:21 am

David Brownell <david-b@pacbell.net> wrote:

If you enable the internal pullup during port configuration, it should
stay that way, I think. But I think at32_select_gpio() should be fixed
so that when the user specifies AT32_GPIOF_OUTPUT | AT32_GPIOF_PULLUP,
the pullup will be turned on.


I don't think we're talking about a lot of pins that need to switch
direction on the fly, and the pullup is very weak as you say. And a
floating input might waste a lot more power than the pullup ever will.


The board designer should know this and set the AT32_GPIOF_PULLUP flag
as appropriate.


Yes, but it will only catch that particular case, not missing
gpio_request() calls in general.

I'm not really opposed to the second change; I would have applied it if
it came separately. But I think the first change is wrong.

Haavard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Latest gpio gumph, Ben Nizette, (Tue May 27, 10:41 pm)
Re: Latest gpio gumph, David Brownell, (Wed May 28, 12:44 am)
Re: Latest gpio gumph, Haavard Skinnemoen, (Wed May 28, 4:14 am)
Re: Latest gpio gumph, David Brownell, (Wed May 28, 5:01 am)
Re: Latest gpio gumph, Haavard Skinnemoen, (Wed May 28, 5:21 am)
Re: Latest gpio gumph, David Brownell, (Thu May 29, 11:18 pm)
Re: Latest gpio gumph, Haavard Skinnemoen, (Tue Jun 10, 7:58 am)
Re: Latest gpio gumph, Ben Nizette, (Wed May 28, 1:13 am)