Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9b8e8de7e59b3a2dab3113d620b52dc8ba890fb3
Commit:     9b8e8de7e59b3a2dab3113d620b52dc8ba890fb3
Parent:     13cc546be3060324de9d92ebde3bc9dbd950df23
Author:     Ondrej Zary <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 10 17:13:19 2008 -0500
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Thu Jan 10 17:13:19 2008 -0500

    libata and starting/stopping ATAPI floppy devices
    
    Prevent libata from starting/stopping non-ATA devices (like ATAPI floppy
    drives) as they don't seem to like it:
    
    sd 1:0:1:0: [sdb] Starting disk
    ata2.01: configured for PIO2
    sd 1:0:1:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
    sd 1:0:1:0: [sdb] Sense Key : 0x2 [current]
    sd 1:0:1:0: [sdb] ASC=0x3a ASCQ=0x0
    
    Signed-off-by: Ondrej Zary <[EMAIL PROTECTED]>
    Signed-off-by: Tejun Heo <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/ata/libata-scsi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index a883bb0..264ae60 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -872,7 +872,8 @@ int ata_scsi_slave_config(struct scsi_device *sdev)
 
        ata_scsi_sdev_config(sdev);
 
-       sdev->manage_start_stop = 1;
+       if (dev->class == ATA_DEV_ATA)
+               sdev->manage_start_stop = 1;
 
        if (dev)
                ata_scsi_dev_config(sdev, dev);
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to