Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116276
b: refs/heads/master
c: 18280ff
h: refs/heads/master
v: v3
  • Loading branch information
ben@fluff.org.uk authored and Pierre Ossman committed Oct 15, 2008
1 parent 9108400 commit f9b3972
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 088a78af978d0c8e339071a9b2bca1f4cb368f30
refs/heads/master: 18280fff663b8ba57e349a81b999604bc1106926
10 changes: 8 additions & 2 deletions trunk/drivers/mmc/host/s3cmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ static void do_pio_read(struct s3cmci_host *host)
{
int res;
u32 fifo;
u32 *ptr;
u32 fifo_words;
void __iomem *from_ptr;

Expand Down Expand Up @@ -283,8 +284,10 @@ static void do_pio_read(struct s3cmci_host *host)
host->pio_count += fifo;

fifo_words = fifo >> 2;
ptr = host->pio_ptr;
while (fifo_words--)
*(host->pio_ptr++) = readl(from_ptr);
*ptr++ = readl(from_ptr);
host->pio_ptr = ptr;

if (fifo & 3) {
u32 n = fifo & 3;
Expand Down Expand Up @@ -319,6 +322,7 @@ static void do_pio_write(struct s3cmci_host *host)
void __iomem *to_ptr;
int res;
u32 fifo;
u32 *ptr;

to_ptr = host->base + host->sdidata;

Expand Down Expand Up @@ -353,8 +357,10 @@ static void do_pio_write(struct s3cmci_host *host)
host->pio_count += fifo;

fifo = (fifo + 3) >> 2;
ptr = host->pio_ptr;
while (fifo--)
writel(*(host->pio_ptr++), to_ptr);
writel(*ptr++, to_ptr);
host->pio_ptr = ptr;
}

enable_imask(host, S3C2410_SDIIMSK_TXFIFOHALF);
Expand Down

0 comments on commit f9b3972

Please sign in to comment.