From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757390AbbA0J1B (ORCPT ); Tue, 27 Jan 2015 04:27:01 -0500 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:35939 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752365AbbA0J05 (ORCPT ); Tue, 27 Jan 2015 04:26:57 -0500 From: Chunyan Zhang To: , , , , , , , , , CC: , , , , , , , , , , , , , , , , , , Subject: [PATCH v8 0/2] Add Spreadtrum SoC bindings and serial driver support Date: Tue, 27 Jan 2015 15:56:45 +0800 Message-ID: <1422345407-10037-1-git-send-email-chunyan.zhang@spreadtrum.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.67.142] X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To SHMBX02.spreadtrum.com (10.0.1.204) X-MAIL: SHSQR01.spreadtrum.com t0R7vMRL047429 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set split the last version, and addressed the review comments from last version on serial driver code. Changes from v7: * Addressed review comments from Peter: - Initialized the stack local with zero in sprd_set_termios() - Used dev_get_drvdata() to get sprd_uart_port Changes from v6: - Setted SPRD_TIMEOUT with 256 rather than 2048 - Used u32 instead of uint32_t - Removed inline of handle_lsr_errors which is a single call site function - Removed unused parameter of sprd_tx & sprd_rx - Used spin_lock_irqsave in sprd_startup() instead of spin_lock - Added a check for port->sysrq in sprd_console_write() - Used a global counter as a condition of calling uart_{un}register_driver - Added pdev->id assignment in probe() - Setted port->flags with UPF_BOOT_AUTOCONF instead of ASYNC_BOOT_AUTOCONF 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): 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-uart.txt | 7 + .../devicetree/bindings/vendor-prefixes.txt | 1 + drivers/tty/serial/Kconfig | 18 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/sprd_serial.c | 797 ++++++++++++++++++++ include/uapi/linux/serial_core.h | 3 + 7 files changed, 838 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sprd.txt create mode 100644 Documentation/devicetree/bindings/serial/sprd-uart.txt create mode 100644 drivers/tty/serial/sprd_serial.c -- 1.7.9.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chunyan Zhang Subject: [PATCH v8 0/2] Add Spreadtrum SoC bindings and serial driver support Date: Tue, 27 Jan 2015 15:56:45 +0800 Message-ID: <1422345407-10037-1-git-send-email-chunyan.zhang@spreadtrum.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, arnd-r2nGTMty4D4@public.gmane.org, gnomes-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org, peter-WaGBZJeGNqdsbIuE7sb01tBPR1lH4CV8@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org Cc: jslaby-AlSwsSmVLrQ@public.gmane.org, heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org, jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org, florian.vaussard-p8DiymsW2f8@public.gmane.org, andrew-g2DYL2Zd6BY@public.gmane.org, hytszk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, antonynpavlov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, orsonzhai-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, geng.ren-lxIno14LUO0EEoCn2XhGlw@public.gmane.org, zhizhou.zhang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org, lanqing.liu-lxIno14LUO0EEoCn2XhGlw@public.gmane.org, zhang.lyra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, wei.qiao-lxIno14LUO0EEoCn2XhGlw@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org This patch-set split the last version, and addressed the review comments from last version on serial driver code. Changes from v7: * Addressed review comments from Peter: - Initialized the stack local with zero in sprd_set_termios() - Used dev_get_drvdata() to get sprd_uart_port Changes from v6: - Setted SPRD_TIMEOUT with 256 rather than 2048 - Used u32 instead of uint32_t - Removed inline of handle_lsr_errors which is a single call site function - Removed unused parameter of sprd_tx & sprd_rx - Used spin_lock_irqsave in sprd_startup() instead of spin_lock - Added a check for port->sysrq in sprd_console_write() - Used a global counter as a condition of calling uart_{un}register_driver - Added pdev->id assignment in probe() - Setted port->flags with UPF_BOOT_AUTOCONF instead of ASYNC_BOOT_AUTOCONF 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): 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-uart.txt | 7 + .../devicetree/bindings/vendor-prefixes.txt | 1 + drivers/tty/serial/Kconfig | 18 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/sprd_serial.c | 797 ++++++++++++++++++++ include/uapi/linux/serial_core.h | 3 + 7 files changed, 838 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sprd.txt create mode 100644 Documentation/devicetree/bindings/serial/sprd-uart.txt create mode 100644 drivers/tty/serial/sprd_serial.c -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: chunyan.zhang@spreadtrum.com (Chunyan Zhang) Date: Tue, 27 Jan 2015 15:56:45 +0800 Subject: [PATCH v8 0/2] Add Spreadtrum SoC bindings and serial driver support In-Reply-To: References: Message-ID: <1422345407-10037-1-git-send-email-chunyan.zhang@spreadtrum.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This patch-set split the last version, and addressed the review comments from last version on serial driver code. Changes from v7: * Addressed review comments from Peter: - Initialized the stack local with zero in sprd_set_termios() - Used dev_get_drvdata() to get sprd_uart_port Changes from v6: - Setted SPRD_TIMEOUT with 256 rather than 2048 - Used u32 instead of uint32_t - Removed inline of handle_lsr_errors which is a single call site function - Removed unused parameter of sprd_tx & sprd_rx - Used spin_lock_irqsave in sprd_startup() instead of spin_lock - Added a check for port->sysrq in sprd_console_write() - Used a global counter as a condition of calling uart_{un}register_driver - Added pdev->id assignment in probe() - Setted port->flags with UPF_BOOT_AUTOCONF instead of ASYNC_BOOT_AUTOCONF 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): 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-uart.txt | 7 + .../devicetree/bindings/vendor-prefixes.txt | 1 + drivers/tty/serial/Kconfig | 18 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/sprd_serial.c | 797 ++++++++++++++++++++ include/uapi/linux/serial_core.h | 3 + 7 files changed, 838 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sprd.txt create mode 100644 Documentation/devicetree/bindings/serial/sprd-uart.txt create mode 100644 drivers/tty/serial/sprd_serial.c -- 1.7.9.5