From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757667AbbIVLpL (ORCPT ); Tue, 22 Sep 2015 07:45:11 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:33358 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756826AbbIVLpG (ORCPT ); Tue, 22 Sep 2015 07:45:06 -0400 Subject: Re: [PATCH] serial_core: support native endianness To: Max Filippov , linux-serial@vger.kernel.org References: <1442921693-1389-1-git-send-email-jcmvbkbc@gmail.com> Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org From: Jiri Slaby Message-ID: <56013F3E.7080600@suse.cz> Date: Tue, 22 Sep 2015 13:45:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1442921693-1389-1-git-send-email-jcmvbkbc@gmail.com> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/22/2015, 01:34 PM, Max Filippov wrote: NACK until you provide a useful commit log including description why this is needed. > Signed-off-by: Max Filippov > --- > drivers/tty/serial/serial_core.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c > index f368520..84b5695 100644 > --- a/drivers/tty/serial/serial_core.c > +++ b/drivers/tty/serial/serial_core.c > @@ -1826,8 +1826,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|mmio32|mmio32be|mmio32native,, > + * console=,io|mmio|mmio32|mmio32be|mmio32native,, > * > * The optional form > * earlycon=,0x, > @@ -1848,6 +1848,10 @@ int uart_parse_earlycon(char *p, unsigned char *iotype, unsigned long *addr, > } else if (strncmp(p, "mmio32be,", 9) == 0) { > *iotype = UPIO_MEM32BE; > p += 9; > + } else if (strncmp(p, "mmio32native,", 13) == 0) { > + *iotype = IS_ENABLED(CONFIG_CPU_BIG_ENDIAN) ? > + UPIO_MEM32BE : UPIO_MEM32; > + p += 13; > } else if (strncmp(p, "io,", 3) == 0) { > *iotype = UPIO_PORT; > p += 3; > thanks, -- js suse labs