Re: MFD cell structure and sharing of resources

From: Mark Brown
Date: Sat Dec 25 2010 - 09:23:47 EST


On Fri, Dec 24, 2010 at 10:48:51PM -0800, Andres Salomon wrote:

> Having looked at the twl4030 driver, I do like that approach. Is this
> something you want to see for cs5535 only, or are enough other mfd
> drivers doing this that you'd like the mfd framework itself to define
> hooks for cell/resource sharing?

This is extremely common - all the I2C/SPI attached embedded PMICs have
register access functions like this. We have some factored out code for
this in ASoC but I'm not sure how worthwhile it is pulling that out into
something more generic as there's often a lot of special tweaks needed
for the register maps in PMICs (for things like locked registers),
though things like read/modify/write are quite common.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/