Title: [6917] branches/2009R1/sound/soc/blackfin/bf5xx-sport.c: bug[#5025]register's value should be volatile
- Revision
- 6917
- Author
- cliff
- Date
- 2009-07-03 04:30:23 -0500 (Fri, 03 Jul 2009)
Log Message
bug[#5025]register's value should be volatile
Modified Paths
Diff
Modified: branches/2009R1/sound/soc/blackfin/bf5xx-sport.c (6916 => 6917)
--- branches/2009R1/sound/soc/blackfin/bf5xx-sport.c 2009-07-03 07:44:50 UTC (rev 6916)
+++ branches/2009R1/sound/soc/blackfin/bf5xx-sport.c 2009-07-03 09:30:23 UTC (rev 6917)
@@ -181,11 +181,11 @@
sport->regs->rcr1 |= RSPEN;
sport->regs->tcr1 |= TSPEN;
SSYNC();
- stat = sport->regs->stat;
+ stat = *(volatile u16 *)(&sport->regs->stat);
while (!(stat & TUVF)) {
if (stat & RXNE)
- dummy = sport->regs->rx;
- stat = sport->regs->stat;
+ dummy = *(volatile u16 *)(&sport->regs->rx);
+ stat = *(volatile u16 *)(&sport->regs->stat);
}
sport->regs->tcr1 &= ~TSPEN;
sport->regs->rcr1 &= ~RSPEN;
@@ -194,7 +194,6 @@
stat = get_dma_curr_irqstat(sport->dma_tx_chan);
if (stat & (DMA_DONE | DMA_ERR))
clear_dma_irqstat(sport->dma_tx_chan);
-
return 0;
}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits