mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-18 07:58:52 +09:00
Merge branch 'master' of git://git.denx.de/u-boot-samsung
This commit is contained in:
commit
ac6e5fed31
@ -121,7 +121,7 @@ static int dwmci_data_transfer(struct dwmci_host *host, struct mmc_data *data)
|
|||||||
|
|
||||||
if (host->fifo_mode && size) {
|
if (host->fifo_mode && size) {
|
||||||
if (data->flags == MMC_DATA_READ) {
|
if (data->flags == MMC_DATA_READ) {
|
||||||
if ((dwmci_readl(host, DWMCI_RINTSTS) &&
|
if ((dwmci_readl(host, DWMCI_RINTSTS) &
|
||||||
DWMCI_INTMSK_RXDR)) {
|
DWMCI_INTMSK_RXDR)) {
|
||||||
len = dwmci_readl(host, DWMCI_STATUS);
|
len = dwmci_readl(host, DWMCI_STATUS);
|
||||||
len = (len >> DWMCI_FIFO_SHIFT) &
|
len = (len >> DWMCI_FIFO_SHIFT) &
|
||||||
@ -133,7 +133,7 @@ static int dwmci_data_transfer(struct dwmci_host *host, struct mmc_data *data)
|
|||||||
DWMCI_INTMSK_RXDR);
|
DWMCI_INTMSK_RXDR);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((dwmci_readl(host, DWMCI_RINTSTS) &&
|
if ((dwmci_readl(host, DWMCI_RINTSTS) &
|
||||||
DWMCI_INTMSK_TXDR)) {
|
DWMCI_INTMSK_TXDR)) {
|
||||||
len = dwmci_readl(host, DWMCI_STATUS);
|
len = dwmci_readl(host, DWMCI_STATUS);
|
||||||
len = fifo_depth - ((len >>
|
len = fifo_depth - ((len >>
|
||||||
|
Loading…
Reference in New Issue
Block a user