diff options
Diffstat (limited to 'drivers/scsi/sata_svw.c')
-rw-r--r-- | drivers/scsi/sata_svw.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/scsi/sata_svw.c b/drivers/scsi/sata_svw.c index 53b0d5c0a61f..c94b870cf378 100644 --- a/drivers/scsi/sata_svw.c +++ b/drivers/scsi/sata_svw.c | |||
@@ -54,7 +54,7 @@ | |||
54 | #endif /* CONFIG_PPC_OF */ | 54 | #endif /* CONFIG_PPC_OF */ |
55 | 55 | ||
56 | #define DRV_NAME "sata_svw" | 56 | #define DRV_NAME "sata_svw" |
57 | #define DRV_VERSION "1.07" | 57 | #define DRV_VERSION "1.8" |
58 | 58 | ||
59 | enum { | 59 | enum { |
60 | /* Taskfile registers offsets */ | 60 | /* Taskfile registers offsets */ |
@@ -257,7 +257,7 @@ static int k2_sata_proc_info(struct Scsi_Host *shost, char *page, char **start, | |||
257 | int len, index; | 257 | int len, index; |
258 | 258 | ||
259 | /* Find the ata_port */ | 259 | /* Find the ata_port */ |
260 | ap = (struct ata_port *) &shost->hostdata[0]; | 260 | ap = ata_shost_to_port(shost); |
261 | if (ap == NULL) | 261 | if (ap == NULL) |
262 | return 0; | 262 | return 0; |
263 | 263 | ||
@@ -299,6 +299,7 @@ static struct scsi_host_template k2_sata_sht = { | |||
299 | .proc_name = DRV_NAME, | 299 | .proc_name = DRV_NAME, |
300 | .dma_boundary = ATA_DMA_BOUNDARY, | 300 | .dma_boundary = ATA_DMA_BOUNDARY, |
301 | .slave_configure = ata_scsi_slave_config, | 301 | .slave_configure = ata_scsi_slave_config, |
302 | .slave_destroy = ata_scsi_slave_destroy, | ||
302 | #ifdef CONFIG_PPC_OF | 303 | #ifdef CONFIG_PPC_OF |
303 | .proc_info = k2_sata_proc_info, | 304 | .proc_info = k2_sata_proc_info, |
304 | #endif | 305 | #endif |
@@ -313,14 +314,17 @@ static const struct ata_port_operations k2_sata_ops = { | |||
313 | .check_status = k2_stat_check_status, | 314 | .check_status = k2_stat_check_status, |
314 | .exec_command = ata_exec_command, | 315 | .exec_command = ata_exec_command, |
315 | .dev_select = ata_std_dev_select, | 316 | .dev_select = ata_std_dev_select, |
316 | .phy_reset = sata_phy_reset, | ||
317 | .bmdma_setup = k2_bmdma_setup_mmio, | 317 | .bmdma_setup = k2_bmdma_setup_mmio, |
318 | .bmdma_start = k2_bmdma_start_mmio, | 318 | .bmdma_start = k2_bmdma_start_mmio, |
319 | .bmdma_stop = ata_bmdma_stop, | 319 | .bmdma_stop = ata_bmdma_stop, |
320 | .bmdma_status = ata_bmdma_status, | 320 | .bmdma_status = ata_bmdma_status, |
321 | .qc_prep = ata_qc_prep, | 321 | .qc_prep = ata_qc_prep, |
322 | .qc_issue = ata_qc_issue_prot, | 322 | .qc_issue = ata_qc_issue_prot, |
323 | .eng_timeout = ata_eng_timeout, | 323 | .data_xfer = ata_mmio_data_xfer, |
324 | .freeze = ata_bmdma_freeze, | ||
325 | .thaw = ata_bmdma_thaw, | ||
326 | .error_handler = ata_bmdma_error_handler, | ||
327 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
324 | .irq_handler = ata_interrupt, | 328 | .irq_handler = ata_interrupt, |
325 | .irq_clear = ata_bmdma_irq_clear, | 329 | .irq_clear = ata_bmdma_irq_clear, |
326 | .scr_read = k2_sata_scr_read, | 330 | .scr_read = k2_sata_scr_read, |
@@ -420,8 +424,8 @@ static int k2_sata_init_one (struct pci_dev *pdev, const struct pci_device_id *e | |||
420 | writel(0x0, mmio_base + K2_SATA_SIM_OFFSET); | 424 | writel(0x0, mmio_base + K2_SATA_SIM_OFFSET); |
421 | 425 | ||
422 | probe_ent->sht = &k2_sata_sht; | 426 | probe_ent->sht = &k2_sata_sht; |
423 | probe_ent->host_flags = ATA_FLAG_SATA | ATA_FLAG_SATA_RESET | | 427 | probe_ent->host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | |
424 | ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO; | 428 | ATA_FLAG_MMIO; |
425 | probe_ent->port_ops = &k2_sata_ops; | 429 | probe_ent->port_ops = &k2_sata_ops; |
426 | probe_ent->n_ports = 4; | 430 | probe_ent->n_ports = 4; |
427 | probe_ent->irq = pdev->irq; | 431 | probe_ent->irq = pdev->irq; |