[#6677] bfin_sport
Submitted By: fuxiong jiang
Open Date
2011-07-03 10:18:15
Priority:
Medium Assignee:
Nobody
Status:
Open Fixed In Release:
N/A
Found In Release:
2009R1.1-RC4 Release:
Category:
N/A Board:
N/A
Processor:
BF531 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
2010R1-RC2
App binary format:
N/A
Summary: bfin_sport
Details:
在drivers/char/bfin_sport.c中,sport_write函数,在使能sport DMA的情况下,如果只写入4bytes数据,或者更少的情况下,dma中断会在dev->regs->tcr1 |= TSPEN;执行之前响应,在dma中断函数dma_tx_irq_handler中,会等待sport传输完成,而实际上这会儿sport还没有启动,所以直接导致处理器死机。
Follow-ups
--- Sonic Zhang 2011-07-03 23:55:48
The work around could be use PIO mode only for buffer size <=4.
--- Sonic Zhang 2011-07-03 23:59:46
Or disable IRQ before enable sport in sport_write.
--- Sonic Zhang 2011-07-04 02:46:17
Fixed.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found