From 9cd47fc6ed270b4daae8ddce0932d669cd461e8a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 1 Dec 2008 01:26:32 +0000 Subject: fix-err-strength-debug-msg.patch Now Qi is changed to default to loglevel 4 where it will show KERN_ERR on LCM, we need to reduce the debugging KERN_ERR traffic so as not to obscure the real things. Signed-off-by: Andy Green --- drivers/mfd/glamo/glamo-fb.c | 8 +++++--- drivers/mfd/glamo/glamo-mci.c | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'drivers/mfd/glamo') diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c index b4b121e4c6c..64fe464fa46 100644 --- a/drivers/mfd/glamo/glamo-fb.c +++ b/drivers/mfd/glamo/glamo-fb.c @@ -333,7 +333,8 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo, return; } - printk(KERN_ERR"glamofb_update_lcd_controller spin_lock_irqsave\n"); + dev_dbg(&glamo->mach_info->glamo->pdev->dev, + "glamofb_update_lcd_controller spin_lock_irqsave\n"); spin_lock_irqsave(&glamo->lock_cmd, flags); if (glamofb_cmd_mode(glamo, 1)) @@ -426,7 +427,8 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo, glamofb_cmd_mode(glamo, 0); out_unlock: - printk(KERN_ERR"glamofb_update_lcd_controller spin_unlock_irqrestore\n"); + dev_dbg(&glamo->mach_info->glamo->pdev->dev, + "glamofb_update_lcd_controller spin_unlock_irqrestore\n"); spin_unlock_irqrestore(&glamo->lock_cmd, flags); } @@ -920,7 +922,7 @@ static int __init glamofb_probe(struct platform_device *pdev) glamo_engine_enable(mach_info->glamo, GLAMO_ENGINE_LCD); glamo_engine_reset(mach_info->glamo, GLAMO_ENGINE_LCD); - printk(KERN_ERR"spin_lock_init\n"); + dev_info(&pdev->dev, "spin_lock_init\n"); spin_lock_init(&glamofb->lock_cmd); glamofb_init_regs(glamofb); #ifdef CONFIG_MFD_GLAMO_HWACCEL diff --git a/drivers/mfd/glamo/glamo-mci.c b/drivers/mfd/glamo/glamo-mci.c index 5079796ba28..e5bef30463b 100644 --- a/drivers/mfd/glamo/glamo-mci.c +++ b/drivers/mfd/glamo/glamo-mci.c @@ -368,7 +368,7 @@ static void glamo_mci_irq(unsigned int irq, struct irq_desc *desc) GLAMO_STAT1_MMC_BRERR)) cmd->error = -EILSEQ; if (cmd->error) { - dev_err(&host->pdev->dev, "Error after cmd: 0x%x\n", status); + dev_info(&host->pdev->dev, "Error after cmd: 0x%x\n", status); goto done; } @@ -655,7 +655,7 @@ static void glamo_mci_send_request(struct mmc_host *mmc) goto bail; if (cmd->error) { - dev_err(&host->pdev->dev, "Error after cmd: 0x%x\n", status); + dev_info(&host->pdev->dev, "Error after cmd: 0x%x\n", status); goto done; } /* @@ -743,7 +743,7 @@ static void glamo_mci_reset(struct glamo_mci_host *host) "suspended\n"); return; } - dev_err(&host->pdev->dev, "******* glamo_mci_reset\n"); + dev_dbg(&host->pdev->dev, "******* glamo_mci_reset\n"); /* reset MMC controller */ writew(GLAMO_CLOCK_MMC_RESET | GLAMO_CLOCK_MMC_DG_TCLK | GLAMO_CLOCK_MMC_EN_TCLK | GLAMO_CLOCK_MMC_DG_M9CLK | -- cgit v1.2.3