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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:50:12 +0000 (13:50 -0800)
commitd72025f6c31b108ecce46dd163a5e178f8aa870b
tree33e9288be2fe6dca8b6f9430f93cc0e791680289
parentdc00440ad684d1df39941efe0addb997dc1fea82
mmc: core: sd: implement proper support for sd3.0 au sizes

commit 9288cac05405a7da406097a44721aa4004609b4d upstream.

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>
Signed-off-by: Chris Ball <chris@printf.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sd.c