[PATCH] powerpc: Quick fix upstream main line build error on PowerPC

2015-10-08 Thread Dongsheng Wang
From: Wang Dongsheng This issue caused on 'commit 990486c8af04 ("strscpy: zero any trailing garbage bytes in the destination")'. zero_bytemask is not implemented on PowerPC. So copy the zero_bytemask of BIG_ENDIAN implementation from include/asm-generic/word-at-a-time.h to arch/powerpc/include/a

[PATCH v2] arm/ls1021a: Add Sleep feature for ls1021

2015-09-15 Thread Dongsheng Wang
From: Wang Dongsheng Add system STANDBY implement for ls1021 platform. Signed-off-by: Chenhui Zhao Signed-off-by: Wang Dongsheng --- *v2*: - Remove PSCI code. Just implement STANDBY in platform code. diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index fb689d8..d7a2d1d 10

[PATCH] arm/ls1021a: Add Sleep feature for ls1021

2015-09-10 Thread Dongsheng Wang
From: Wang Dongsheng Based on PSCI framework, add system STANDBY implement for ls1021 platform. Signed-off-by: Chenhui Zhao Signed-off-by: Wang Dongsheng diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index fb689d8..d7a2d1d 100644 --- a/arch/arm/mach-imx/Makefile +++ b/a

[PATCH v3] rtc/ds3232: fix ds3232 get a WARNING trace in resume function

2015-08-20 Thread Dongsheng Wang
From: Wang Dongsheng If ds3232 work on some platform that is not implementation irq_set_wake, ds3232 will get a WARNING trace in resume. So fix ds3232->suspended state to false when irq_set_irq_wake return error. Signed-off-by: Wang Dongsheng --- *v3* - Remove kernel trace in commit message. -

[PATCH v2] rtc/ds3232: fix ds3232 get a WARNING trace in resume function

2015-08-12 Thread Dongsheng Wang
From: Wang Dongsheng If ds3232 work on some platform that is not implementation irq_set_wake, ds3232 will get a WARNING trace in resume. So fix ds3232->suspended state to false when irq_set_irq_wake return error. [ cut here ] WARNING: CPU: 0 PID: 729 at kernel/irq/manage.

[PATCH v2 1/2] soc/fsl: add freescale dir for SOC specific drivers

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng Some Freescale device drivers need to move to soc/, because these drivers are specific drivers. Before the soc/ to be created, the drivers had been there arch/ or drivers/misc/, but now soc/ dir is a better choice. Signed-off-by: Wang Dongsheng --- *V2* Rebase for last kern

[PATCH 2/2] soc/fsl: add ftm alarm driver for ls1021a platform

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng Only Ftm0 can be used when system going to deep sleep. So this driver to support ftm0 as a wakeup source. Signed-off-by: Wang Dongsheng --- *V2* Change Copyright 2014 to 2015. diff --git a/drivers/soc/fsl/ls1/Kconfig b/drivers/soc/fsl/ls1/Kconfig index 7556f44..e6282dc 100

[PATCH v3 2/2] ARM: dts: ls1021a: add wakeup device ftm0 node for ls1021a

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng Add ftm0 node, cause of ftm0 can be set as a alarm before system going to deep sleep. Signed-off-by: Wang Dongsheng Signed-off-by: Alison Wang --- *V3* - No changes. *V2* - Add my SoB. - Use "ARM:" as subject prefix. diff --git a/arch/arm/boot/dts/ls1021a-qds.dts b/arch

[PATCH v3 1/2] Documentation: DT: FTM: add FTM0 be used as alarm timer

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng In freescale layerscape platform there is only FTM0 can be used as alarm timer to wake up system. So add FTM0 description for devicetree document. Signed-off-by: Wang Dongsheng --- V3: Include this patch in V3. diff --git a/Documentation/devicetree/bindings/timer/fsl,ftm-t

[PATCH] rtc/ds3232: fix ds3232 get a WARNING trace in resume function

2015-07-06 Thread Dongsheng Wang
From: Wang Dongsheng If ds3232 work on some platform that is not implementation irq_set_wake, ds3232 will get a WARNING trace in resume. So fix ds3232->suspended state to false when irq_set_irq_wake return error. [ cut here ] WARNING: CPU: 0 PID: 729 at kernel/irq/manage.

[PATCH 1/2] soc/fsl: add freescale dir for SOC specific drivers

2014-09-26 Thread Dongsheng Wang
From: Wang Dongsheng Some Freescale device drivers need to move to soc/, because these drivers are specific drivers. Before the soc/ to be created, the drivers had been there arch/ or drivers/misc/, but now soc/ dir is a better choice. Signed-off-by: Wang Dongsheng diff --git a/drivers/soc/Kco

[PATCH 2/2] soc/fsl: add ftm alarm driver for ls1021a platform

2014-09-26 Thread Dongsheng Wang
From: Wang Dongsheng Only Ftm0 can be used when system going to deep sleep. So this driver to support ftm0 as a wakeup source. Signed-off-by: Wang Dongsheng diff --git a/drivers/soc/fsl/ls1/Kconfig b/drivers/soc/fsl/ls1/Kconfig index 7556f44..c9b04c4 100644 --- a/drivers/soc/fsl/ls1/Kconfig ++

[PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread Dongsheng Wang
From: Wang Dongsheng If softirq use hardirq stack, we will get kernel painc when a hard irq coming again during __do_softirq enable local irq to deal with softirq action. So we need to switch satck into softirq stack when invoke soft irq. Task---> | Task stack | Interr