This is a note to let you know that I've just added the patch titled

    pata_legacy: correctly mask recovery field for HT6560B

to the 3.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pata_legacy-correctly-mask-recovery-field-for-ht6560b.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 9716387311c790de381214c03e7f1b72b91a8189 Mon Sep 17 00:00:00 2001
From: Sergei Shtylyov <[email protected]>
Date: Thu, 19 Jan 2012 19:09:56 +0300
Subject: pata_legacy: correctly mask recovery field for HT6560B

From: Sergei Shtylyov <[email protected]>

commit 9716387311c790de381214c03e7f1b72b91a8189 upstream.

According to the HT6560H datasheet, the recovery timing field is 4-bit wide,
with a value of 0 meaning 16 cycles. Correct obvious thinko in the recovery
field mask.

Signed-off-by: Sergei Shtylyov <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/ata/pata_legacy.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/drivers/ata/pata_legacy.c
+++ b/drivers/ata/pata_legacy.c
@@ -396,8 +396,7 @@ static void ht6560b_set_piomode(struct a
        ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000);
 
        active = clamp_val(t.active, 2, 15);
-       recover = clamp_val(t.recover, 2, 16);
-       recover &= 0x15;
+       recover = clamp_val(t.recover, 2, 16) & 0x0F;
 
        inb(0x3E6);
        inb(0x3E6);


Patches currently in stable-queue which might be from [email protected] 
are

queue-3.0/pata_legacy-correctly-mask-recovery-field-for-ht6560b.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to