Re: [PATCH] mmc: make number of mmcblk minors configurable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Olof Johansson
Date: Wednesday, August 18, 2010 - 8:22 pm

Hi,

On Wed, Aug 18, 2010 at 05:16:36PM -0700, Andrew Morton wrote:

mmcblk0 will be 0, mmcblk0p1 1, etc. mmcblk1 (second device) will be
bumped up to start at minor 16 instead of 8 before, which is why I didn't
just bump up the static default and went with a config option instead.

FWIW, udev will happily keep creating device nodes for higher partitions,
so without this patch you end up with overlapping device entries where
mmcblk1p1 and mmcblk0p9 will be the same major/minor.


I considered just doing a runtime option, but it would be suboptimal in
our case (Chrome OS) since it would mean that we had yet another kernel
arg we always have to include on all platforms that boot from mmc devices.
Modprobe args won't work there because the driver is statically linked in
(and no ramdisk).

I can definitely change it to take the default from the Kconfig and make
it possible to override with boot/modprobe parameters though. Revised
patch to follow.


Yep, I'll add a comment and clarify it in the Kconfig help.


Good point, will do.


-Olof
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mmc: make number of mmcblk minors configurable, Olof Johansson, (Tue Aug 17, 9:13 pm)
Re: [PATCH] mmc: make number of mmcblk minors configurable, Olof Johansson, (Wed Aug 18, 8:22 pm)
sys_init_module system call, runcoderen, (Fri Aug 20, 3:18 pm)
Re: sys_init_module system call, Randy Dunlap, (Fri Aug 20, 3:32 pm)
Re: sys_init_module system call, runcoderen, (Fri Aug 20, 3:50 pm)