]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: block: Increase max_devices
authorBen Hutchings <ben@decadent.org.uk>
Thu, 6 Nov 2014 03:35:09 +0000 (03:35 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:30:59 +0000 (14:30 +0100)
commita26eba614afff0e39594101bcb73014a9a22fb33
tree85da9f36aa1e9f7582ad3bd7eab45e7989b5cc02
parentc34346b200757834fffdf231b6034258b01ba550
mmc: block: Increase max_devices

Currently the driver imposes a limit of 256 total minor numbers,
apparently based on the historic Unix/Linux limit.  This is quite
restrictive, particularly if we raise the maximum number of
partitions per card to 256 to match sd.

In order to make the full minor number space available we would
have to replace the static dev_use and name_use arrays with struct
ida.  But we can at least allow use of 256 cards rather than just
256 minors, with only a small change.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c