Skip to content

Commit 00d409d

Browse files
fabioestevamgregkh
authored andcommitted
ARM: imx: cpuidle-imx6sx: Restrict the SW2ISO increase to i.MX6SX
commit b25af2f upstream. Since commit 1e434b7 ("ARM: imx: update the cpu power up timing setting on i.mx6sx") some characters loss is noticed on i.MX6ULL UART as reported by Christoph Niedermaier. The intention of such commit was to increase the SW2ISO field for i.MX6SX only, but since cpuidle-imx6sx is also used on i.MX6UL/i.MX6ULL this caused unintended side effects on other SoCs. Fix this problem by keeping the original SW2ISO value for i.MX6UL/i.MX6ULL and only increase SW2ISO in the i.MX6SX case. Cc: [email protected] Fixes: 1e434b7 ("ARM: imx: update the cpu power up timing setting on i.mx6sx") Reported-by: Christoph Niedermaier <[email protected]> Signed-off-by: Fabio Estevam <[email protected]> Tested-by: Sébastien Szymanski <[email protected]> Tested-by: Christoph Niedermaier <[email protected]> Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e90a7ec commit 00d409d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/mach-imx/cpuidle-imx6sx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "common.h"
1717
#include "cpuidle.h"
18+
#include "hardware.h"
1819

1920
static int imx6sx_idle_finish(unsigned long val)
2021
{
@@ -108,7 +109,7 @@ int __init imx6sx_cpuidle_init(void)
108109
* except for power up sw2iso which need to be
109110
* larger than LDO ramp up time.
110111
*/
111-
imx_gpc_set_arm_power_up_timing(0xf, 1);
112+
imx_gpc_set_arm_power_up_timing(cpu_is_imx6sx() ? 0xf : 0x2, 1);
112113
imx_gpc_set_arm_power_down_timing(1, 1);
113114

114115
return cpuidle_register(&imx6sx_cpuidle_driver, NULL);

0 commit comments

Comments
 (0)