newton: modify irda serial device suspend&resume function
authorlyx <lyx@rock-chips.com>
Mon, 18 Jul 2011 06:45:50 +0000 (23:45 -0700)
committerlyx <lyx@rock-chips.com>
Mon, 18 Jul 2011 06:46:57 +0000 (23:46 -0700)
drivers/net/irda/ir_serial.c

index c51a3520ca517720a00d553235f9afd903b1a2e8..76dfdf688e520bf4577a121febbb96a4e875542e 100755 (executable)
@@ -614,7 +614,7 @@ static int bu92747_irda_suspend(struct platform_device *pdev, pm_message_t state
        s->suspending = 1;\r
        uart_suspend_port(&bu92747_irda_uart_driver, &s->port);\r
 \r
-       irda_hw_shutdown();\r
+       //irda_hw_shutdown();\r
        if (s->pdata->irda_pwr_ctl)\r
                s->pdata->irda_pwr_ctl(0);\r
 \r
@@ -631,7 +631,8 @@ static int bu92747_irda_resume(struct platform_device *pdev)
        if (s->pdata->irda_pwr_ctl)\r
                s->pdata->irda_pwr_ctl(1);\r
        \r
-       irda_hw_startup();\r
+       //irda_hw_startup();\r
+       irda_hw_set_speed(s->baud);\r
 \r
        uart_resume_port(&bu92747_irda_uart_driver, &s->port);\r
        s->suspending = 0;\r