mmc: core: sd: implement proper support for sd3.0 au sizes
authorWolfram Sang <wsa@the-dreams.de>
Tue, 26 Nov 2013 01:16:25 +0000 (02:16 +0100)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 11:38:45 +0000 (19:38 +0800)
commit1a1ef290f98920b82bb949c726230feb15d01379
treec3a1e4dc7a86a79303e978d17a29f6f7c7bfd41f
parentc97685364a14153ab246eb19471b72ca6a1f7981
mmc: core: sd: implement proper support for sd3.0 au sizes

This reverts and updates commit 77776fd0a4cc541b9 ("mmc: sd: fix the
maximum au_size for SD3.0"). The au_size for SD3.0 cannot be achieved
by a simple bit shift, so this needs to be implemented differently.
Also, don't print the warning in case of 0 since 'not defined' is
different from 'invalid'.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: stable <stable@vger.kernel.org> # [3.12, 3.13]
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/sd.c