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)
committerChris Ball <chris@printf.net>
Mon, 13 Jan 2014 19:02:35 +0000 (14:02 -0500)
commit9288cac05405a7da406097a44721aa4004609b4d
tree1f01e31ac29fb7ee6b63e4b49d374896587f6acb
parent9e7861f500ea2777c82e69b77b965fb8220cd1c5
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