Re: [PATCH 2/4] powerpc/qe: new call to revert a gpio to a dedicated function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anton Vorontsov
Date: Wednesday, September 24, 2008 - 4:29 pm

On Wed, Sep 24, 2008 at 11:54:24AM -0700, David Brownell wrote:
[...]

The driver anyway will have to call of_get_gpio(), because it
have to use the pins as gpios. At least it have to specify a
direction, luckily for this we have the gpio_set_direction call
already. ;-)

But true, switching a pin to a dedicated function isn't a gpio
controller's job, it is a pinmuxing.


Yes.

[...]

Well.. they are used as gpios anyway, to signal a reset.
This is host's duty, and we have to support it, otherwise
things won't work. There is no other way to signal a reset
than turning these *pins* to a gpio state, setting the
direction and then reverting them back to a dedicated function.

But true, most of it isn't gpio controller's authority.

[...]

Yeah, unfortunately. The "oops" thought didn't visit my mind though,
because I'm still thinking it terms of this patch:

http://ozlabs.org/pipermail/linuxppc-dev/2008-February/051230.html

^^ with that patch no oops is possible, and we could detect anything
you pointed out here and below in your post. Which doesn't mean that
the patch above was ideologically correct, though.

But you clearly pointed out the issues which ruin the whole approach.


Anyway, just want to thank you for your time and persistence on this
matter, you're forcing others' people brains to *work*. And since you
rejected this approach too, I have no other option but to implement
something else... something better. ;-)

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] FHCI USB Host support patches, Anton Vorontsov, (Tue Sep 23, 5:02 pm)
[PATCH 1/4] gpiolib: make gpio_to_chip() public, Anton Vorontsov, (Tue Sep 23, 5:03 pm)
[PATCH 3/4] USB: Protect hcd.h from multiple inclusions, Anton Vorontsov, (Tue Sep 23, 5:03 pm)
Re: [PATCH 2/4] powerpc/qe: new call to revert a gpio to a ..., Anton Vorontsov, (Wed Sep 24, 4:29 pm)