mirror of https://gitee.com/openkylin/linux.git
Merge branch 'next/fixes-samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/fixes-non-critical
From Kukjin Kim: Here is Samsung fixes for v3.9 and it is not a critical fixes. * 'next/fixes-samsung' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: ARM: dts: Correct pin configuration of SD 4 for exynos4x12-pinctrl ARM: SAMSUNG: Silence empty switch warning in fimc-core.h ARM: SAMSUNG: Silence empty switch warning in sdhci.h ARM: S5PV210: Fix early uart output in fifo mode ARM: S3C24XX: Fix compile breakage for SMDK2410 ARM: S3C24XX: add missing platform_device.h include for osiris ARM: S3C24XX: let S3C2412_PM select S3C2412_PM_SLEEP ARM: SAMSUNG: Gracefully exit on suspend failure ARM: SAMSUNG: using vsnprintf instead of vsprintf for the limit buffer length 256 ARM: S3C24XX: Make 'clk_msysclk' static
This commit is contained in:
commit
bda7997e34
|
@ -661,7 +661,7 @@ sd4_bus4: sd4-bus-width4 {
|
|||
|
||||
sd4_bus8: sd4-bus-width8 {
|
||||
samsung,pins = "gpk1-3", "gpk1-4", "gpk1-5", "gpk1-6";
|
||||
samsung,pin-function = <3>;
|
||||
samsung,pin-function = <4>;
|
||||
samsung,pin-pud = <4>;
|
||||
samsung,pin-drv = <3>;
|
||||
};
|
||||
|
|
|
@ -91,8 +91,8 @@ static int exynos_cpu_suspend(unsigned long arg)
|
|||
/* issue the standby signal into the pm unit. */
|
||||
cpu_do_idle();
|
||||
|
||||
/* we should never get past here */
|
||||
panic("sleep resumed to originator?");
|
||||
pr_info("Failed to suspend the system\n");
|
||||
return 1; /* Aborting suspend */
|
||||
}
|
||||
|
||||
static void exynos_pm_prepare(void)
|
||||
|
@ -282,6 +282,8 @@ static void exynos_pm_resume(void)
|
|||
if (!(tmp & S5P_CENTRAL_LOWPWR_CFG)) {
|
||||
tmp |= S5P_CENTRAL_LOWPWR_CFG;
|
||||
__raw_writel(tmp, S5P_CENTRAL_SEQ_CONFIGURATION);
|
||||
/* clear the wakeup state register */
|
||||
__raw_writel(0x0, S5P_WAKEUP_STAT);
|
||||
/* No need to perform below restore code */
|
||||
goto early_wakeup;
|
||||
}
|
||||
|
|
|
@ -226,6 +226,7 @@ config MACH_QT2410
|
|||
config ARCH_SMDK2410
|
||||
bool "SMDK2410/A9M2410"
|
||||
select S3C24XX_SMDK
|
||||
select S3C_DEV_USB_HOST
|
||||
help
|
||||
Say Y here if you are using the SMDK2410 or the derived module A9M2410
|
||||
<http://www.fsforth.de>
|
||||
|
@ -273,6 +274,7 @@ config S3C2412_DMA
|
|||
|
||||
config S3C2412_PM
|
||||
bool
|
||||
select S3C2412_PM_SLEEP
|
||||
help
|
||||
Internal config node to apply S3C2412 power management
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ static struct clk *clk_msysclk_sources[] = {
|
|||
[3] = &clk_mpllref,
|
||||
};
|
||||
|
||||
struct clksrc_clk clk_msysclk = {
|
||||
static struct clksrc_clk clk_msysclk = {
|
||||
.clk = {
|
||||
.name = "msysclk",
|
||||
.parent = &clk_xtal,
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/clk.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
#include <linux/i2c/tps65010.h>
|
||||
|
||||
|
|
|
@ -48,7 +48,8 @@ static int s3c2412_cpu_suspend(unsigned long arg)
|
|||
|
||||
s3c2412_sleep_enter();
|
||||
|
||||
panic("sleep resumed to originator?");
|
||||
pr_info("Failed to suspend the system\n");
|
||||
return 1; /* Aborting suspend */
|
||||
}
|
||||
|
||||
static void s3c2412_pm_prepare(void)
|
||||
|
|
|
@ -34,7 +34,8 @@ static int s3c2416_cpu_suspend(unsigned long arg)
|
|||
|
||||
s3c2412_sleep_enter();
|
||||
|
||||
panic("sleep resumed to originator?");
|
||||
pr_info("Failed to suspend the system\n");
|
||||
return 1; /* Aborting suspend */
|
||||
}
|
||||
|
||||
static void s3c2416_pm_prepare(void)
|
||||
|
|
|
@ -296,7 +296,8 @@ static int s3c64xx_cpu_suspend(unsigned long arg)
|
|||
|
||||
/* we should never get past here */
|
||||
|
||||
panic("sleep resumed to originator?");
|
||||
pr_info("Failed to suspend the system\n");
|
||||
return 1; /* Aborting suspend */
|
||||
}
|
||||
|
||||
/* mapping of interrupts to parts of the wakeup mask */
|
||||
|
|
|
@ -103,8 +103,8 @@ static int s5p64x0_cpu_suspend(unsigned long arg)
|
|||
"mcr p15, 0, %0, c7, c10, 4\n\t"
|
||||
"mcr p15, 0, %0, c7, c0, 4" : : "r" (tmp));
|
||||
|
||||
/* we should never get past here */
|
||||
panic("sleep resumed to originator?");
|
||||
pr_info("Failed to suspend the system\n");
|
||||
return 1; /* Aborting suspend */
|
||||
}
|
||||
|
||||
/* mapping of interrupts to parts of the wakeup mask */
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
static void arch_detect_cpu(void)
|
||||
{
|
||||
/* we do not need to do any cpu detection here at the moment. */
|
||||
fifo_mask = S5PV210_UFSTAT_TXMASK;
|
||||
fifo_max = 63 << S5PV210_UFSTAT_TXSHIFT;
|
||||
}
|
||||
|
||||
#endif /* __ASM_ARCH_UNCOMPRESS_H */
|
||||
|
|
|
@ -104,8 +104,8 @@ static int s5pv210_cpu_suspend(unsigned long arg)
|
|||
"mcr p15, 0, %0, c7, c10, 4\n\t"
|
||||
"wfi" : : "r" (tmp));
|
||||
|
||||
/* we should never get past here */
|
||||
panic("sleep resumed to originator?");
|
||||
pr_info("Failed to suspend the system\n");
|
||||
return 1; /* Aborting suspend */
|
||||
}
|
||||
|
||||
static void s5pv210_pm_prepare(void)
|
||||
|
|
|
@ -43,6 +43,8 @@ static inline void s3c_fimc_setname(int id, char *name)
|
|||
s5p_device_fimc3.name = name;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -374,6 +374,8 @@ static inline void s3c_sdhci_setname(int id, char *name)
|
|||
s3c_device_hsmmc3.name = name;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ void s3c_pm_dbg(const char *fmt, ...)
|
|||
char buff[256];
|
||||
|
||||
va_start(va, fmt);
|
||||
vsprintf(buff, fmt, va);
|
||||
vsnprintf(buff, sizeof(buff), fmt, va);
|
||||
va_end(va);
|
||||
|
||||
printascii(buff);
|
||||
|
@ -243,6 +243,7 @@ int (*pm_cpu_sleep)(unsigned long);
|
|||
|
||||
static int s3c_pm_enter(suspend_state_t state)
|
||||
{
|
||||
int ret;
|
||||
/* ensure the debug is initialised (if enabled) */
|
||||
|
||||
s3c_pm_debug_init();
|
||||
|
@ -300,7 +301,9 @@ static int s3c_pm_enter(suspend_state_t state)
|
|||
* we resume as it saves its own register state and restores it
|
||||
* during the resume. */
|
||||
|
||||
cpu_suspend(0, pm_cpu_sleep);
|
||||
ret = cpu_suspend(0, pm_cpu_sleep);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* restore the system state */
|
||||
|
||||
|
|
Loading…
Reference in New Issue