Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29479
b: refs/heads/master
c: 3153436
h: refs/heads/master
i:
  29477: 6320e5c
  29475: dfd88c8
  29471: f964888
v: v3
  • Loading branch information
Tejun Heo committed May 31, 2006
1 parent d6ea6be commit 4f8302a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab5b3a5b2d887ce63f8c6a7fcb9f5c07ca4b4d43
refs/heads/master: 315343637b988ac32d730a6a9f7bf5866838bcb0
16 changes: 6 additions & 10 deletions trunk/drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,15 @@ void ata_dump_status(unsigned id, struct ata_taskfile *tf)
int ata_scsi_device_resume(struct scsi_device *sdev)
{
struct ata_port *ap = ata_shost_to_port(sdev->host);
struct ata_device *dev = &ap->device[sdev->id];
struct ata_device *dev = __ata_scsi_find_dev(ap, sdev);

return ata_device_resume(dev);
}

int ata_scsi_device_suspend(struct scsi_device *sdev, pm_message_t state)
{
struct ata_port *ap = ata_shost_to_port(sdev->host);
struct ata_device *dev = &ap->device[sdev->id];
struct ata_device *dev = __ata_scsi_find_dev(ap, sdev);

return ata_device_suspend(dev, state);
}
Expand Down Expand Up @@ -713,19 +713,15 @@ static void ata_scsi_dev_config(struct scsi_device *sdev,

int ata_scsi_slave_config(struct scsi_device *sdev)
{
struct ata_port *ap = ata_shost_to_port(sdev->host);
struct ata_device *dev = __ata_scsi_find_dev(ap, sdev);

ata_scsi_sdev_config(sdev);

blk_queue_max_phys_segments(sdev->request_queue, LIBATA_MAX_PRD);

if (sdev->id < ATA_MAX_DEVICES) {
struct ata_port *ap;
struct ata_device *dev;

ap = ata_shost_to_port(sdev->host);
dev = &ap->device[sdev->id];

if (dev)
ata_scsi_dev_config(sdev, dev);
}

return 0; /* scsi layer doesn't check return value, sigh */
}
Expand Down

0 comments on commit 4f8302a

Please sign in to comment.