public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* Sharing resources between several drivers.
@ 2012-07-27  7:59 javier Martin
  2012-07-27  9:03 ` Bedia, Vaibhav
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: javier Martin @ 2012-07-27  7:59 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,
we are trying to support pinctrl for i.MX21, i.MX1 and i.MX27.

In these chips, gpio and pinctrl use the same HW memory area
registers. This means that we have to request the same memory area
from two different drivers (gpio and pinctrl) but we don't know how to
do that.

A similar example available is mxs, but it only works with device
tree, so this problem is avoided.  However, some of these chips
(i.MX21, i.MX1...) don't support device tree yet, so we need to
provide backwards compatibility.

What is the right way to request the same memory region from two
different drivers? Moreover, how can we guarantee that there won't be
any conflicts when accessing these shared resources?

Regards.
-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com

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

end of thread, other threads:[~2012-08-04 23:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27  7:59 Sharing resources between several drivers javier Martin
2012-07-27  9:03 ` Bedia, Vaibhav
2012-07-28 14:07   ` Shawn Guo
2012-07-30 12:00     ` Bedia, Vaibhav
2012-07-27  9:19 ` Thomas Petazzoni
2012-07-27  9:33   ` javier Martin
2012-07-29 14:19 ` Arnd Bergmann
2012-08-04 23:46   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox