diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 11:57:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 11:57:32 -0400 |
commit | abab012a52237693ae48a655ece30cacb2ce4cf7 (patch) | |
tree | 6e687bd30b18ba564c22b41b04a742c4175e7802 /drivers/ata/libata-scsi.c | |
parent | 79d8a8f736151b12129984b1250fd708440e742c (diff) | |
parent | 50be5e3657cd2851a297dc0b3fd459f25829d29b (diff) |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (29 commits)
ahci: add another PCI ID for marvell
libata: Use 'bool' return value for ata_id_XXX
sata_fsl: Update RX_WATER_MARK for TRANSCFG
sata_fsl: Fix wrong Device Error Register usage
libata: Include WWN ID in inquiry VPD emulation
ata/pata_arasan_cf: fill dma chan->private from pdata->dma_priv
ata: pata: Convert pr_*(DRV_NAME ...) to pr_fmt/pr_<level>
pata_arasan_cf: fix printk format string warning
pata_arasan_cf: Adding support for arasan compact flash host controller
libata-sff: add ata_sff_queue_work() & ata_sff_queue_delayed_work()
ahci: AHCI mode SATA patch for Intel Patsburg SATA RAID controller
ahci: recognize Marvell 88se9125 PCIe SATA 6.0 Gb/s controller
libata: remove ATA_FLAG_LPM
libata: remove ATA_FLAG_NO_LEGACY
libata: remove ATA_FLAG_MMIO
libata: remove ATA_FLAG_{SRST|SATA_RESET}
ipr/sas_ata: use mode mask macros from <linux/ata.h>
sata_dwc_460ex: add debugging options
sata_dwc_460ex: fix misuse of ata_get_cmd_descript()
sata_dwc_460ex: fix return value of dma_dwc_xfer_setup()
...
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 600f6353ecf8..a83419991357 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -2056,6 +2056,17 @@ static unsigned int ata_scsiop_inq_83(struct ata_scsi_args *args, u8 *rbuf) | |||
2056 | ATA_ID_SERNO_LEN); | 2056 | ATA_ID_SERNO_LEN); |
2057 | num += ATA_ID_SERNO_LEN; | 2057 | num += ATA_ID_SERNO_LEN; |
2058 | 2058 | ||
2059 | if (ata_id_has_wwn(args->id)) { | ||
2060 | /* SAT defined lu world wide name */ | ||
2061 | /* piv=0, assoc=lu, code_set=binary, designator=NAA */ | ||
2062 | rbuf[num + 0] = 1; | ||
2063 | rbuf[num + 1] = 3; | ||
2064 | rbuf[num + 3] = ATA_ID_WWN_LEN; | ||
2065 | num += 4; | ||
2066 | ata_id_string(args->id, (unsigned char *) rbuf + num, | ||
2067 | ATA_ID_WWN, ATA_ID_WWN_LEN); | ||
2068 | num += ATA_ID_WWN_LEN; | ||
2069 | } | ||
2059 | rbuf[3] = num - 4; /* page len (assume less than 256 bytes) */ | 2070 | rbuf[3] = num - 4; /* page len (assume less than 256 bytes) */ |
2060 | return 0; | 2071 | return 0; |
2061 | } | 2072 | } |
@@ -3759,7 +3770,7 @@ struct ata_port *ata_sas_port_alloc(struct ata_host *host, | |||
3759 | return NULL; | 3770 | return NULL; |
3760 | 3771 | ||
3761 | ap->port_no = 0; | 3772 | ap->port_no = 0; |
3762 | ap->lock = shost->host_lock; | 3773 | ap->lock = &host->lock; |
3763 | ap->pio_mask = port_info->pio_mask; | 3774 | ap->pio_mask = port_info->pio_mask; |
3764 | ap->mwdma_mask = port_info->mwdma_mask; | 3775 | ap->mwdma_mask = port_info->mwdma_mask; |
3765 | ap->udma_mask = port_info->udma_mask; | 3776 | ap->udma_mask = port_info->udma_mask; |
@@ -3821,7 +3832,7 @@ int ata_sas_port_init(struct ata_port *ap) | |||
3821 | 3832 | ||
3822 | if (!rc) { | 3833 | if (!rc) { |
3823 | ap->print_id = ata_print_id++; | 3834 | ap->print_id = ata_print_id++; |
3824 | rc = ata_bus_probe(ap); | 3835 | rc = ata_port_probe(ap); |
3825 | } | 3836 | } |
3826 | 3837 | ||
3827 | return rc; | 3838 | return rc; |