Thread (4 messages) 4 messages, 3 authors, 2011-02-16

platform data and mfd design question

From: Linus Walleij <hidden>
Date: 2011-02-16 08:49:09
Also in: linux-arm-msm, lkml

On 02/15/2011 10:51 PM, Abhijeet Dharmapurikar wrote:
Msm on the other hand declares the struct mfd_cell subdevice[] array in
the board file and passes this on to the core driver via platfom data.
   
This way the platform data tells the core driver what kind of
silicon it has "hey, PM8058, guess what, you have an RTC!"
which looks backwards to me, especially given that it does
not need any fancy platform data at all, just two IRQ numbers
which the core driver can very well handle.

For example: if the platform data (which is about how the
components are connected on the board etc) does not
provide the RTC resource, all of a sudden it appears to the
system as if the PM8058 does not have an RTC, but it does...


Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help