mmc: stm32_sdmmc2: correctly manage block size
authorYann Gautier <yann.gautier@st.com>
Tue, 11 Jun 2019 18:03:07 +0000 (20:03 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 2 Sep 2019 15:53:16 +0000 (17:53 +0200)
commitd9d803e0be7af7785d8ea72e79b2926db581bb65
tree74b7a52afbe9ba96032d1a37765acb68e6a5d8bd
parent2c2c9f1eb1596793dd590cfc19d65488fd286dfc
mmc: stm32_sdmmc2: correctly manage block size

DBLOCKSIZE should be filled such as the data size is 2^DBLOCKSIZE.
Hence it is calculated with __builtin_ctz.

Change-Id: Id6b5ff9b594afc4fc523a388011beed307e6abd1
Signed-off-by: Yann Gautier <yann.gautier@st.com>
drivers/st/mmc/stm32_sdmmc2.c