projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a1f21b
)
[ARM] pxa: ensure SSP TX FIFO is empty instead of not full for pxa3xx
author
eric miao
<eric.miao@marvell.com>
Fri, 23 Nov 2007 06:55:59 +0000
(14:55 +0800)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 15:07:53 +0000
(15:07 +0000)
Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/ssp.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-pxa/ssp.c
b/arch/arm/mach-pxa/ssp.c
index
575b662
..
4954da9
100644
(file)
--- a/
arch/arm/mach-pxa/ssp.c
+++ b/
arch/arm/mach-pxa/ssp.c
@@
-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)