Commit:     db64bcf387aae6c7afad122a529d7d0513d3c5db
Parent:     dfcc173d71b029eb2b10cf99bb5b4e8749e09799
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 31 10:17:06 2007 +0900
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Sat Nov 3 08:47:27 2007 -0400

    libata: request PHY speed configuration on SControl access failure
    In sata_set_spd_needed(), if SControl read failed, it returned 0 and
    skipped PHY speed configuration.  However, if SControl access fails,
    it's far more logical to request PHY speed configuration.  Reverse the
    Signed-off-by: Tejun Heo <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/ata/libata-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 24b3bd6..3a1ec4e 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2784,7 +2784,7 @@ int sata_set_spd_needed(struct ata_link *link)
        u32 scontrol;
        if (sata_scr_read(link, SCR_CONTROL, &scontrol))
-               return 0;
+               return 1;
        return __sata_set_spd_needed(link, &scontrol);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to