diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 15:55:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 15:55:29 -0400 |
commit | 424a6f6ef990b7e9f56f6627bfc6c46b493faeb4 (patch) | |
tree | 0028356ed8003495fbbe1f716f359e3c8ebc35b6 /drivers/ata | |
parent | 1ab142d499294b844ecc81e8004db4ce029b0b61 (diff) | |
parent | cd8df932d894f3128c884e3ae1b2b484540513db (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
SCSI updates from James Bottomley:
"The update includes the usual assortment of driver updates (lpfc,
qla2xxx, qla4xxx, bfa, bnx2fc, bnx2i, isci, fcoe, hpsa) plus a huge
amount of infrastructure work in the SAS library and transport class
as well as an iSCSI update. There's also a new SCSI based virtio
driver."
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (177 commits)
[SCSI] qla4xxx: Update driver version to 5.02.00-k15
[SCSI] qla4xxx: trivial cleanup
[SCSI] qla4xxx: Fix sparse warning
[SCSI] qla4xxx: Add support for multiple session per host.
[SCSI] qla4xxx: Export CHAP index as sysfs attribute
[SCSI] scsi_transport: Export CHAP index as sysfs attribute
[SCSI] qla4xxx: Add support to display CHAP list and delete CHAP entry
[SCSI] iscsi_transport: Add support to display CHAP list and delete CHAP entry
[SCSI] pm8001: fix endian issue with code optimization.
[SCSI] pm8001: Fix possible racing condition.
[SCSI] pm8001: Fix bogus interrupt state flag issue.
[SCSI] ipr: update PCI ID definitions for new adapters
[SCSI] qla2xxx: handle default case in qla2x00_request_firmware()
[SCSI] isci: improvements in driver unloading routine
[SCSI] isci: improve phy event warnings
[SCSI] isci: debug, provide state-enum-to-string conversions
[SCSI] scsi_transport_sas: 'enable' phys on reset
[SCSI] libsas: don't recover end devices attached to disabled phys
[SCSI] libsas: fixup target_port_protocols for expanders that don't report sata
[SCSI] libsas: set attached device type and target protocols for local phys
...
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 34 | ||||
-rw-r--r-- | drivers/ata/libata-eh.c | 1 | ||||
-rw-r--r-- | drivers/ata/libata-scsi.c | 13 | ||||
-rw-r--r-- | drivers/ata/libata.h | 2 |
4 files changed, 33 insertions, 17 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index c06e0ec11556..e0bda9ff89cd 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -5936,29 +5936,31 @@ void ata_host_init(struct ata_host *host, struct device *dev, | |||
5936 | host->ops = ops; | 5936 | host->ops = ops; |
5937 | } | 5937 | } |
5938 | 5938 | ||
5939 | int ata_port_probe(struct ata_port *ap) | 5939 | void __ata_port_probe(struct ata_port *ap) |
5940 | { | 5940 | { |
5941 | int rc = 0; | 5941 | struct ata_eh_info *ehi = &ap->link.eh_info; |
5942 | unsigned long flags; | ||
5942 | 5943 | ||
5943 | /* probe */ | 5944 | /* kick EH for boot probing */ |
5944 | if (ap->ops->error_handler) { | 5945 | spin_lock_irqsave(ap->lock, flags); |
5945 | struct ata_eh_info *ehi = &ap->link.eh_info; | ||
5946 | unsigned long flags; | ||
5947 | 5946 | ||
5948 | /* kick EH for boot probing */ | 5947 | ehi->probe_mask |= ATA_ALL_DEVICES; |
5949 | spin_lock_irqsave(ap->lock, flags); | 5948 | ehi->action |= ATA_EH_RESET; |
5949 | ehi->flags |= ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET; | ||
5950 | 5950 | ||
5951 | ehi->probe_mask |= ATA_ALL_DEVICES; | 5951 | ap->pflags &= ~ATA_PFLAG_INITIALIZING; |
5952 | ehi->action |= ATA_EH_RESET; | 5952 | ap->pflags |= ATA_PFLAG_LOADING; |
5953 | ehi->flags |= ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET; | 5953 | ata_port_schedule_eh(ap); |
5954 | 5954 | ||
5955 | ap->pflags &= ~ATA_PFLAG_INITIALIZING; | 5955 | spin_unlock_irqrestore(ap->lock, flags); |
5956 | ap->pflags |= ATA_PFLAG_LOADING; | 5956 | } |
5957 | ata_port_schedule_eh(ap); | ||
5958 | 5957 | ||
5959 | spin_unlock_irqrestore(ap->lock, flags); | 5958 | int ata_port_probe(struct ata_port *ap) |
5959 | { | ||
5960 | int rc = 0; | ||
5960 | 5961 | ||
5961 | /* wait for EH to finish */ | 5962 | if (ap->ops->error_handler) { |
5963 | __ata_port_probe(ap); | ||
5962 | ata_port_wait_eh(ap); | 5964 | ata_port_wait_eh(ap); |
5963 | } else { | 5965 | } else { |
5964 | DPRINTK("ata%u: bus probe begin\n", ap->print_id); | 5966 | DPRINTK("ata%u: bus probe begin\n", ap->print_id); |
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index a9b282038000..c61316e9d2f7 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -863,6 +863,7 @@ void ata_port_wait_eh(struct ata_port *ap) | |||
863 | goto retry; | 863 | goto retry; |
864 | } | 864 | } |
865 | } | 865 | } |
866 | EXPORT_SYMBOL_GPL(ata_port_wait_eh); | ||
866 | 867 | ||
867 | static int ata_eh_nr_in_flight(struct ata_port *ap) | 868 | static int ata_eh_nr_in_flight(struct ata_port *ap) |
868 | { | 869 | { |
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 508a60bfe5c1..1ee00c8b5b04 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -3838,6 +3838,19 @@ void ata_sas_port_stop(struct ata_port *ap) | |||
3838 | } | 3838 | } |
3839 | EXPORT_SYMBOL_GPL(ata_sas_port_stop); | 3839 | EXPORT_SYMBOL_GPL(ata_sas_port_stop); |
3840 | 3840 | ||
3841 | int ata_sas_async_port_init(struct ata_port *ap) | ||
3842 | { | ||
3843 | int rc = ap->ops->port_start(ap); | ||
3844 | |||
3845 | if (!rc) { | ||
3846 | ap->print_id = ata_print_id++; | ||
3847 | __ata_port_probe(ap); | ||
3848 | } | ||
3849 | |||
3850 | return rc; | ||
3851 | } | ||
3852 | EXPORT_SYMBOL_GPL(ata_sas_async_port_init); | ||
3853 | |||
3841 | /** | 3854 | /** |
3842 | * ata_sas_port_init - Initialize a SATA device | 3855 | * ata_sas_port_init - Initialize a SATA device |
3843 | * @ap: SATA port to initialize | 3856 | * @ap: SATA port to initialize |
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 814486d35c44..2e26fcaf635b 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -105,6 +105,7 @@ extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); | |||
105 | extern struct ata_port *ata_port_alloc(struct ata_host *host); | 105 | extern struct ata_port *ata_port_alloc(struct ata_host *host); |
106 | extern const char *sata_spd_string(unsigned int spd); | 106 | extern const char *sata_spd_string(unsigned int spd); |
107 | extern int ata_port_probe(struct ata_port *ap); | 107 | extern int ata_port_probe(struct ata_port *ap); |
108 | extern void __ata_port_probe(struct ata_port *ap); | ||
108 | 109 | ||
109 | /* libata-acpi.c */ | 110 | /* libata-acpi.c */ |
110 | #ifdef CONFIG_ATA_ACPI | 111 | #ifdef CONFIG_ATA_ACPI |
@@ -151,7 +152,6 @@ extern void ata_eh_acquire(struct ata_port *ap); | |||
151 | extern void ata_eh_release(struct ata_port *ap); | 152 | extern void ata_eh_release(struct ata_port *ap); |
152 | extern enum blk_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd); | 153 | extern enum blk_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd); |
153 | extern void ata_scsi_error(struct Scsi_Host *host); | 154 | extern void ata_scsi_error(struct Scsi_Host *host); |
154 | extern void ata_port_wait_eh(struct ata_port *ap); | ||
155 | extern void ata_eh_fastdrain_timerfn(unsigned long arg); | 155 | extern void ata_eh_fastdrain_timerfn(unsigned long arg); |
156 | extern void ata_qc_schedule_eh(struct ata_queued_cmd *qc); | 156 | extern void ata_qc_schedule_eh(struct ata_queued_cmd *qc); |
157 | extern void ata_dev_disable(struct ata_device *dev); | 157 | extern void ata_dev_disable(struct ata_device *dev); |