Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77559
b: refs/heads/master
c: 732ce16
h: refs/heads/master
i:
  77557: 4323a37
  77555: e48b87b
  77551: 8a88a15
v: v3
  • Loading branch information
eric miao authored and Russell King committed Jan 26, 2008
1 parent a3e2c5e commit d9477c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a1f21b1e546fafe840944f02949c1a8a8725132
refs/heads/master: 732ce16066964bb7b60947750e48374cc32bd310
10 changes: 10 additions & 0 deletions trunk/arch/arm/mach-pxa/ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ int ssp_flush(struct ssp_dev *dev)
struct ssp_device *ssp = dev->ssp;
int timeout = TIMEOUT * 2;

/* ensure TX FIFO is empty instead of not full */
if (cpu_is_pxa3xx()) {
while (__raw_readl(ssp->mmio_base + SSSR) & 0xf00) {
if (!--timeout)
return -ETIMEDOUT;
cpu_relax();
}
timeout = TIMEOUT * 2;
}

do {
while (__raw_readl(ssp->mmio_base + SSSR) & SSSR_RNE) {
if (!--timeout)
Expand Down

0 comments on commit d9477c6

Please sign in to comment.