|
发表于 2010-12-17 00:31:05
|
显示全部楼层
。。。
(1)关于CF卡时“hda: task_out_intr: status=0x50 { DriveReady SeekComplete } ide: failed opcode was: unknown”
ide.h中的WAIT_DRQ是HZ / 10(100ms),CF卡时要改为3* HZ / 10(300ms-1s),linux >=2.6.33已经修改为1s.
(2)关于CF卡时“lost interrupt”
ide-iops.c:
+ { //wjs update start //486DX CF bug!!
+ int i;
+ for (i = 0; i < 10000; i++) { //wjs update end
/* Note: this may clear a pending IRQ!! */
stat = hwif->tp_ops->read_status(hwif);
+ if(! (stat & ATA_BUSY)) break; //wjs update start //486DX CF bug!!
+ udelay(1);
+ }
+ } //wjs update end
@ by wenjinshan,guilin china |
|