Skip to content
Commit 2c011847 authored by Juhyun \(Justin\) Oh's avatar Juhyun \(Justin\) Oh Committed by Pantelis Antoniou
Browse files

Fix wrong sdhci host control register read and write



The patch fixes the improper read and write of sdhci
host control register for sdma transfer.

The problem comes when reading and writing 1 byte long
host control register with the sdhci_readl() and
sdhci_writel(). The misuse of these functions overwrite
the value of the next registers which are in 4 bytes boundary.

This patch replaces four byte register read/write functions
with one byte read/write ones. Beside, it eliminates
unnecessary bit operation. i.e. or-ing zero against a variable.

Signed-off-by: default avatarJuhyun (Justin) Oh <Juhyun_Oh@sigmadesigns.com>
parent e8232fea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment