diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 13:19:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 13:19:17 -0500 |
commit | abce00f962a11ed6f748c2569e11695a30716b53 (patch) | |
tree | f76a7d999dc47bb84cc72b2691aa47080ef97262 /drivers/ata/libata-scsi.c | |
parent | 90160371b3a3e67ef78d68210a94dd30664a703d (diff) | |
parent | 318893e1429a9d50569a0379d1e20b0ecc45c555 (diff) |
Merge branch 'upstream-linus' of git://github.com/jgarzik/libata-dev
* 'upstream-linus' of git://github.com/jgarzik/libata-dev:
ahci: support the STA2X11 I/O Hub
pata_bf54x: fix BMIDE status register emulation
ata: add ata port hibernate callbacks
ata: update ata port's runtime status during system resume
[SCSI] runtime resume parent for child's system-resume
ahci: platform support for suspend/resume
libata-core: kill duplicate statement in ata_do_set_mode()
pata_of_platform: remove direct dependency on OF_IRQ
SATA/PATA: convert drivers/ata/* to use module_platform_driver()
pata_cs5536: forward port changes from cs5536
libata-sff: use ATAPI_{COD|IO}
ata: add ata port runtime PM callbacks
ata: add ata port system PM callbacks
[SCSI] sd: check runtime PM status in sd_shutdown
[SCSI] check runtime PM status in system PM
[SCSI] add flag to skip the runtime PM calls on the host
ata: make ata port as parent device of scsi host
ahci: start engine only during soft/hard resets
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | 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 2a5412e7e9c1..508a60bfe5c1 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -3381,6 +3381,7 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht) | |||
3381 | if (!shost) | 3381 | if (!shost) |
3382 | goto err_alloc; | 3382 | goto err_alloc; |
3383 | 3383 | ||
3384 | shost->eh_noresume = 1; | ||
3384 | *(struct ata_port **)&shost->hostdata[0] = ap; | 3385 | *(struct ata_port **)&shost->hostdata[0] = ap; |
3385 | ap->scsi_host = shost; | 3386 | ap->scsi_host = shost; |
3386 | 3387 | ||
@@ -3398,7 +3399,7 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht) | |||
3398 | */ | 3399 | */ |
3399 | shost->max_host_blocked = 1; | 3400 | shost->max_host_blocked = 1; |
3400 | 3401 | ||
3401 | rc = scsi_add_host(ap->scsi_host, ap->host->dev); | 3402 | rc = scsi_add_host(ap->scsi_host, &ap->tdev); |
3402 | if (rc) | 3403 | if (rc) |
3403 | goto err_add; | 3404 | goto err_add; |
3404 | } | 3405 | } |