From: Rafael I. Z. <riz...@ya...> - 2007-11-07 14:36:41
|
Hello, We have not fixed a problem with CF and libata on old sh3 hp machines (620lx and 660lx at least) which gives us a "qc timeout" on boot time. I know that the patch below fixes that one, but I don't know how we should solve that problem in the correct way. Any idea? Regards --- a/drivers/ata/libata-core.c 2007-11-07 11:07:18.000000000 -0300 +++ b/drivers/ata/libata-core.c 2007-11-07 11:11:23.000000000 -0300 @@ -327,7 +327,7 @@ int ata_build_rw_tf(struct ata_taskfile u64 block, u32 n_block, unsigned int tf_flags, unsigned int tag) { - tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; + tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_POLLING; tf->flags |= tf_flags; if (ata_ncq_enabled(dev) && likely(tag != ATA_TAG_INTERNAL)) { @@ -4502,7 +4502,7 @@ static unsigned int ata_dev_init_params( ata_tf_init(dev, &tf); tf.command = ATA_CMD_INIT_DEV_PARAMS; - tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; + tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_POLLING; tf.protocol = ATA_PROT_NODATA; tf.nsect = sectors; tf.device |= (heads - 1) & 0x0f; /* max head = num. of heads - 1 */ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |