Re: pata_sch: fix PSTS register reading.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



O> According to Poulsbo SCH datasheet (p. 353): "Reading reserved bits returns
> an indeterminate, inconsistent value".

Ok but 

> Bit 7 of PSTS register read as 1 when there is slave disk drive attached,
> despite being described as reserved with zero value. This causes wrong 
> feature decoding in ata_sff_tf_read.

The feature/error register doesn't have reserved bits so your patch and
diagnostic don't seem to make sense.

If the top bit is set in your error register post reset it is because you
have a device flagging a fail

0x81 means the slave flagged a fail
0x80/82-FF means both devices flagged a fail

--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux