linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Query on direction_output fn of PL061 GPIO driver.
@ 2010-04-13 10:50 Viresh KUMAR
  2010-04-13 11:32 ` Baruch Siach
  0 siblings, 1 reply; 8+ messages in thread
From: Viresh KUMAR @ 2010-04-13 10:50 UTC (permalink / raw)
  To: linux-arm-kernel

Hello Baruch,

I have a query on PL061 GPIO drivers API pl061_direction_output().
Purpose of this function is to set GPIO pin in OUT mode and set/reset
its value.

In current implementation, firstly value of GPIO pin is modified and then its
direction is set to OUT. In our SOCs (ST SPEAr), this implementation doesn't
work correctly (we have pl061 in our soc). Suppose previously pin is in IN mode,
now writing val to it doesn't change anything because it is in IN mode and we
can write to a pin only when it is in OUT mode. Now if its direction is
changed to OUT then also its value will remain same and will not be changed to
what we wanted.


Am i missing something?

regards,
viresh kumar.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-17 18:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-13 10:50 Query on direction_output fn of PL061 GPIO driver Viresh KUMAR
2010-04-13 11:32 ` Baruch Siach
2010-04-13 11:40   ` Viresh KUMAR
2010-04-13 11:53     ` Baruch Siach
2010-04-13 18:57       ` Russell King - ARM Linux
2010-04-14  5:29         ` Baruch Siach
2010-04-15  4:14           ` Viresh KUMAR
2010-04-17 18:20             ` Baruch Siach

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).