From: hzf Date: Mon, 6 Feb 2012 07:09:46 +0000 (+0800) Subject: td8801:add i2c_sram for suspend may let mid cannot resume in suspend X-Git-Tag: firefly_0821_release~9640 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d4422864178c9ec6ef3c7ea8641d4311a3978d0e;p=firefly-linux-kernel-4.4.55.git td8801:add i2c_sram for suspend may let mid cannot resume in suspend --- diff --git a/arch/arm/mach-rk29/Kconfig b/arch/arm/mach-rk29/Kconfig index 72c43c9186bd..4c9d4bb99feb 100755 --- a/arch/arm/mach-rk29/Kconfig +++ b/arch/arm/mach-rk29/Kconfig @@ -225,11 +225,11 @@ config RK29_NEON_POWERDOMAIN_SET config RK29_SPI_INSRAM tristate "Support spi control interface" depends on REGULATOR_WM831X - default ns + default n config RK29_I2C_INSRAM tristate "Support i2c control interface" depends on REGULATOR_WM831X - default ns + default n config RK29_CHARGE_EARLYSUSPEND bool "Support charge in low power" default n diff --git a/arch/arm/mach-rk29/pm.c b/arch/arm/mach-rk29/pm.c index a74be0da290b..dd05338146d1 100755 --- a/arch/arm/mach-rk29/pm.c +++ b/arch/arm/mach-rk29/pm.c @@ -428,7 +428,7 @@ static int rk29_pm_enter(suspend_state_t state) sram_printch('0'); flush_tlb_all(); - #if defined(CONFIG_RK29_SPI_INSRAM) + #if defined(CONFIG_RK29_SPI_INSRAM) || defined(CONFIG_RK29_PWM_INSRAM) interface_ctr_reg_pread(); #endif #if defined(CONFIG_RK29_I2C_INSRAM)