From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752419AbbJTNme (ORCPT ); Tue, 20 Oct 2015 09:42:34 -0400 Received: from mail-qk0-f170.google.com ([209.85.220.170]:35746 "EHLO mail-qk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752182AbbJTNm2 (ORCPT ); Tue, 20 Oct 2015 09:42:28 -0400 Subject: Re: [PATCH v2 1/2] serial: support register interface with 16-bit stride for console To: Masahiro Yamada , linux-serial@vger.kernel.org References: <1445312189-28876-1-git-send-email-yamada.masahiro@socionext.com> <1445312189-28876-2-git-send-email-yamada.masahiro@socionext.com> Cc: Sebastian Andrzej Siewior , Vineet Gupta , Kevin Cernekee , Jiri Slaby , Rob Herring , linux-api@vger.kernel.org, linux-doc@vger.kernel.org, Jonathan Corbet , linux-kernel@vger.kernel.org, Eddie Huang , Greg Kroah-Hartman From: Peter Hurley Message-ID: <562644BF.4020204@hurleysoftware.com> Date: Tue, 20 Oct 2015 09:42:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1445312189-28876-2-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/2015 11:36 PM, Masahiro Yamada wrote: > Currently, 8-bit (MMIO) and 32-bit (MMIO32) register strides are > supported for the 8250 console, but 16-bit (MMIO16) stride is not. > The 8250 UART device on my board is connected to a 16-bit bus > (reg-shift = <1>) and I am eager to use earlycon with it. > > Refer to arch/arm/boot/dts/uniphier-support-card.dtsi: > > serialsc: uart@000b0000 { > compatible = "ns16550a"; > reg = <0x000b0000 0x20>; > clock-frequency = <12288000>; > reg-shift = <1>; > }; > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: > - Do not change userspace-exported macros > > Documentation/kernel-parameters.txt | 9 +++++---- > drivers/tty/serial/8250/8250_early.c | 5 +++++ > drivers/tty/serial/8250/8250_port.c | 20 ++++++++++++++++++++ > drivers/tty/serial/earlycon.c | 15 +++++++++++---- > drivers/tty/serial/serial_core.c | 9 +++++++-- > include/linux/serial_core.h | 1 + > include/uapi/linux/serial.h | 1 + > 7 files changed, 50 insertions(+), 10 deletions(-) [...] > diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c > index 603d2cc..325acce 100644 > --- a/drivers/tty/serial/serial_core.c > +++ b/drivers/tty/serial/serial_core.c > @@ -1819,8 +1819,8 @@ uart_get_console(struct uart_port *ports, int nr, struct console *co) > * @options: ptr for field; NULL if not present (out) > * > * Decodes earlycon kernel command line parameters of the form > - * earlycon=,io|mmio|mmio32|mmio32be,, > - * console=,io|mmio|mmio32|mmio32be,, > + * earlycon=,io|mmio|mmio16|mmio32|mmio32be,, > + * console=,io|mmio|mmio16|mmio32|mmio32be,, > * > * The optional form > * earlycon=,0x, This hunk fails to apply. Please rebase on top of tty-next branch of Greg's tty.git tree (git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git) Regards, Peter Hurley