From: Nicolas P. <ni...@ca...> - 2007-06-12 15:40:31
|
On Tue, 12 Jun 2007, Werner Almesberger wrote: > Hi all, > > I'm in the process of adding drivers for the Samsung 2410 and 2440 > MCUs for the OpenMoko project. We're tracking the latest mainstream > kernel, currently we're at 2.6.21.3. > > For now, I went back to an older kernel for sdio-linux, but I > wonder if you are already working on patches for more recent > kernels. If not, I'll look into this when done with the drivers. > > I'm also curious about plans for merging sdio-linux into the > mainstream kernel. I see mainly two areas where there could be > issues: 1) functionality overlaps with the existing SD/MMC > driver, and 2) the coding style is quite different from what's > required for mainline. Any thoughts on this ? I'm currently working closely with Pierre Ossman to add SDIO support into mainline. Because of the issues you noted above, the mainline SDIO support will probably be a complete rewrite. This is why I'm currently directing my current efforts towards this rewrite for the latest mainstream kernel instead of bringing the sdio-linux codebase forward. While the sdio-linux code base has its value as an already functional SDIO stack, it has some structural and major style issues that makes it impossible to ever be considered for mainline. There is another SDIO stack contender from Marvell that was turned down as well for the same reasons. Therefore I may only use this code as a working reference at this point. Because of that, if you're targeting the latest mainline kernel, I strongly suggest that you consider writing a host driver for the existing MMC/SD stack in mainline. The current SDIO effort is based on that. Pierre already pushed some of our SDIO work in his GIT tree at git://git2.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc.git. This is still early WIP but things are moving rather fast. Nicolas |