aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ahci.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-30 20:24:34 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-10-30 20:24:34 -0500
commit95dbf5c4be080e94880ead13773d1a14eec8f4de (patch)
tree9113691b4b6c689989b4528ee0f3df3689c42066 /drivers/scsi/ahci.c
parent054ee8fd39f1b5d50e803f126b63f400d631eea4 (diff)
parent6e9d6b8ee4e0c37d3952256e6472c57490d6780d (diff)
Merge branch 'master'
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r--drivers/scsi/ahci.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
index 25a47d7afa2..8420204c2ea 100644
--- a/drivers/scsi/ahci.c
+++ b/drivers/scsi/ahci.c
@@ -41,6 +41,7 @@
41#include <linux/interrupt.h> 41#include <linux/interrupt.h>
42#include <linux/sched.h> 42#include <linux/sched.h>
43#include <linux/dma-mapping.h> 43#include <linux/dma-mapping.h>
44#include <linux/device.h>
44#include "scsi.h" 45#include "scsi.h"
45#include <scsi/scsi_host.h> 46#include <scsi/scsi_host.h>
46#include <linux/libata.h> 47#include <linux/libata.h>
@@ -682,10 +683,10 @@ static irqreturn_t ahci_interrupt (int irq, void *dev_instance, struct pt_regs *
682 if (!ahci_host_intr(ap, qc)) 683 if (!ahci_host_intr(ap, qc))
683 if (ata_ratelimit()) { 684 if (ata_ratelimit()) {
684 struct pci_dev *pdev = 685 struct pci_dev *pdev =
685 to_pci_dev(ap->host_set->dev); 686 to_pci_dev(ap->host_set->dev);
686 printk(KERN_WARNING 687 dev_printk(KERN_WARNING, &pdev->dev,
687 "ahci(%s): unhandled interrupt on port %u\n", 688 "unhandled interrupt on port %u\n",
688 pci_name(pdev), i); 689 i);
689 } 690 }
690 691
691 VPRINTK("port %u\n", i); 692 VPRINTK("port %u\n", i);
@@ -693,10 +694,9 @@ static irqreturn_t ahci_interrupt (int irq, void *dev_instance, struct pt_regs *
693 VPRINTK("port %u (no irq)\n", i); 694 VPRINTK("port %u (no irq)\n", i);
694 if (ata_ratelimit()) { 695 if (ata_ratelimit()) {
695 struct pci_dev *pdev = 696 struct pci_dev *pdev =
696 to_pci_dev(ap->host_set->dev); 697 to_pci_dev(ap->host_set->dev);
697 printk(KERN_WARNING 698 dev_printk(KERN_WARNING, &pdev->dev,
698 "ahci(%s): interrupt on disabled port %u\n", 699 "interrupt on disabled port %u\n", i);
699 pci_name(pdev), i);
700 } 700 }
701 } 701 }
702 702
@@ -768,8 +768,8 @@ static int ahci_host_init(struct ata_probe_ent *probe_ent)
768 768
769 tmp = readl(mmio + HOST_CTL); 769 tmp = readl(mmio + HOST_CTL);
770 if (tmp & HOST_RESET) { 770 if (tmp & HOST_RESET) {
771 printk(KERN_ERR DRV_NAME "(%s): controller reset failed (0x%x)\n", 771 dev_printk(KERN_ERR, &pdev->dev,
772 pci_name(pdev), tmp); 772 "controller reset failed (0x%x)\n", tmp);
773 return -EIO; 773 return -EIO;
774 } 774 }
775 775
@@ -797,22 +797,22 @@ static int ahci_host_init(struct ata_probe_ent *probe_ent)
797 if (rc) { 797 if (rc) {
798 rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 798 rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
799 if (rc) { 799 if (rc) {
800 printk(KERN_ERR DRV_NAME "(%s): 64-bit DMA enable failed\n", 800 dev_printk(KERN_ERR, &pdev->dev,
801 pci_name(pdev)); 801 "64-bit DMA enable failed\n");
802 return rc; 802 return rc;
803 } 803 }
804 } 804 }
805 } else { 805 } else {
806 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 806 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
807 if (rc) { 807 if (rc) {
808 printk(KERN_ERR DRV_NAME "(%s): 32-bit DMA enable failed\n", 808 dev_printk(KERN_ERR, &pdev->dev,
809 pci_name(pdev)); 809 "32-bit DMA enable failed\n");
810 return rc; 810 return rc;
811 } 811 }
812 rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 812 rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
813 if (rc) { 813 if (rc) {
814 printk(KERN_ERR DRV_NAME "(%s): 32-bit consistent DMA enable failed\n", 814 dev_printk(KERN_ERR, &pdev->dev,
815 pci_name(pdev)); 815 "32-bit consistent DMA enable failed\n");
816 return rc; 816 return rc;
817 } 817 }
818 } 818 }
@@ -915,10 +915,10 @@ static void ahci_print_info(struct ata_probe_ent *probe_ent)
915 else 915 else
916 scc_s = "unknown"; 916 scc_s = "unknown";
917 917
918 printk(KERN_INFO DRV_NAME "(%s) AHCI %02x%02x.%02x%02x " 918 dev_printk(KERN_INFO, &pdev->dev,
919 "AHCI %02x%02x.%02x%02x "
919 "%u slots %u ports %s Gbps 0x%x impl %s mode\n" 920 "%u slots %u ports %s Gbps 0x%x impl %s mode\n"
920 , 921 ,
921 pci_name(pdev),
922 922
923 (vers >> 24) & 0xff, 923 (vers >> 24) & 0xff,
924 (vers >> 16) & 0xff, 924 (vers >> 16) & 0xff,
@@ -931,11 +931,11 @@ static void ahci_print_info(struct ata_probe_ent *probe_ent)
931 impl, 931 impl,
932 scc_s); 932 scc_s);
933 933
934 printk(KERN_INFO DRV_NAME "(%s) flags: " 934 dev_printk(KERN_INFO, &pdev->dev,
935 "flags: "
935 "%s%s%s%s%s%s" 936 "%s%s%s%s%s%s"
936 "%s%s%s%s%s%s%s\n" 937 "%s%s%s%s%s%s%s\n"
937 , 938 ,
938 pci_name(pdev),
939 939
940 cap & (1 << 31) ? "64bit " : "", 940 cap & (1 << 31) ? "64bit " : "",
941 cap & (1 << 30) ? "ncq " : "", 941 cap & (1 << 30) ? "ncq " : "",
@@ -968,7 +968,7 @@ static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
968 VPRINTK("ENTER\n"); 968 VPRINTK("ENTER\n");
969 969
970 if (!printed_version++) 970 if (!printed_version++)
971 printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); 971 dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");
972 972
973 rc = pci_enable_device(pdev); 973 rc = pci_enable_device(pdev);
974 if (rc) 974 if (rc)