Hello.
On 10-09-2012 6:53, Xie Shaohui-B21989 wrote:
+ /* Workaround for data length mismatch errata */
+ if (unlikely(hstatus INT_ON_DATA_LENGTH_MISMATCH)) {
+ for (tag = 0; tag ATA_MAX_QUEUE; tag++) {
+ qc = ata_qc_from_tag(ap, tag);
+
Subject: Re: [PATCH][v3] sata_fsl: add workaround for data length
mismatch on freescale V2 controller
Hello.
On 10-09-2012 6:53, Xie Shaohui-B21989 wrote:
+ /* Workaround for data length mismatch errata */
+ if (unlikely(hstatus INT_ON_DATA_LENGTH_MISMATCH)) {
+ for (tag = 0
+ /* Workaround for data length mismatch errata */
+ if (unlikely(hstatus INT_ON_DATA_LENGTH_MISMATCH)) {
+ for (tag = 0; tag ATA_MAX_QUEUE; tag++) {
+ qc = ata_qc_from_tag(ap, tag);
+ if (qc ata_is_atapi(qc-tf.protocol)) {
+
On Sep 7, 2012, at 5:01 AM, Shaohui Xie wrote:
The freescale V2 SATA controller checks if the received data length matches
the programmed length 'ttl', if not, it assumes that this is an error.
In ATAPI, the 'ttl' is based on max allocation length and not the actual
data transfer length,