[PATCH v2 5/5] tty/serial: Add earlycon support for Spreadtrum serial driver

2014-10-17 Thread Chunyan Zhang
Add serial driver for spreadtrum sharkl platform with earlycon support at first. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- drivers/tty/serial/Kconfig | 24 ++ drivers/tty/serial/Makefile |1 + drivers/tty/serial/sprd-serial.c | 64

[PATCH v2 1/5] Documentation: DT: Renamed of-serial.txt to 8250.txt

2014-10-17 Thread Chunyan Zhang
The file of-serial.txt was only for 8250 compatible UART implementations, so renamed it to 8250.txt to avoid confusing other persons. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- Documentation/devicetree/bindings/serial/8250.txt | 50 .../devicetree

[PATCH v2 3/5] arm64: dts: Add support for Spreadtrum Sharkl3 SoC in dts and Makefile.

2014-10-17 Thread Chunyan Zhang
-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/boot/dts/Makefile |1 + arch/arm64/boot/dts/sprd-sharkl.dtsi | 33 ++ arch/arm64/boot/dts/sprd-sharkl3-fpga.dts | 41 + arch/arm64/boot/dts/sprd-sharkl3.dtsi | 69

[PATCH v2 4/5] arm64: Add support for Spreadtrum's Sharkl Platform in Kconfig and defconfig

2014-10-17 Thread Chunyan Zhang
From: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Adds support for Spreadtrum's Sharkl Platform in the arm64 Kconfig and defconfig files. Signed-off-by: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/Kconfig |6

[PATCH v2 2/5] Documentation: DT: Add bindings for Spreadtrum Sharkl Platform

2014-10-17 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentation for Spreadtrum's serial and Sharkl3 SoC based on the Sharkl Platform which is the 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- Documentation

[PATCH v2 0/5] Add Spreadtrum Sharkl Platform support

2014-10-17 Thread Chunyan Zhang
for Sharkl Platform - Changed to PSCI method for cpu power management - Revised Kconfig Makefile to match the alphabetical ordering - Renamed serial-sprd-earlycon.c to serial-sprd.c Chunyan Zhang (3): Documentation: DT: Renamed of-serial.txt to 8250.txt Documentation: DT

[PATCH v3 5/5] tty/serial: Add Spreadtrum sc9836-uart driver support

2014-11-25 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Originally-by: Lanqing Liu lanqing@spreadtrum.com

[PATCH v3 2/5] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2014-11-25 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson

[PATCH v3 4/5] arm64: Add support for Spreadtrum's Sharkl64 Platform in Kconfig and defconfig

2014-11-25 Thread Chunyan Zhang
From: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Adds support for Spreadtrum's SoC Platform and its subset Sharkl64 in the arm64 Kconfig and defconfig files. Signed-off-by: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson

[PATCH v3 0/5] Add Spreadtrum Sharkl64 Platform support

2014-11-25 Thread Chunyan Zhang
- Revised Kconfig Makefile to match the alphabetical ordering - Renamed serial-sprd-earlycon.c to serial-sprd.c Chunyan Zhang (3): Documentation: DT: Renamed of-serial.txt to 8250.txt Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial: Add Spreadtrum sc9836

[PATCH v3 1/5] Documentation: DT: Renamed of-serial.txt to 8250.txt

2014-11-25 Thread Chunyan Zhang
The file of-serial.txt was only for 8250 compatible UART implementations, so renamed it to 8250.txt to avoid confusing other persons. This is recommended by Arnd, see: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/291455.html Signed-off-by: Chunyan Zhang chunyan.zh

[PATCH v3 3/5] arm64: dts: Add support for Spreadtrum SC9836 SoC in dts and Makefile

2014-11-25 Thread Chunyan Zhang
-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com --- arch/arm64/boot/dts/Makefile |1 + arch/arm64/boot/dts/sprd-sc9836-openphone.dts | 85 arch/arm64/boot/dts/sprd-sc9836.dtsi | 103

Re: [PATCH] media: rc: Replace timeval with ktime_t in imon.c

2014-12-18 Thread Chunyan Zhang
On Thu, Dec 18, 2014 at 3:50 PM, Arnd Bergmann a...@linaro.org wrote: On Thursday 18 December 2014 11:37:13 Chunyan Zhang wrote: This patch changes the 32-bit time type (timeval) to the 64-bit one (ktime_t), since 32-bit time types will break in the year 2038. I use ktime_t instead of all

Re: [PATCH] media: rc: Replace timeval with ktime_t in imon.c

2014-12-18 Thread Chunyan Zhang
On Thu, Dec 18, 2014 at 7:00 PM, Mauro Carvalho Chehab mche...@osg.samsung.com wrote: Em Thu, 18 Dec 2014 17:38:14 +0800 Chunyan Zhang zhang.chun...@linaro.org escreveu: On Thu, Dec 18, 2014 at 3:50 PM, Arnd Bergmann a...@linaro.org wrote: On Thursday 18 December 2014 11:37:13 Chunyan Zhang

[PATCH 0/3] Changes the time type 'timeval' to 'Ktime'

2014-12-18 Thread Chunyan Zhang
in ktime.h. The last two patches of this patch-set will use this function, so they are dependent on the first one. Chunyan Zhang (3): ktime.h: Introduce ktime_ms_delta mtd: test: Replace timeval with ktime_t in speedtest.c and torturetest.c media: rc: Replace timeval with ktime_t in imon.c drivers

[PATCH 1/3] ktime.h: Introduce ktime_ms_delta

2014-12-18 Thread Chunyan Zhang
This patch introduces a reusable time difference function which returns the difference in millisecond, as often used in some driver code, e.g. mtd/test, media/rc, etc. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Acked-by: Arnd Bergmann a...@linaro.org --- include/linux/ktime.h |5

[PATCH 2/3] mtd: test: Replace timeval with ktime_t in speedtest.c and torturetest.c

2014-12-18 Thread Chunyan Zhang
difference. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed-by: Arnd Bergmann a...@arndb.de --- drivers/mtd/tests/speedtest.c | 10 +- drivers/mtd/tests/torturetest.c | 10 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/tests/speedtest.c

[PATCH 3/3] media: rc: Replace timeval with ktime_t in imon.c

2014-12-18 Thread Chunyan Zhang
, but do_gettimeofday returns a struct timeval, and the other reason is that ktime_get() uses the monotonic clock. This patch will use a new function 'ktime_ms_delta' which is introduced in 1/3 of this patch-set to get the millisecond time difference. Signed-off-by: Chunyan Zhang zhang.chun

[PATCH] ktime.h: Introduce ktime_ms_delta

2014-12-16 Thread Chunyan Zhang
This patch adds a reusable time difference function which returns the difference in millisecond, as often used in some driver code, e.g. mtd/test, media/rc, etc. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- include/linux/ktime.h |5 + 1 file changed, 5 insertions(+) diff

[PATCH v3] mtd: test: Replace timeval with ktime_t in speedtest.c and torturetest.c

2014-12-17 Thread Chunyan Zhang
://lkml.iu.edu//hypermail/linux/kernel/1412.2/00625.html Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed-by: Arnd Bergmann a...@arndb.de --- Changes since v2: - Use the new function ktime_ms_delta which is added in another patch listed up. Changes since v1: - Add including linux/ktime.h

[PATCH] media: rc: Replace timeval with ktime_t in imon.c

2014-12-17 Thread Chunyan Zhang
-off-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/media/rc/imon.c | 49 +-- 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index b8837dd..a641139 100644 --- a/drivers/media/rc

[PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs'

2014-12-03 Thread Chunyan Zhang
/308270.html Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/include/asm/irq.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h index e1f7ecd..acedc7e 100644 --- a/arch/arm64/include/asm/irq.h +++ b/arch

[PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs'

2014-12-04 Thread Chunyan Zhang
/308270.html Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/include/asm/irq.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h index e1f7ecd..acedc7e 100644 --- a/arch/arm64/include/asm/irq.h +++ b/arch

[PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs'

2014-12-04 Thread Chunyan Zhang
/308270.html Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/include/asm/irq.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h index e1f7ecd..acedc7e 100644 --- a/arch/arm64/include/asm/irq.h +++ b/arch

[PATCH v4 2/5] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2014-12-04 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson

[PATCH v4 1/5] Documentation: DT: Renamed of-serial.txt to 8250.txt

2014-12-04 Thread Chunyan Zhang
The file of-serial.txt was only for 8250 compatible UART implementations, so renamed it to 8250.txt to avoid confusing other persons. This is suggested by Arnd, see: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/291455.html Signed-off-by: Chunyan Zhang chunyan.zh

[PATCH v4 4/5] arm64: Add support for Spreadtrum's Sharkl64 Platform in Kconfig and defconfig

2014-12-04 Thread Chunyan Zhang
From: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Adds support for Spreadtrum's SoC Platform in the arm64 Kconfig and defconfig files. Signed-off-by: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson Zhai orson.z

[PATCH v4 3/5] arm64: dts: Add support for Spreadtrum SC9836 SoC in dts and Makefile

2014-12-04 Thread Chunyan Zhang
-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com --- arch/arm64/boot/dts/Makefile |1 + arch/arm64/boot/dts/sprd-sc9836-openphone.dts | 85 arch/arm64/boot/dts/sprd-sc9836.dtsi | 102

[PATCH v4 5/5] tty/serial: Add Spreadtrum sc9836-uart driver support

2014-12-04 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. This patch also replaced the spaces between the macros and their values with the tabs in serial_core.h Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

[PATCH v4 0/5] Add Spreadtrum Sharkl64 Platform support

2014-12-04 Thread Chunyan Zhang
for cpu power management - Revised Kconfig Makefile to match the alphabetical ordering - Renamed serial-sprd-earlycon.c to serial-sprd.c Chunyan Zhang (3): Documentation: DT: Renamed of-serial.txt to 8250.txt Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial

[PATCH v6 1/2] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2015-01-22 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson

[PATCH v6 0/2] Add Spreadtrum SoC bindings and serial driver support

2015-01-22 Thread Chunyan Zhang
as needed - Removed register states saving and restoring in suspend() and resume() Chunyan Zhang (2): Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial: Add Spreadtrum sc9836-uart driver support Documentation/devicetree/bindings/arm/sprd.txt | 11

[PATCH v6 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-22 Thread Chunyan Zhang
-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- drivers/tty/serial/Kconfig | 18 + drivers/tty/serial/Makefile |1 + drivers/tty/serial/sprd_serial.c | 801 ++ include/uapi/linux

[PATCH v5 3/5] arm64: dts: Add support for Spreadtrum SC9836 SoC in dts and Makefile

2015-01-16 Thread Chunyan Zhang
-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/boot/dts/Makefile |1 + arch/arm64/boot/dts/sprd/Makefile |5 ++ arch/arm64/boot/dts/sprd/sc9836-openphone.dts | 49 + arch/arm64/boot

[PATCH v5 1/5] Documentation: DT: Renamed of-serial.txt to 8250.txt

2015-01-16 Thread Chunyan Zhang
The file of-serial.txt was only for 8250 compatible UART implementations, so renamed it to 8250.txt to avoid confusing other persons. This is suggested by Arnd, see: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/291455.html Signed-off-by: Chunyan Zhang chunyan.zh

[PATCH v5 2/5] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2015-01-16 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com Signed-off-by: Orson

[PATCH v5 5/5] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-16 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. This patch also replaced the spaces between the macros and their values with the tabs in serial_core.h Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

[PATCH v5 4/5] arm64: Add support for Spreadtrum's Sharkl64 Platform in Kconfig and defconfig

2015-01-16 Thread Chunyan Zhang
From: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Adds support for Spreadtrum's SoC Platform in the arm64 Kconfig and defconfig files. Signed-off-by: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh

[PATCH v5 0/5] Add Spreadtrum Sharkl64 Platform support

2015-01-16 Thread Chunyan Zhang
to serial-sprd.c Chunyan Zhang (3): Documentation: DT: Renamed of-serial.txt to 8250.txt Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial: Add Spreadtrum sc9836-uart driver support Zhizhou Zhang (2): arm64: dts: Add support for Spreadtrum SC9836 SoC in dts

[PATCH v8 1/2] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2015-01-27 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- Documentation

[PATCH v7 0/2] Add Spreadtrum Sharkl64 Platform support

2015-01-27 Thread Chunyan Zhang
This patch-set split the last version, and addressed the review comments from last version on serial driver code. Changes from v6: - Setted stdout-path with serial1:115200n8 Changes from v5: - Added maintenance interrupt for gic - Removed reg property from 'soc' and 'apb'

[PATCH v7 2/2] arm64: Add support for Spreadtrum's Sharkl64 Platform in Kconfig and defconfig

2015-01-27 Thread Chunyan Zhang
From: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Adds support for Spreadtrum's SoC Platform in the arm64 Kconfig and defconfig files. Signed-off-by: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh

[PATCH v7 1/2] arm64: dts: Add support for Spreadtrum SC9836 SoC in dts and Makefile

2015-01-27 Thread Chunyan Zhang
-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/boot/dts/Makefile |1 + arch/arm64/boot/dts/sprd/Makefile |5 ++ arch/arm64/boot/dts/sprd/sc9836-openphone.dts | 49 arch/arm64/boot/dts

[PATCH v8 0/2] Add Spreadtrum SoC bindings and serial driver support

2015-01-27 Thread Chunyan Zhang
Changes from v5: - Used Spreadtrum instead of SPRD in menus - Changed TTY name to 'ttyS' - Moved uart_register_driver() to probe() - Added spinlock as needed - Removed register states saving and restoring in suspend() and resume() Chunyan Zhang (2

[PATCH v8 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-27 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu lanqing@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

[PATCH v9 0/2] Add Spreadtrum SoC bindings and serial driver support

2015-01-27 Thread Chunyan Zhang
Changes from v8: - Moved a few unuseful code lines. Chunyan Zhang (2): Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial: Add Spreadtrum sc9836-uart driver support Documentation/devicetree/bindings/arm/sprd.txt | 11 + .../devicetree/bindings/serial/sprd

[PATCH v9 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-27 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu lanqing@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

[PATCH v9 1/2] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2015-01-27 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- Documentation

[PATCH v10 1/2] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2015-01-29 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- Documentation

[PATCH v10 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-29 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu lanqing@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

[PATCH v10 0/2] Add Spreadtrum SoC bindings and serial driver support

2015-01-29 Thread Chunyan Zhang
Changes from v9: - Added SUPPORT_SYSRQ definition for sprd serial Changes from v8: - Removed a few unuseful code lines. Chunyan Zhang (2): Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial: Add Spreadtrum sc9836-uart driver support Documentation

[PATCH v6 0/2] Add Spreadtrum Sharkl64 Platform support

2015-01-23 Thread Chunyan Zhang
This patch-set split the last version, and addressed the review comments from last version on serial driver code. Changes from v5: - Added maintenance interrupt for gic - Removed reg property from 'soc' and 'apb' nodes Zhizhou Zhang (2): arm64: dts: Add support for Spreadtrum

[PATCH v6 1/2] arm64: dts: Add support for Spreadtrum SC9836 SoC in dts and Makefile

2015-01-23 Thread Chunyan Zhang
-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/boot/dts/Makefile |1 + arch/arm64/boot/dts/sprd/Makefile |5 ++ arch/arm64/boot/dts/sprd/sc9836-openphone.dts | 49 arch/arm64/boot/dts

[PATCH v6 2/2] arm64: Add support for Spreadtrum's Sharkl64 Platform in Kconfig and defconfig

2015-01-23 Thread Chunyan Zhang
From: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Adds support for Spreadtrum's SoC Platform in the arm64 Kconfig and defconfig files. Signed-off-by: Zhizhou Zhang zhizhou.zh...@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh

[PATCH v7 1/2] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2015-01-23 Thread Chunyan Zhang
Adds Spreadtrum's prefix sprd to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- Documentation

[PATCH 3/6] driver/net/irda: Replace timeval with ktime_t in irda-usb

2015-01-06 Thread Chunyan Zhang
-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/net/irda/irda-usb.c | 11 +++ drivers/net/irda/irda-usb.h |6 +++--- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c index 48b2f9a..be86840 100644 --- a/drivers

[PATCH 2/6] driver/net/irda: Replace timeval with ktime_t in ali-ircc

2015-01-06 Thread Chunyan Zhang
-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/net/irda/ali-ircc.c | 12 drivers/net/irda/ali-ircc.h |6 +++--- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/net/irda/ali-ircc.c b/drivers/net/irda/ali-ircc.c index 58f98f4..ab041a4 100644

[PATCH 0/6] driver/net/irda: Use ktime_t instead of timeval

2015-01-06 Thread Chunyan Zhang
to get the elapsed time directly. Chunyan Zhang (6): driver/net/irda: Removed all unused timeval variables driver/net/irda: Replace timeval with ktime_t in ali-ircc driver/net/irda: Replace timeval with ktime_t in irda-usb driver/net/irda: Replace timeval with ktime_t in nsc-ircc driver/net

[PATCH 4/6] driver/net/irda: Replace timeval with ktime_t in nsc-ircc

2015-01-06 Thread Chunyan Zhang
-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/net/irda/nsc-ircc.c |8 +++- drivers/net/irda/nsc-ircc.h |6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/net/irda/nsc-ircc.c b/drivers/net/irda/nsc-ircc.c index e7317b1..cabb82e 100644 --- a/drivers/net

[PATCH 1/6] driver/net/irda: Removed all unused timeval variables

2015-01-06 Thread Chunyan Zhang
In the file au1k_ir.c via-ircc.h, there were two unused definitions of the timeval type members, so I removed them entirely in this patch. In other three files, the same problem is the rx_time member is only ever written, never read, so removed it entirely. Signed-off-by: Chunyan Zhang

[PATCH 6/6] driver/net/irda: Replace timeval with ktime_t in vlsi_ir

2015-01-06 Thread Chunyan Zhang
of function 'vlsi_hard_start_xmit' to do the same things as the others drivers, that is passing the remaining time into udelay() instead of looping until enough time has passed. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/net/irda/vlsi_ir.c | 51

[PATCH 5/6] driver/net/irda: Replace timeval with ktime_t in stir4200

2015-01-06 Thread Chunyan Zhang
, but do_gettimeofday returns a struct timeval, and the other reason is that ktime_get() uses the monotonic clock. This patch use ktime_us_delta to get the elapsed time of microsecond. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/net/irda/stir4200.c | 18 +- 1 file

Re: [PATCH v3] mtd: test: Replace timeval with ktime_t in speedtest.c and torturetest.c

2015-01-14 Thread Chunyan Zhang
Hi, Brian Thank you so much ! Best regards, Chunyan On Thu, Jan 8, 2015 at 9:26 AM, Brian Norris computersforpe...@gmail.com wrote: On Thu, Dec 18, 2014 at 08:53:10AM +0100, Arnd Bergmann wrote: On Thursday 18 December 2014 11:23:31 Chunyan Zhang wrote: This patch changes the 32-bit time

[PATCH v2 1/6] irda: Removed all unused timeval variables

2015-01-07 Thread Chunyan Zhang
In the file au1k_ir.c via-ircc.h, there were two unused definitions of the timeval type members, this commit therefore removes this unneeded code. In other three files, the same problem is the rx_time member is only ever written, never read, so removed it entirely. Signed-off-by: Chunyan Zhang

[PATCH v2 0/6] irda: Use ktime_t instead of timeval

2015-01-07 Thread Chunyan Zhang
to get the elapsed time directly. Chunyan Zhang (6): irda: Removed all unused timeval variables irda: ali-ircc: Replace timeval with ktime_t irda: irda-usb: Replace timeval with ktime_t irda: nsc-ircc: Replace timeval with ktime_t irda: stir4200: Replace timeval with ktime_t irda: vlsi_ir

[PATCH v2 4/6] irda: nsc-ircc: Replace timeval with ktime_t

2015-01-07 Thread Chunyan Zhang
reason is that ktime_get() uses the monotonic clock. This patch uses ktime_us_delta to get the elapsed time, and in this way it no longer needs to check for the overflow, because ktime_us_delta returns time difference of microsecond. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed

[PATCH v2 5/6] irda: stir4200: Replace timeval with ktime_t

2015-01-07 Thread Chunyan Zhang
reason is that ktime_get() uses the monotonic clock. This patch uses ktime_us_delta to get the elapsed time of microsecond. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed-by: Arnd Bergmann a...@arndb.de --- drivers/net/irda/stir4200.c | 16 +++- 1 file changed, 7

[PATCH v2 6/6] irda: vlsi_ir: Replace timeval with ktime_t

2015-01-07 Thread Chunyan Zhang
as the others drivers, that is passing the remaining time into udelay() instead of looping until enough time has passed. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed-by: Arnd Bergmann a...@arndb.de --- drivers/net/irda/vlsi_ir.c | 46 +--- drivers

[PATCH v2 3/6] irda: irda-usb: Replace timeval with ktime_t

2015-01-07 Thread Chunyan Zhang
reason is that ktime_get() uses the monotonic clock. This patch uses ktime_us_delta to get the elapsed time, and in this way it no longer needs to check for the overflow, because ktime_us_delta returns time difference of microsecond. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed

[PATCH v2 2/6] irda: ali-ircc: Replace timeval with ktime_t

2015-01-07 Thread Chunyan Zhang
reason is that ktime_get() uses the monotonic clock. This patch uses ktime_us_delta to get the elapsed time, and in this way it no longer needs to check for the overflow, because ktime_us_delta returns time difference of microsecond. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed

[PATCH] kernel: async: Fixed the wrong waitting condition of wait_event

2015-01-04 Thread Chunyan Zhang
-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- kernel/async.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/async.c b/kernel/async.c index 4c3773c..894ae80 100644 --- a/kernel/async.c +++ b/kernel/async.c @@ -267,7 +267,7 @@ EXPORT_SYMBOL_GPL

Re: [PATCH v8 0/2] Add Spreadtrum Sharkl64 Platform support

2015-03-12 Thread Chunyan Zhang
On Thu, Mar 12, 2015 at 6:01 AM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 11 March 2015 02:27:08 Chunyan Zhang wrote: This patchset adds Spreadtrum's Sharkl64 support in arm64 device tree. Changes from v7: - Added Mark Rutland's Acked-by - Rebased v4.0-rc1 Applied

Re: [PATCH] coresight: adding basic support for Spreadtrum SC9836

2015-03-25 Thread Chunyan Zhang
On Tue, Mar 24, 2015 at 11:08 PM, Mathieu Poirier mathieu.poir...@linaro.org wrote: On 23 March 2015 at 23:48, Chunyan Zhang zhang.chun...@linaro.org wrote: Support only for ETB, FUNNEL, STM are included currently. Support for ETM, TPIU and the replicator linked to it are not included

[PATCH] coresight: adding basic support for Spreadtrum SC9836

2015-03-25 Thread Chunyan Zhang
Support only for ETF, FUNNEL, STM are included currently. Support for ETM, TPIU and the replicator linked to it are not included in this version patch. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- arch/arm64/boot/dts/sprd/sc9836.dtsi | 55 1 file

[PATCH v2] coresight: adding basic support for Spreadtrum SC9836

2015-03-25 Thread Chunyan Zhang
Support only for ETF, FUNNEL, STM are included currently. Support for ETM, TPIU and the replicator linked to it are not included in this version patch. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- Change for v2: - Corrected the TMC whose space is wrongly used as ETB in v1

[PATCH] coresight: adding basic support for Spreadtrum SC9836

2015-03-23 Thread Chunyan Zhang
Support only for ETB, FUNNEL, STM are included currently. Support for ETM, TPIU and the replicator linked to it are not included in this version patch. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- arch/arm64/boot/dts/sprd/sc9836.dtsi | 57 1 file

[PATCH v7 0/2] Add Spreadtrum SoC bindings and serial driver support

2015-01-23 Thread Chunyan Zhang
as needed - Removed register states saving and restoring in suspend() and resume() Chunyan Zhang (2): Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial: Add Spreadtrum sc9836-uart driver support Documentation/devicetree/bindings/arm/sprd.txt | 11

[PATCH v7 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-23 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu lanqing@spreadtrum.com Signed-off-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

[RFC PATCH 2/3] Trace log handler for logging into STM blocks

2015-06-04 Thread Chunyan Zhang
Adding the function 'trace_event_stm_output_##call' for printing events trace log into STM blocks. This patch also added a function call at where the events have been committed to ring buffer to export the trace event information to STM blocks. Signed-off-by: Chunyan Zhang zhang.chun

[RFC PATCH 1/3] STM trace event: Adding generic buffer interface driver

2015-06-04 Thread Chunyan Zhang
in the STM trace engine. Signed-off-by: Mathieu Poirier mathieu.poir...@linaro.org Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/stm/Kconfig | 11 +++ drivers/stm/Makefile | 2 ++ drivers/stm/stm_trace_event.c | 46

[RFC PATCH 3/3] Introduce trace log output function for STM

2015-06-04 Thread Chunyan Zhang
in the format of a string, the function 'trace_event_buf_vprintf()' is just for this purpose. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- kernel/trace/Makefile | 1 + kernel/trace/trace_output_stm.c | 99 + 2 files changed, 100

[RFC PATCH 0/3] Integration of trace events with System Trace IP blocks

2015-06-04 Thread Chunyan Zhang
/gmane.linux.kernel/1914526 [3]. http://mipi.org/specifications/debug#STP Chunyan Zhang (2): Trace log handler for logging into STM blocks Introduce trace log output function for STM Mathieu Poirier (1): STM trace event: Adding generic buffer interface driver drivers/stm/Kconfig | 11

[RFC PATCH v2 1/3] STM trace event: Adding generic buffer interface driver

2015-06-16 Thread Chunyan Zhang
in the STM trace engine. Signed-off-by: Mathieu Poirier mathieu.poir...@linaro.org Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/stm/Kconfig | 11 +++ drivers/stm/Makefile | 2 ++ drivers/stm/stm_trace_event.c | 46

[RFC PATCH v2 0/3] Integration of trace events with System Trace IP blocks

2015-06-16 Thread Chunyan Zhang
]. http://comments.gmane.org/gmane.linux.kernel/1914526 [3]. http://mipi.org/specifications/debug#STP Changes from RFC v1: - Marked module init/exit functions with __init/__exit key word according to the comments from Paul Bolle Chunyan Zhang (2): Trace log handler for logging into STM

[RFC PATCH v2 2/3] Trace log handler for logging into STM blocks

2015-06-16 Thread Chunyan Zhang
Adding the function 'trace_event_stm_output_##call' for printing events trace log into STM blocks. This patch also added a function call at where the events have been committed to ring buffer to export the trace event information to STM blocks. Signed-off-by: Chunyan Zhang zhang.chun

[RFC PATCH v2 3/3] Introduce trace log output function for STM

2015-06-16 Thread Chunyan Zhang
in the format of a string, the function 'trace_event_buf_vprintf()' is just for this purpose. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- kernel/trace/Makefile | 1 + kernel/trace/trace_output_stm.c | 99 + 2 files changed, 100

[PATCH] arm64: fix bug for reloading FPSIMD state after CPU hotplug.

2015-06-10 Thread Chunyan Zhang
A's fpsimd_state, so kernel will not reload the context during it return to user space. Signed-off-by: Janet Liu janet@spreadtrum.com Signed-off-by: Xiongshan An xiongshan...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/kernel/fpsimd.c | 32

[PATCH] arm64: kernel thread don't need to save fpsimd context.

2015-06-10 Thread Chunyan Zhang
, it will not introduce issue, it add a little cost. Signed-off-by: Janet Liu janet@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- arch/arm64/kernel/process.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel

[PATCH] serial: sprd: check for NULL after calling devm_clk_get

2015-06-10 Thread Chunyan Zhang
-by: Chunyan Zhang chunyan.zh...@spreadtrum.com --- drivers/tty/serial/sprd_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c index 582d272..3866516 100644 --- a/drivers/tty/serial/sprd_serial.c +++ b/drivers/tty

[RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Chunyan Zhang
From: Billows Wu billows...@spreadtrum.com The Spreadtrum MMC host driver is used to support EMMC, SD, and SDIO types of memory cards. Signed-off-by: Billows Wu billows...@spreadtrum.com Reviewed-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

[RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Chunyan Zhang
From: Billows Wu billows...@spreadtrum.com The Spreadtrum MMC host driver is used to support EMMC, SD, and SDIO types of memory cards. Signed-off-by: Billows Wu billows...@spreadtrum.com Reviewed-by: Orson Zhai orson.z...@spreadtrum.com Signed-off-by: Chunyan Zhang chunyan.zh...@spreadtrum.com

Re: [RFC PATCH] mmc: sprd: add MMC host driver for Spreadtrum SoC

2015-07-01 Thread Chunyan Zhang
On Wed, Jul 1, 2015 at 5:57 PM, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi, Is sdhost based on SDHCI controller? Why don't use sdhci.c? Is there any reason? Best Regards, Jaehoon Chung Because of base64 code problem of his email server, I'm reporting his reply instead. From Billows

[PATCH 4/5] coresight-etm3x: Support context-ID tracing when PID namespace is enabled

2015-07-07 Thread Chunyan Zhang
by themselves to ETM, there needs to be a translation from VPID to PID, as such ETM drivers will write the PID into the Context ID register correctly. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/hwtracing/coresight/coresight-etm.h | 3 +++ drivers/hwtracing/coresight

[PATCH 2/5] coresight-etm4x: Change the name of the ctxid_val to ctxid_pid

2015-07-07 Thread Chunyan Zhang
and very new for now. Nevertheless, if you don't think it should be changed, we could always add an alias for userspace. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed-by: Mark Brown broo...@kernel.org --- .../ABI/testing/sysfs-bus-coresight-devices-etm4x| 2 +- drivers/hwtracing

[PATCH 5/5] coresight-etm4x: Support context-ID tracing when PID namespace is enabled

2015-07-07 Thread Chunyan Zhang
Like ETTv3, ETMv4 also needs the similar modifications to support Context ID tracing when PID namespace is enabled. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- drivers/hwtracing/coresight/coresight-etm4x.c | 21 +++-- drivers/hwtracing/coresight/coresight-etm4x.h

[PATCH 3/5] Coresight: Add an interface for supporting ETM3/4 Context ID tracing

2015-07-07 Thread Chunyan Zhang
interface for ETMs. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org --- include/linux/coresight.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/coresight.h b/include/linux/coresight.h index 3486b90..626da69 100644 --- a/include/linux/coresight.h +++ b

[PATCH 0/5] coresight: Support context-ID tracing when PID namespace is enabled

2015-07-07 Thread Chunyan Zhang
between VPID and PID. Chunyan Zhang (5): coresight-etm3x: Change the name of the ctxid_val to ctxid_pid coresight-etm4x: Change the name of the ctxid_val to ctxid_pid Coresight: Add an interface for supporting ETM3/4 Context ID tracing coresight-etm3x: Support context-ID tracing when PID

[PATCH 1/5] coresight-etm3x: Change the name of the ctxid_val to ctxid_pid

2015-07-07 Thread Chunyan Zhang
and very new for now. Nevertheless, if you don't think it should be changed, we could always add an alias for userspace. Signed-off-by: Chunyan Zhang zhang.chun...@linaro.org Reviewed-by: Mark Brown broo...@kernel.org --- .../ABI/testing/sysfs-bus-coresight-devices-etm3x| 2 +- drivers

Re: [PATCH v3 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-07-29 Thread Chunyan Zhang
On Wed, Jul 29, 2015 at 9:46 PM, Alexander Shishkin alexander.shish...@linux.intel.com wrote: Mark Brown broo...@kernel.org writes: On Wed, Jul 29, 2015 at 04:25:10PM +0300, Alexander Shishkin wrote: There has to be a way to defer stm_probe(), although a quick look at amba code suggests it's

Re: [PATCH v3 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-07-29 Thread Chunyan Zhang
On Wed, Jul 29, 2015 at 9:25 PM, Alexander Shishkin alexander.shish...@linux.intel.com wrote: Chunyan Zhang zhang.l...@gmail.com writes: +/** + * stm_source_register_device() - register an stm_source device + * @parent:parent device + * @data: device description structure

  1   2   3   4   5   6   7   8   9   10   >