mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
mmc: matsushita-common: Add missing else
Fix minor rebase omission, the else was missing which triggered two accesses to the register on 64bit variant of the IP. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
f23b208ebe
commit
5ee7c9dc77
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ void matsu_sd_writel(struct matsu_sd_priv *priv,
|
|||
{
|
||||
if (priv->caps & MATSU_SD_CAP_64BIT)
|
||||
writel(val, priv->regbase + (reg << 1));
|
||||
if (priv->caps & MATSU_SD_CAP_16BIT) {
|
||||
else if (priv->caps & MATSU_SD_CAP_16BIT) {
|
||||
writew(val & 0xffff, priv->regbase + (reg >> 1));
|
||||
if (reg == MATSU_SD_INFO1 || reg == MATSU_SD_INFO1_MASK ||
|
||||
reg == MATSU_SD_INFO2 || reg == MATSU_SD_INFO2_MASK ||
|
||||
|
|
Loading…
Reference in a new issue