[PATCH v2 03/20] mmc: support embedded data field in mmc_host
Linus Walleij
linus.ml.walleij at gmail.com
Fri Aug 6 03:07:47 EDT 2010
2010/8/4 Ohad Ben-Cohen <ohad at wizery.com>:
> On Wed, Aug 4, 2010 at 2:41 PM, Russell King - ARM Linux
>>
>> Why not arrange for a small piece of code to be built into the kernel
>> when this driver is selected as a module or built-in, which handles
>> the passing of platform data to the driver?
>
> It's interesting.
>
> The only drawback I can see is that it has an inherent limitation of
> having only a single wl1271 device on board,
...which is exactly what the *_board_info scheme in the spi
and i2c subsystems is designed to solve.
This is an established design pattern in the kernel with two
precedents, what makes it so hard to implement this idea?
There are plenty of examples all over the place.
What mainly matters to me is that the stuff can be separated
cleanly and in a nicely structured manner into board-xxx.c files
in the mach-xxx dirs, which is possible also with the simpler
approach so whatever...
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list