diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-01-10 14:17:15 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-01-10 14:24:42 -0500 |
commit | 1a74bc68e4c0534d150e6454b45a70dab831fa32 (patch) | |
tree | 30068543e36dd4f36b3821a9585b53fe22c32920 /drivers/ieee1394/sbp2.c | |
parent | bf81b46482c0fa8ea638e409d39768ea92a6b0f0 (diff) |
ieee1394: sbp2: fix probing of some DVD-ROM/RWs
Since commit 98e238cd42be6c0852da519303cf0182690f8d9f in Linux 2.6.19,
"ieee1394: sbp2: don't prefer MODE SENSE 10", some FireWire DVD-ROMs and
DVD-RWs were mistaken as CD-ROM because sr_mod now sent MODE SENSE 6.
The MMC command set includes only MODE SENSE 10.
http://bugzilla.kernel.org/show_bug.cgi?id=7800
This fix lets sbp2 switch scsi_device.use_10_for_rw on for MMC LUs.
This should rather be done in the command set driver sr_mod, not in the
sbp2 transport driver, and an according patch will follow for a next
Linux release.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/sbp2.c')
-rw-r--r-- | drivers/ieee1394/sbp2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index 2b5d7ab3adf7..4325aac7733d 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
@@ -2020,6 +2020,8 @@ static int sbp2scsi_slave_configure(struct scsi_device *sdev) | |||
2020 | blk_queue_dma_alignment(sdev->request_queue, (512 - 1)); | 2020 | blk_queue_dma_alignment(sdev->request_queue, (512 - 1)); |
2021 | sdev->use_10_for_rw = 1; | 2021 | sdev->use_10_for_rw = 1; |
2022 | 2022 | ||
2023 | if (sdev->type == TYPE_ROM) | ||
2024 | sdev->use_10_for_ms = 1; | ||
2023 | if (sdev->type == TYPE_DISK && | 2025 | if (sdev->type == TYPE_DISK && |
2024 | lu->workarounds & SBP2_WORKAROUND_MODE_SENSE_8) | 2026 | lu->workarounds & SBP2_WORKAROUND_MODE_SENSE_8) |
2025 | sdev->skip_ms_page_8 = 1; | 2027 | sdev->skip_ms_page_8 = 1; |