mmc: core: Fix bit width test failing on old eMMC cards
authorPhilip Rakity <prakity@yahoo.com>
Thu, 4 Apr 2013 19:18:11 +0000 (20:18 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:34:49 +0000 (14:34 +0100)
commit9126ab0cea7cde9180ed18c72997cadff18f6213
tree973b2735fbf5cc9ef8fde913d55d5e8c6ee6d0b5
parent29878cdb099a4703b884aa1e0354fedff9766133
mmc: core: Fix bit width test failing on old eMMC cards

commit 836dc2fe89c968c10cada87e0dfae6626f8f9da3 upstream.

PARTITION_SUPPORT needs to be set before doing the compare on version
number so the bit width test does not get invalid data.  Before this
patch, a Sandisk iNAND eMMC card would detect 1-bit width although
the hardware supports 4-bit.

Only affects old emmc devices - pre 4.4 devices.

Reported-by: Elad Yi <elad.yi@gmail.com>
Signed-off-by: Philip Rakity <prakity@yahoo.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/mmc/core/mmc.c