aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/iTCO_wdt.c
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@redhat.com>2010-08-06 11:41:24 -0400
committerWim Van Sebroeck <wim@iguana.be>2010-10-28 17:33:17 -0400
commit641912f479962e50b29573a8c0e8c514eb02e9b8 (patch)
tree7052e30d5396533b33ea8acc9318983e290e5f8e /drivers/watchdog/iTCO_wdt.c
parentcad0df370048f7980d4cbc9e88b74db0d87cfc56 (diff)
watchdog: iTCO_wdt: Cleanup warning messages
The current iTCO_wdt driver warnings are confusing. Currently when the device driver returns an error the console contains: iTCO_vendor_support: vendor-support=0 iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05 iTCO_wdt: failed to reset NO_REBOOT flag, reboot disabled by hardware iTCO_wdt: No card detected After the patch, iTCO_vendor_support: vendor-support=0 iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05 iTCO_wdt: failed to reset NO_REBOOT flag, device disabled by hardware/BIOS Clean this up and use the word "device" to describe the device. Signed-off-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/iTCO_wdt.c')
-rw-r--r--drivers/watchdog/iTCO_wdt.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
index cdc79450538d..bc69731a5e6a 100644
--- a/drivers/watchdog/iTCO_wdt.c
+++ b/drivers/watchdog/iTCO_wdt.c
@@ -377,7 +377,7 @@ static char expect_release;
377static struct { /* this is private data for the iTCO_wdt device */ 377static struct { /* this is private data for the iTCO_wdt device */
378 /* TCO version/generation */ 378 /* TCO version/generation */
379 unsigned int iTCO_version; 379 unsigned int iTCO_version;
380 /* The cards ACPIBASE address (TCOBASE = ACPIBASE+0x60) */ 380 /* The device's ACPIBASE address (TCOBASE = ACPIBASE+0x60) */
381 unsigned long ACPIBASE; 381 unsigned long ACPIBASE;
382 /* NO_REBOOT flag is Memory-Mapped GCS register bit 5 (TCO version 2)*/ 382 /* NO_REBOOT flag is Memory-Mapped GCS register bit 5 (TCO version 2)*/
383 unsigned long __iomem *gcs; 383 unsigned long __iomem *gcs;
@@ -470,7 +470,7 @@ static int iTCO_wdt_start(void)
470 if (iTCO_wdt_unset_NO_REBOOT_bit()) { 470 if (iTCO_wdt_unset_NO_REBOOT_bit()) {
471 spin_unlock(&iTCO_wdt_private.io_lock); 471 spin_unlock(&iTCO_wdt_private.io_lock);
472 printk(KERN_ERR PFX "failed to reset NO_REBOOT flag, " 472 printk(KERN_ERR PFX "failed to reset NO_REBOOT flag, "
473 "reboot disabled by hardware\n"); 473 "reboot disabled by hardware/BIOS\n");
474 return -EIO; 474 return -EIO;
475 } 475 }
476 476
@@ -784,7 +784,8 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev,
784 base_address &= 0x0000ff80; 784 base_address &= 0x0000ff80;
785 if (base_address == 0x00000000) { 785 if (base_address == 0x00000000) {
786 /* Something's wrong here, ACPIBASE has to be set */ 786 /* Something's wrong here, ACPIBASE has to be set */
787 printk(KERN_ERR PFX "failed to get TCOBASE address\n"); 787 printk(KERN_ERR PFX "failed to get TCOBASE address, "
788 "device disabled by hardware/BIOS\n");
788 pci_dev_put(pdev); 789 pci_dev_put(pdev);
789 return -ENODEV; 790 return -ENODEV;
790 } 791 }
@@ -800,7 +801,8 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev,
800 if (iTCO_wdt_private.iTCO_version == 2) { 801 if (iTCO_wdt_private.iTCO_version == 2) {
801 pci_read_config_dword(pdev, 0xf0, &base_address); 802 pci_read_config_dword(pdev, 0xf0, &base_address);
802 if ((base_address & 1) == 0) { 803 if ((base_address & 1) == 0) {
803 printk(KERN_ERR PFX "RCBA is disabled by hardware\n"); 804 printk(KERN_ERR PFX "RCBA is disabled by hardware"
805 "/BIOS, device disabled\n");
804 ret = -ENODEV; 806 ret = -ENODEV;
805 goto out; 807 goto out;
806 } 808 }
@@ -811,7 +813,7 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev,
811 /* Check chipset's NO_REBOOT bit */ 813 /* Check chipset's NO_REBOOT bit */
812 if (iTCO_wdt_unset_NO_REBOOT_bit() && iTCO_vendor_check_noreboot_on()) { 814 if (iTCO_wdt_unset_NO_REBOOT_bit() && iTCO_vendor_check_noreboot_on()) {
813 printk(KERN_INFO PFX "unable to reset NO_REBOOT flag, " 815 printk(KERN_INFO PFX "unable to reset NO_REBOOT flag, "
814 "platform may have disabled it\n"); 816 "device disabled by hardware/BIOS\n");
815 ret = -ENODEV; /* Cannot reset NO_REBOOT bit */ 817 ret = -ENODEV; /* Cannot reset NO_REBOOT bit */
816 goto out_unmap; 818 goto out_unmap;
817 } 819 }
@@ -822,7 +824,8 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev,
822 /* The TCO logic uses the TCO_EN bit in the SMI_EN register */ 824 /* The TCO logic uses the TCO_EN bit in the SMI_EN register */
823 if (!request_region(SMI_EN, 4, "iTCO_wdt")) { 825 if (!request_region(SMI_EN, 4, "iTCO_wdt")) {
824 printk(KERN_ERR PFX 826 printk(KERN_ERR PFX
825 "I/O address 0x%04lx already in use\n", SMI_EN); 827 "I/O address 0x%04lx already in use, "
828 "device disabled\n", SMI_EN);
826 ret = -EIO; 829 ret = -EIO;
827 goto out_unmap; 830 goto out_unmap;
828 } 831 }
@@ -834,8 +837,8 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev,
834 /* The TCO I/O registers reside in a 32-byte range pointed to 837 /* The TCO I/O registers reside in a 32-byte range pointed to
835 by the TCOBASE value */ 838 by the TCOBASE value */
836 if (!request_region(TCOBASE, 0x20, "iTCO_wdt")) { 839 if (!request_region(TCOBASE, 0x20, "iTCO_wdt")) {
837 printk(KERN_ERR PFX "I/O address 0x%04lx already in use\n", 840 printk(KERN_ERR PFX "I/O address 0x%04lx already in use "
838 TCOBASE); 841 "device disabled\n", TCOBASE);
839 ret = -EIO; 842 ret = -EIO;
840 goto unreg_smi_en; 843 goto unreg_smi_en;
841 } 844 }
@@ -924,7 +927,7 @@ static int __devinit iTCO_wdt_probe(struct platform_device *dev)
924 } 927 }
925 928
926 if (!found) 929 if (!found)
927 printk(KERN_INFO PFX "No card detected\n"); 930 printk(KERN_INFO PFX "No device detected.\n");
928 931
929 return ret; 932 return ret;
930} 933}