From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965381Ab3GLUUv (ORCPT ); Fri, 12 Jul 2013 16:20:51 -0400 Received: from terminus.zytor.com ([198.137.202.10]:40912 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965283Ab3GLUUt (ORCPT ); Fri, 12 Jul 2013 16:20:49 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <1373659660-31123-1-git-send-email-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 1/3] x86, boot: add mmio serial during compressed boot From: "H. Peter Anvin" Date: Fri, 12 Jul 2013 13:20:13 -0700 To: Kees Cook , LKML CC: Greg Kroah-Hartman , Rob Landley , Thomas Gleixner , Ingo Molnar , "x86@kernel.org" , "linux-doc@vger.kernel.org" , linux-serial@vger.kernel.org Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can you fix & resend the patch? Kees Cook wrote: >On Fri, Jul 12, 2013 at 1:07 PM, Kees Cook >wrote: > >> Allows "console=uart[8250],mmio[32],0xADDR[,BAUDn8[,BASE_BAUD]]" to >> be recognized during compressed boot early console setup, and during >> boot console setup. Replaces defines with common serial defines. Adds >> suport for mmio-based serial devices to compressed-boot early >console, >> and plumbs support for defining the base baud rate for UART clock >> calculations (since mmio serial cards may not have the standard rate, >> resulting in incorrect baud rates for mmio devices). >> >> Signed-off-by: Kees Cook >> --- >> diff --git a/include/uapi/linux/serial_reg.h >> b/include/uapi/linux/serial_reg.h >> index e632260..bdeaf5a 100644 >> --- a/include/uapi/linux/serial_reg.h >> +++ b/include/uapi/linux/serial_reg.h >> @@ -333,12 +333,13 @@ >> >> #define UART_RSA_TCR_SWITCH (1 << 0) /* Timer on */ >> >> +#define SERIAL_BAUD_BASE (1843200/16) >> /* >> * The RSA DSV/II board has two fixed clock frequencies. One is the >> * standard rate, and the other is 8 times faster. >> */ >> -#define SERIAL_RSA_BAUD_BASE (921600) >> -#define SERIAL_RSA_BAUD_BASE_LO (SERIAL_RSA_BAUD_BASE / 8) >> +#define SERIAL_RSA_BAUD_BASE_LO SERIAL_BAUD_BASE >> +#define SERIAL_RSA_BAUD_BASE (SERIAL_RSA_BAUD_BASE * 8) >> > >Argh, just found this typo during an allyesconfig build. Above should >be: > >#define SERIAL_RSA_BAUD_BASE (SERIAL_BAUD_BASE * 8) > >-Kees -- Sent from my mobile phone. Please excuse brevity and lack of formatting.