aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-24 16:53:31 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-24 16:53:31 -0400
commit28cfd8af52a9ed4e5bd1751ea6bc0b8c870f68ec (patch)
tree77491546baa6572cfc22ba7a93062cc857f9adbe /drivers/ide/pci
parent2a8f7450f828eaee49d66f41f99ac2e54f1160a6 (diff)
ide: include PCI device name in messages from IDE PCI host drivers
While at it: * Apply small fixes to messages (s/dma/DMA/, remove trailing '.', etc). * Fix printk() call in ide_setup_pci_baseregs() to use KERN_INFO. * Move printk() call from ide_pci_clear_simplex() to the caller. * Cleanup do_ide_setup_pci_device() a bit. * amd74xx.c: remove superfluous PCI device revision information. * hpt366.c: fix two printk() calls in ->init_chipset to use KERN_INFO. * pdc202xx_new.c: fix printk() call in ->init_chipset to use KERN_INFO. * pdc202xx_old.c: fix driver message in pdc202xx_init_one(). * via82cxxx.c: fix driver warning message in via_init_one(). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci')
-rw-r--r--drivers/ide/pci/amd74xx.c11
-rw-r--r--drivers/ide/pci/generic.c4
-rw-r--r--drivers/ide/pci/hpt366.c31
-rw-r--r--drivers/ide/pci/it821x.c11
-rw-r--r--drivers/ide/pci/pdc202xx_new.c21
-rw-r--r--drivers/ide/pci/pdc202xx_old.c9
-rw-r--r--drivers/ide/pci/serverworks.c3
-rw-r--r--drivers/ide/pci/siimage.c7
-rw-r--r--drivers/ide/pci/sis5513.c17
-rw-r--r--drivers/ide/pci/trm290.c4
-rw-r--r--drivers/ide/pci/via82cxxx.c13
11 files changed, 75 insertions, 56 deletions
diff --git a/drivers/ide/pci/amd74xx.c b/drivers/ide/pci/amd74xx.c
index a91f2e873ba4..2b118f80fab6 100644
--- a/drivers/ide/pci/amd74xx.c
+++ b/drivers/ide/pci/amd74xx.c
@@ -129,9 +129,9 @@ static void __devinit amd7411_cable_detect(struct pci_dev *dev,
129 amd_80w = ((t & 0x3) ? 1 : 0) | ((t & 0xc) ? 2 : 0); 129 amd_80w = ((t & 0x3) ? 1 : 0) | ((t & 0xc) ? 2 : 0);
130 for (i = 24; i >= 0; i -= 8) 130 for (i = 24; i >= 0; i -= 8)
131 if (((u >> i) & 4) && !(amd_80w & (1 << (1 - (i >> 4))))) { 131 if (((u >> i) & 4) && !(amd_80w & (1 << (1 - (i >> 4))))) {
132 printk(KERN_WARNING "%s: BIOS didn't set cable bits " 132 printk(KERN_WARNING "%s %s: BIOS didn't set cable bits "
133 "correctly. Enabling workaround.\n", 133 "correctly. Enabling workaround.\n",
134 name); 134 name, pci_name(dev));
135 amd_80w |= (1 << (1 - (i >> 4))); 135 amd_80w |= (1 << (1 - (i >> 4)));
136 } 136 }
137} 137}
@@ -280,9 +280,8 @@ static int __devinit amd74xx_probe(struct pci_dev *dev, const struct pci_device_
280 d.udma_mask = ATA_UDMA5; 280 d.udma_mask = ATA_UDMA5;
281 } 281 }
282 282
283 printk(KERN_INFO "%s: %s (rev %02x) UDMA%s controller\n", 283 printk(KERN_INFO "%s %s: UDMA%s controller\n",
284 d.name, pci_name(dev), dev->revision, 284 d.name, pci_name(dev), amd_dma[fls(d.udma_mask) - 1]);
285 amd_dma[fls(d.udma_mask) - 1]);
286 285
287 /* 286 /*
288 * Determine the system bus clock. 287 * Determine the system bus clock.
diff --git a/drivers/ide/pci/generic.c b/drivers/ide/pci/generic.c
index 81fc171f8ffc..e034e21af7fe 100644
--- a/drivers/ide/pci/generic.c
+++ b/drivers/ide/pci/generic.c
@@ -134,8 +134,8 @@ static int __devinit generic_init_one(struct pci_dev *dev, const struct pci_devi
134 u16 command; 134 u16 command;
135 pci_read_config_word(dev, PCI_COMMAND, &command); 135 pci_read_config_word(dev, PCI_COMMAND, &command);
136 if (!(command & PCI_COMMAND_IO)) { 136 if (!(command & PCI_COMMAND_IO)) {
137 printk(KERN_INFO "Skipping disabled %s IDE " 137 printk(KERN_INFO "%s %s: skipping disabled "
138 "controller.\n", d->name); 138 "controller\n", d->name, pci_name(dev));
139 goto out; 139 goto out;
140 } 140 }
141 } 141 }
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
index 398808905f94..b8004c331edb 100644
--- a/drivers/ide/pci/hpt366.c
+++ b/drivers/ide/pci/hpt366.c
@@ -1044,8 +1044,8 @@ static unsigned int __devinit init_chipset_hpt366(struct pci_dev *dev, const cha
1044 if ((temp & 0xFFFFF000) != 0xABCDE000) { 1044 if ((temp & 0xFFFFF000) != 0xABCDE000) {
1045 int i; 1045 int i;
1046 1046
1047 printk(KERN_WARNING "%s: no clock data saved by BIOS\n", 1047 printk(KERN_WARNING "%s %s: no clock data saved by "
1048 name); 1048 "BIOS\n", name, pci_name(dev));
1049 1049
1050 /* Calculate the average value of f_CNT. */ 1050 /* Calculate the average value of f_CNT. */
1051 for (temp = i = 0; i < 128; i++) { 1051 for (temp = i = 0; i < 128; i++) {
@@ -1070,8 +1070,9 @@ static unsigned int __devinit init_chipset_hpt366(struct pci_dev *dev, const cha
1070 else 1070 else
1071 pci_clk = 66; 1071 pci_clk = 66;
1072 1072
1073 printk(KERN_INFO "%s: DPLL base: %d MHz, f_CNT: %d, " 1073 printk(KERN_INFO "%s %s: DPLL base: %d MHz, f_CNT: %d, "
1074 "assuming %d MHz PCI\n", name, dpll_clk, f_cnt, pci_clk); 1074 "assuming %d MHz PCI\n", name, pci_name(dev),
1075 dpll_clk, f_cnt, pci_clk);
1075 } else { 1076 } else {
1076 u32 itr1 = 0; 1077 u32 itr1 = 0;
1077 1078
@@ -1137,7 +1138,8 @@ static unsigned int __devinit init_chipset_hpt366(struct pci_dev *dev, const cha
1137 } 1138 }
1138 1139
1139 if (info->timings->clock_table[clock] == NULL) { 1140 if (info->timings->clock_table[clock] == NULL) {
1140 printk(KERN_ERR "%s: unknown bus timing!\n", name); 1141 printk(KERN_ERR "%s %s: unknown bus timing!\n",
1142 name, pci_name(dev));
1141 return -EIO; 1143 return -EIO;
1142 } 1144 }
1143 1145
@@ -1163,16 +1165,19 @@ static unsigned int __devinit init_chipset_hpt366(struct pci_dev *dev, const cha
1163 f_low += adjust >> 1; 1165 f_low += adjust >> 1;
1164 } 1166 }
1165 if (adjust == 8) { 1167 if (adjust == 8) {
1166 printk(KERN_ERR "%s: DPLL did not stabilize!\n", name); 1168 printk(KERN_ERR "%s %s: DPLL did not stabilize!\n",
1169 name, pci_name(dev));
1167 return -EIO; 1170 return -EIO;
1168 } 1171 }
1169 1172
1170 printk("%s: using %d MHz DPLL clock\n", name, dpll_clk); 1173 printk(KERN_INFO "%s %s: using %d MHz DPLL clock\n",
1174 name, pci_name(dev), dpll_clk);
1171 } else { 1175 } else {
1172 /* Mark the fact that we're not using the DPLL. */ 1176 /* Mark the fact that we're not using the DPLL. */
1173 dpll_clk = 0; 1177 dpll_clk = 0;
1174 1178
1175 printk("%s: using %d MHz PCI clock\n", name, pci_clk); 1179 printk(KERN_INFO "%s %s: using %d MHz PCI clock\n",
1180 name, pci_name(dev), pci_clk);
1176 } 1181 }
1177 1182
1178 /* Store the clock frequencies. */ 1183 /* Store the clock frequencies. */
@@ -1357,7 +1362,8 @@ static void __devinit hpt374_init(struct pci_dev *dev, struct pci_dev *dev2)
1357 if (dev2->irq != dev->irq) { 1362 if (dev2->irq != dev->irq) {
1358 /* FIXME: we need a core pci_set_interrupt() */ 1363 /* FIXME: we need a core pci_set_interrupt() */
1359 dev2->irq = dev->irq; 1364 dev2->irq = dev->irq;
1360 printk(KERN_INFO "HPT374: PCI config space interrupt fixed\n"); 1365 printk(KERN_INFO "HPT374 %s: PCI config space interrupt "
1366 "fixed\n", pci_name(dev2));
1361 } 1367 }
1362} 1368}
1363 1369
@@ -1392,8 +1398,8 @@ static int __devinit hpt36x_init(struct pci_dev *dev, struct pci_dev *dev2)
1392 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2); 1398 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2);
1393 1399
1394 if (pin1 != pin2 && dev->irq == dev2->irq) { 1400 if (pin1 != pin2 && dev->irq == dev2->irq) {
1395 printk(KERN_INFO "HPT36x: onboard version of chipset, " 1401 printk(KERN_INFO "HPT36x %s: onboard version of chipset, "
1396 "pin1=%d pin2=%d\n", pin1, pin2); 1402 "pin1=%d pin2=%d\n", pci_name(dev), pin1, pin2);
1397 return 1; 1403 return 1;
1398 } 1404 }
1399 1405
@@ -1591,7 +1597,8 @@ static int __devinit hpt366_init_one(struct pci_dev *dev, const struct pci_devic
1591 1597
1592 dyn_info = kzalloc(sizeof(*dyn_info) * (dev2 ? 2 : 1), GFP_KERNEL); 1598 dyn_info = kzalloc(sizeof(*dyn_info) * (dev2 ? 2 : 1), GFP_KERNEL);
1593 if (dyn_info == NULL) { 1599 if (dyn_info == NULL) {
1594 printk(KERN_ERR "%s: out of memory!\n", d.name); 1600 printk(KERN_ERR "%s %s: out of memory!\n",
1601 d.name, pci_name(dev));
1595 pci_dev_put(dev2); 1602 pci_dev_put(dev2);
1596 return -ENOMEM; 1603 return -ENOMEM;
1597 } 1604 }
diff --git a/drivers/ide/pci/it821x.c b/drivers/ide/pci/it821x.c
index c5c91f2109d4..4ce5db98f89a 100644
--- a/drivers/ide/pci/it821x.c
+++ b/drivers/ide/pci/it821x.c
@@ -569,7 +569,8 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif)
569 idev->timing10 = 1; 569 idev->timing10 = 1;
570 hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; 570 hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA;
571 if (idev->smart == 0) 571 if (idev->smart == 0)
572 printk(KERN_WARNING "it821x: Revision 0x10, workarounds activated.\n"); 572 printk(KERN_WARNING "it821x %s: revision 0x10, "
573 "workarounds activated\n", pci_name(dev));
573 } 574 }
574 575
575 if (idev->smart == 0) { 576 if (idev->smart == 0) {
@@ -609,11 +610,13 @@ static unsigned int __devinit init_chipset_it821x(struct pci_dev *dev, const cha
609 610
610 /* Force the card into bypass mode if so requested */ 611 /* Force the card into bypass mode if so requested */
611 if (it8212_noraid) { 612 if (it8212_noraid) {
612 printk(KERN_INFO "it8212: forcing bypass mode.\n"); 613 printk(KERN_INFO "it821x %s: forcing bypass mode\n",
614 pci_name(dev));
613 it8212_disable_raid(dev); 615 it8212_disable_raid(dev);
614 } 616 }
615 pci_read_config_byte(dev, 0x50, &conf); 617 pci_read_config_byte(dev, 0x50, &conf);
616 printk(KERN_INFO "it821x: controller in %s mode.\n", mode[conf & 1]); 618 printk(KERN_INFO "it821x %s: controller in %s mode\n",
619 pci_name(dev), mode[conf & 1]);
617 return 0; 620 return 0;
618} 621}
619 622
@@ -654,7 +657,7 @@ static int __devinit it821x_init_one(struct pci_dev *dev, const struct pci_devic
654 657
655 itdevs = kzalloc(2 * sizeof(*itdevs), GFP_KERNEL); 658 itdevs = kzalloc(2 * sizeof(*itdevs), GFP_KERNEL);
656 if (itdevs == NULL) { 659 if (itdevs == NULL) {
657 printk(KERN_ERR "it821x: out of memory\n"); 660 printk(KERN_ERR "it821x %s: out of memory\n", pci_name(dev));
658 return -ENOMEM; 661 return -ENOMEM;
659 } 662 }
660 663
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c
index 9881a1a8b89c..4c2b669d7de6 100644
--- a/drivers/ide/pci/pdc202xx_new.c
+++ b/drivers/ide/pci/pdc202xx_new.c
@@ -358,12 +358,13 @@ static unsigned int __devinit init_chipset_pdcnew(struct pci_dev *dev, const cha
358 * registers setting. 358 * registers setting.
359 */ 359 */
360 pll_input = detect_pll_input_clock(dma_base); 360 pll_input = detect_pll_input_clock(dma_base);
361 printk("%s: PLL input clock is %ld kHz\n", name, pll_input / 1000); 361 printk(KERN_INFO "%s %s: PLL input clock is %ld kHz\n",
362 name, pci_name(dev), pll_input / 1000);
362 363
363 /* Sanity check */ 364 /* Sanity check */
364 if (unlikely(pll_input < 5000000L || pll_input > 70000000L)) { 365 if (unlikely(pll_input < 5000000L || pll_input > 70000000L)) {
365 printk(KERN_ERR "%s: Bad PLL input clock %ld Hz, giving up!\n", 366 printk(KERN_ERR "%s %s: Bad PLL input clock %ld Hz, giving up!"
366 name, pll_input); 367 "\n", name, pci_name(dev), pll_input);
367 goto out; 368 goto out;
368 } 369 }
369 370
@@ -399,7 +400,8 @@ static unsigned int __devinit init_chipset_pdcnew(struct pci_dev *dev, const cha
399 r = 0x00; 400 r = 0x00;
400 } else { 401 } else {
401 /* Invalid ratio */ 402 /* Invalid ratio */
402 printk(KERN_ERR "%s: Bad ratio %ld, giving up!\n", name, ratio); 403 printk(KERN_ERR "%s %s: Bad ratio %ld, giving up!\n",
404 name, pci_name(dev), ratio);
403 goto out; 405 goto out;
404 } 406 }
405 407
@@ -409,7 +411,8 @@ static unsigned int __devinit init_chipset_pdcnew(struct pci_dev *dev, const cha
409 411
410 if (unlikely(f < 0 || f > 127)) { 412 if (unlikely(f < 0 || f > 127)) {
411 /* Invalid F */ 413 /* Invalid F */
412 printk(KERN_ERR "%s: F[%d] invalid!\n", name, f); 414 printk(KERN_ERR "%s %s: F[%d] invalid!\n",
415 name, pci_name(dev), f);
413 goto out; 416 goto out;
414 } 417 }
415 418
@@ -455,8 +458,8 @@ static struct pci_dev * __devinit pdc20270_get_dev2(struct pci_dev *dev)
455 458
456 if (dev2->irq != dev->irq) { 459 if (dev2->irq != dev->irq) {
457 dev2->irq = dev->irq; 460 dev2->irq = dev->irq;
458 printk(KERN_INFO "PDC20270: PCI config space " 461 printk(KERN_INFO "PDC20270 %s: PCI config space "
459 "interrupt fixed\n"); 462 "interrupt fixed\n", pci_name(dev));
460 } 463 }
461 464
462 return dev2; 465 return dev2;
@@ -535,8 +538,8 @@ static int __devinit pdc202new_init_one(struct pci_dev *dev, const struct pci_de
535 bridge->vendor == PCI_VENDOR_ID_INTEL && 538 bridge->vendor == PCI_VENDOR_ID_INTEL &&
536 (bridge->device == PCI_DEVICE_ID_INTEL_I960 || 539 (bridge->device == PCI_DEVICE_ID_INTEL_I960 ||
537 bridge->device == PCI_DEVICE_ID_INTEL_I960RM)) { 540 bridge->device == PCI_DEVICE_ID_INTEL_I960RM)) {
538 printk(KERN_INFO "PDC20276: attached to I2O RAID controller, " 541 printk(KERN_INFO "PDC20276 %s: attached to I2O RAID controller,"
539 "skipping\n"); 542 " skipping\n", pci_name(dev));
540 return -ENODEV; 543 return -ENODEV;
541 } 544 }
542 545
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c
index 17d99ce273af..5cb2731047e9 100644
--- a/drivers/ide/pci/pdc202xx_old.c
+++ b/drivers/ide/pci/pdc202xx_old.c
@@ -304,8 +304,8 @@ static void __devinit pdc202ata4_fixup_irq(struct pci_dev *dev,
304 if (irq != irq2) { 304 if (irq != irq2) {
305 pci_write_config_byte(dev, 305 pci_write_config_byte(dev,
306 (PCI_INTERRUPT_LINE)|0x80, irq); /* 0xbc */ 306 (PCI_INTERRUPT_LINE)|0x80, irq); /* 0xbc */
307 printk(KERN_INFO "%s: PCI config space interrupt " 307 printk(KERN_INFO "%s %s: PCI config space interrupt "
308 "mirror fixed\n", name); 308 "mirror fixed\n", name, pci_name(dev));
309 } 309 }
310 } 310 }
311} 311}
@@ -406,8 +406,9 @@ static int __devinit pdc202xx_init_one(struct pci_dev *dev, const struct pci_dev
406 bridge->vendor == PCI_VENDOR_ID_INTEL && 406 bridge->vendor == PCI_VENDOR_ID_INTEL &&
407 (bridge->device == PCI_DEVICE_ID_INTEL_I960 || 407 (bridge->device == PCI_DEVICE_ID_INTEL_I960 ||
408 bridge->device == PCI_DEVICE_ID_INTEL_I960RM)) { 408 bridge->device == PCI_DEVICE_ID_INTEL_I960RM)) {
409 printk(KERN_INFO "ide: Skipping Promise PDC20265 " 409 printk(KERN_INFO "pdc202xx_old %s: skipping Promise "
410 "attached to I2O RAID controller\n"); 410 "PDC20265 attached to I2O RAID controller\n",
411 pci_name(dev));
411 return -ENODEV; 412 return -ENODEV;
412 } 413 }
413 } 414 }
diff --git a/drivers/ide/pci/serverworks.c b/drivers/ide/pci/serverworks.c
index eca52fede281..1106ff44cdee 100644
--- a/drivers/ide/pci/serverworks.c
+++ b/drivers/ide/pci/serverworks.c
@@ -188,7 +188,8 @@ static unsigned int __devinit init_chipset_svwks (struct pci_dev *dev, const cha
188 pci_read_config_dword(isa_dev, 0x64, &reg); 188 pci_read_config_dword(isa_dev, 0x64, &reg);
189 reg &= ~0x00002000; /* disable 600ns interrupt mask */ 189 reg &= ~0x00002000; /* disable 600ns interrupt mask */
190 if(!(reg & 0x00004000)) 190 if(!(reg & 0x00004000))
191 printk(KERN_DEBUG "%s: UDMA not BIOS enabled.\n", name); 191 printk(KERN_DEBUG "%s %s: UDMA not BIOS "
192 "enabled.\n", name, pci_name(dev));
192 reg |= 0x00004000; /* enable UDMA/33 support */ 193 reg |= 0x00004000; /* enable UDMA/33 support */
193 pci_write_config_dword(isa_dev, 0x64, reg); 194 pci_write_config_dword(isa_dev, 0x64, reg);
194 } 195 }
diff --git a/drivers/ide/pci/siimage.c b/drivers/ide/pci/siimage.c
index f2e4dac9b719..fc29f1ca503a 100644
--- a/drivers/ide/pci/siimage.c
+++ b/drivers/ide/pci/siimage.c
@@ -539,7 +539,8 @@ static unsigned int __devinit init_chipset_siimage(struct pci_dev *dev,
539 { "== 100", "== 133", "== 2X PCI", "DISABLED!" }; 539 { "== 100", "== 133", "== 2X PCI", "DISABLED!" };
540 540
541 tmp >>= 4; 541 tmp >>= 4;
542 printk(KERN_INFO "%s: BASE CLOCK %s\n", name, clk_str[tmp & 3]); 542 printk(KERN_INFO "%s %s: BASE CLOCK %s\n",
543 name, pci_name(dev), clk_str[tmp & 3]);
543 } 544 }
544 545
545 return 0; 546 return 0;
@@ -779,8 +780,8 @@ static int __devinit siimage_init_one(struct pci_dev *dev,
779 * seem to get terminally confused in the PCI spaces. 780 * seem to get terminally confused in the PCI spaces.
780 */ 781 */
781 if (!request_mem_region(bar5, barsize, d.name)) { 782 if (!request_mem_region(bar5, barsize, d.name)) {
782 printk(KERN_WARNING "siimage: IDE controller MMIO " 783 printk(KERN_WARNING "siimage %s: MMIO ports not "
783 "ports not available.\n"); 784 "available\n", pci_name(dev));
784 } else { 785 } else {
785 ioaddr = ioremap(bar5, barsize); 786 ioaddr = ioremap(bar5, barsize);
786 if (ioaddr == NULL) 787 if (ioaddr == NULL)
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c
index f3cf7c6c0cc3..518d8ab413f3 100644
--- a/drivers/ide/pci/sis5513.c
+++ b/drivers/ide/pci/sis5513.c
@@ -380,8 +380,9 @@ static int __devinit sis_find_family(struct pci_dev *dev)
380 } 380 }
381 pci_dev_put(host); 381 pci_dev_put(host);
382 382
383 printk(KERN_INFO "SIS5513: %s %s controller\n", 383 printk(KERN_INFO "SIS5513 %s: %s %s controller\n",
384 SiSHostChipInfo[i].name, chipset_capability[chipset_family]); 384 pci_name(dev), SiSHostChipInfo[i].name,
385 chipset_capability[chipset_family]);
385 } 386 }
386 387
387 if (!chipset_family) { /* Belongs to pci-quirks */ 388 if (!chipset_family) { /* Belongs to pci-quirks */
@@ -396,7 +397,8 @@ static int __devinit sis_find_family(struct pci_dev *dev)
396 pci_write_config_dword(dev, 0x54, idemisc); 397 pci_write_config_dword(dev, 0x54, idemisc);
397 398
398 if (trueid == 0x5518) { 399 if (trueid == 0x5518) {
399 printk(KERN_INFO "SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller\n"); 400 printk(KERN_INFO "SIS5513 %s: SiS 962/963 MuTIOL IDE UDMA133 controller\n",
401 pci_name(dev));
400 chipset_family = ATA_133; 402 chipset_family = ATA_133;
401 403
402 /* Check for 5513 compability mapping 404 /* Check for 5513 compability mapping
@@ -405,7 +407,8 @@ static int __devinit sis_find_family(struct pci_dev *dev)
405 */ 407 */
406 if ((idemisc & 0x40000000) == 0) { 408 if ((idemisc & 0x40000000) == 0) {
407 pci_write_config_dword(dev, 0x54, idemisc | 0x40000000); 409 pci_write_config_dword(dev, 0x54, idemisc | 0x40000000);
408 printk(KERN_INFO "SIS5513: Switching to 5513 register mapping\n"); 410 printk(KERN_INFO "SIS5513 %s: Switching to 5513 register mapping\n",
411 pci_name(dev));
409 } 412 }
410 } 413 }
411 } 414 }
@@ -429,10 +432,12 @@ static int __devinit sis_find_family(struct pci_dev *dev)
429 pci_dev_put(lpc_bridge); 432 pci_dev_put(lpc_bridge);
430 433
431 if (lpc_bridge->revision == 0x10 && (prefctl & 0x80)) { 434 if (lpc_bridge->revision == 0x10 && (prefctl & 0x80)) {
432 printk(KERN_INFO "SIS5513: SiS 961B MuTIOL IDE UDMA133 controller\n"); 435 printk(KERN_INFO "SIS5513 %s: SiS 961B MuTIOL IDE UDMA133 controller\n",
436 pci_name(dev));
433 chipset_family = ATA_133a; 437 chipset_family = ATA_133a;
434 } else { 438 } else {
435 printk(KERN_INFO "SIS5513: SiS 961 MuTIOL IDE UDMA100 controller\n"); 439 printk(KERN_INFO "SIS5513 %s: SiS 961 MuTIOL IDE UDMA100 controller\n",
440 pci_name(dev));
436 chipset_family = ATA_100; 441 chipset_family = ATA_100;
437 } 442 }
438 } 443 }
diff --git a/drivers/ide/pci/trm290.c b/drivers/ide/pci/trm290.c
index 449f4de9a702..7bda5ed92e1e 100644
--- a/drivers/ide/pci/trm290.c
+++ b/drivers/ide/pci/trm290.c
@@ -245,10 +245,10 @@ static void __devinit init_hwif_trm290(ide_hwif_t *hwif)
245 u8 reg = 0; 245 u8 reg = 0;
246 246
247 if ((dev->class & 5) && cfg_base) 247 if ((dev->class & 5) && cfg_base)
248 printk(KERN_INFO "TRM290: chip"); 248 printk(KERN_INFO "TRM290 %s: chip", pci_name(dev));
249 else { 249 else {
250 cfg_base = 0x3df0; 250 cfg_base = 0x3df0;
251 printk(KERN_INFO "TRM290: using default"); 251 printk(KERN_INFO "TRM290 %s: using default", pci_name(dev));
252 } 252 }
253 printk(KERN_CONT " config base at 0x%04x\n", cfg_base); 253 printk(KERN_CONT " config base at 0x%04x\n", cfg_base);
254 hwif->config_data = cfg_base; 254 hwif->config_data = cfg_base;
diff --git a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c
index 5f07eeb736ab..23332556e616 100644
--- a/drivers/ide/pci/via82cxxx.c
+++ b/drivers/ide/pci/via82cxxx.c
@@ -401,20 +401,19 @@ static int __devinit via_init_one(struct pci_dev *dev, const struct pci_device_i
401 */ 401 */
402 via_config = via_config_find(&isa); 402 via_config = via_config_find(&isa);
403 if (!via_config->id) { 403 if (!via_config->id) {
404 printk(KERN_WARNING "VP_IDE: Unknown VIA SouthBridge, disabling DMA.\n"); 404 printk(KERN_WARNING "VP_IDE %s: unknown chipset, skipping\n",
405 pci_name(dev));
405 return -ENODEV; 406 return -ENODEV;
406 } 407 }
407 408
408 /* 409 /*
409 * Print the boot message. 410 * Print the boot message.
410 */ 411 */
411 printk(KERN_INFO "VP_IDE: VIA %s (rev %02x) IDE %sDMA%s " 412 printk(KERN_INFO "VP_IDE %s: VIA %s (rev %02x) IDE %sDMA%s\n",
412 "controller on pci%s\n", 413 pci_name(dev), via_config->name, isa->revision,
413 via_config->name, isa->revision,
414 via_config->udma_mask ? "U" : "MW", 414 via_config->udma_mask ? "U" : "MW",
415 via_dma[via_config->udma_mask ? 415 via_dma[via_config->udma_mask ?
416 (fls(via_config->udma_mask) - 1) : 0], 416 (fls(via_config->udma_mask) - 1) : 0]);
417 pci_name(dev));
418 417
419 pci_dev_put(isa); 418 pci_dev_put(isa);
420 419
@@ -454,7 +453,7 @@ static int __devinit via_init_one(struct pci_dev *dev, const struct pci_device_i
454 453
455 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); 454 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL);
456 if (!vdev) { 455 if (!vdev) {
457 printk(KERN_ERR "VP_IDE: out of memory :(\n"); 456 printk(KERN_ERR "VP_IDE %s: out of memory :(\n", pci_name(dev));
458 return -ENOMEM; 457 return -ENOMEM;
459 } 458 }
460 459