rk: fiq_debugger: flush uart before putc on oops
author黄涛 <huangtao@rock-chips.com>
Fri, 7 Sep 2012 02:46:52 +0000 (10:46 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 7 Sep 2012 02:46:58 +0000 (10:46 +0800)
arch/arm/plat-rk/rk_fiq_debugger.c

index 55f409914a00b8f2ad891c8109ba20001f7633f0..20eb1a8f8696d0841a5e80e08537aa389d97cf12 100644 (file)
@@ -159,6 +159,7 @@ static void console_write(struct platform_device *pdev, const char *s, unsigned
        t = container_of(dev_get_platdata(&pdev->dev), typeof(*t), pdata);
 
        if (oops_in_progress || oops) {
+               debug_flush(pdev);
                while (kfifo_get(&fifo, &c))
                        debug_putc(pdev, c);
                while (count--) {