linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: pavel@ucw.cz (Pavel Machek)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: gta02: Add gpio bank B quirk for hardware revision 5 and earlier
Date: Mon, 30 Nov 2009 13:31:41 +0100	[thread overview]
Message-ID: <20091130123141.GH13328@elf.ucw.cz> (raw)
In-Reply-To: <4B125373.9020505@metafoo.de>

On Sun 2009-11-29 11:56:51, Lars-Peter Clausen wrote:
> Pavel Machek wrote:
> > Hi!
> >
> >> On gta02 hardware revision 5 and earlier the basis resistors for
> >> transistors of the leds are missing and reading their gpio pin
> >> status will always return 0. So we have to shadow the led states
> >> in software. This is done by "hijacking" the gpio accessor
> >> functions for bank B.
> >
> > Should that be done in LED driver, instead? Pave
> Hi
> 
> Nope, that won't work. Every time a gpio on gpb is changed the leds
> will turn off. So we would have to ship a special version of each
> driver using a gpio pin form gpb. We certainly don't want to do that.

_Any_ GPIO pin change will turn off the LED? Wow, the hardware is
severely misdesigned then, ok. That means you do need to modify GPIO
:-(. You probably should state it clearly in the comments.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2009-11-30 12:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-28  3:05 ARM: gta02: Add Button, LED and Vibrator support Lars-Peter Clausen
2009-11-28  3:05 ` [PATCH] ARM: gta02: Add button support Lars-Peter Clausen
2009-11-28  3:05   ` [PATCH] ARM: gta02: Add LED support Lars-Peter Clausen
2009-11-28  3:05     ` [PATCH] ARM: gta02: Add vibrator support Lars-Peter Clausen
2009-11-28  3:05       ` [PATCH] ARM: gta02: Add gpio bank B quirk for hardware revision 5 and earlier Lars-Peter Clausen
2009-11-29  8:34         ` Pavel Machek
2009-11-29 10:56           ` Lars-Peter Clausen
2009-11-30 12:31             ` Pavel Machek [this message]
2009-11-30 18:56               ` Jamie Lokier
2009-12-01 12:32                 ` Pavel Machek
2009-12-01 18:27         ` Ben Dooks
2009-11-29  8:37       ` [PATCH] ARM: gta02: Add vibrator support Pavel Machek
2009-11-29  8:31   ` [PATCH] ARM: gta02: Add button support Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091130123141.GH13328@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).