Received: by 10.223.164.202 with SMTP id h10csp3183101wrb; Tue, 28 Nov 2017 07:24:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMatJ5UbP8CcDXEHMOOIeeGGBmaltyxMDqZEK9KSLWn+CpK4TXjYA1So5kptEiOaKYljL//h X-Received: by 10.98.13.70 with SMTP id v67mr4432835pfi.31.1511882693615; Tue, 28 Nov 2017 07:24:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511882693; cv=none; d=google.com; s=arc-20160816; b=z4h2c9qmvSrUXvVaDZMrMR/xAlB58XxMl6Pb+D8L0sBGPkdKQHANNw4pKTyklNK58K HLdlZwl4cEsT65/FoyKp+rG6EYk3Xer/IN3FhpJBpd0Ew5pkCOuq8O721uvRlVOZZfoI t+P91g4vwNne9zSgw6BXyGMcnpiAIRUHfhf/ytWXac4i1p8fPQabh+E/75DPXeyKBdrh j/Db1HFo9t5zvkUt0lwCSMXysmEH8akSyxds/y9T10oZ5Ytdi+iUm1ZVH+PRFBqwFJVK /pXsJbqgMtScIkKADJfKmEpzZYqKmMul2bClzbKFF9YQQBD3PRxEjB+RhRDCwqnKNoHV DOcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Gu6+wdoY7ybV2Z7X02N7MOVGaOZY2Dqu1WMdBHFtVcI=; b=JMLQZNI2M0+l+3dHaM2BPCDgsd5T8TfwwwxOJzeIicPFaMFyRTQdLj8quOq6eOvtTu 6i5mxAsAx0u5COvkAROn8Da7i9opa+eLAqsqOVizx3PUE/b7lWOrGAk7uKLYkaBrbnDv cZICrVgDiyQhxx6xnLBzWzMoHMldu2vj8BoTyc25Ny/oRYcVo/GK4eL34PW8NMZh6vNA N5ylDEG6eTy++g8BEy4XvhHerx9bGG6jXltcfyyru3rGyGI39Ey8wuNFzkNbYA3eSJgT 6wOUBRsuR8H9qsWmmrBTcLUauvqRijc5gIjvxWq0pFJZh9eWg8EWGJcYmMt45iKmKIem RfKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r28si27638023pfk.101.2017.11.28.07.24.41; Tue, 28 Nov 2017 07:24:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753525AbdK1PXq (ORCPT + 78 others); Tue, 28 Nov 2017 10:23:46 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.150.224]:52620 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbdK1PXo (ORCPT ); Tue, 28 Nov 2017 10:23:44 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx4.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 28 Nov 2017 15:23:25 +0000 Received: from [10.150.130.83] (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 28 Nov 2017 07:20:12 -0800 Subject: Re: [PATCH 2/2] MIPS: Add custom serial.h with BASE_BAUD override for generic kernel To: Greg Kroah-Hartman CC: Ralf Baechle , James Hogan , Eugeniy Paltsev , , , "stable # 4 . 14" , , Paul Burton , Ingo Molnar , Frederic Weisbecker References: <1511344649-27612-1-git-send-email-matt.redfearn@mips.com> <1511344649-27612-2-git-send-email-matt.redfearn@mips.com> <20171128143502.GA17699@kroah.com> From: Matt Redfearn Message-ID: Date: Tue, 28 Nov 2017 15:20:08 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171128143502.GA17699@kroah.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.150.130.83] X-BESS-ID: 1511882604-298555-29403-39644-4 X-BESS-VER: 2017.14-r1710272128 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.60 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.187380 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.60 MARKETING_SUBJECT HEADER: Subject contains popular marketing words X-BESS-Outbound-Spam-Status: SCORE=0.60 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, MARKETING_SUBJECT X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/11/17 14:35, Greg Kroah-Hartman wrote: > On Wed, Nov 22, 2017 at 09:57:29AM +0000, Matt Redfearn wrote: >> Add a custom serial.h header for MIPS, allowing platforms to override >> the asm-generic version if required. >> >> The generic platform uses this header to set BASE_BAUD to 0. The >> generic platform supports multiple boards, which may have different >> UART clocks. Also one of the boards supported is the Boston FPGA board, >> where the UART clock depends on the loaded FPGA bitfile. As such there >> is no way that the generic kernel can set a compile time default >> BASE_BAUD. >> >> Commit 31cb9a8575ca ("earlycon: initialise baud field of earlycon device >> structure") changed the behavior of of_setup_earlycon such that any baud >> rate set in the device tree is now set in the earlycon structure. The >> UART driver will then calculate a divisor based on BASE_BAUD and set it. >> With MIPS generic kernels this resulted in garbage output due to the >> incorrect uart clock rate being used to calculate a divisor. This >> commit, combined with "serial: 8250_early: Only set divisor if valid clk >> & baud" prevents the earlycon code setting a bad divisor and restores >> earlycon output. >> >> Fixes: 31cb9a8575ca ("earlycon: initialise baud field of earlycon device structure") >> Cc: stable # 4.14 >> Signed-off-by: Matt Redfearn >> >> --- >> >> arch/mips/include/asm/Kbuild | 1 - >> arch/mips/include/asm/serial.h | 21 +++++++++++++++++++++ >> 2 files changed, 21 insertions(+), 1 deletion(-) >> create mode 100644 arch/mips/include/asm/serial.h >> >> diff --git a/arch/mips/include/asm/Kbuild b/arch/mips/include/asm/Kbuild >> index 7c8aab23bce8..b1f66699677d 100644 >> --- a/arch/mips/include/asm/Kbuild >> +++ b/arch/mips/include/asm/Kbuild >> @@ -16,7 +16,6 @@ generic-y += qrwlock.h >> generic-y += qspinlock.h >> generic-y += sections.h >> generic-y += segment.h >> -generic-y += serial.h >> generic-y += trace_clock.h >> generic-y += unaligned.h >> generic-y += user.h >> diff --git a/arch/mips/include/asm/serial.h b/arch/mips/include/asm/serial.h >> new file mode 100644 >> index 000000000000..30be5cd8efdb >> --- /dev/null >> +++ b/arch/mips/include/asm/serial.h >> @@ -0,0 +1,21 @@ >> +/* >> + * This file is subject to the terms and conditions of the GNU General Public >> + * License. See the file "COPYING" in the main directory of this archive >> + * for more details. > > Which version of the GPL? As it is, this means "GPL v1 and all others". > > I doubt you want that :) Good point - thanks! Matt > > thanks, > > greg k-h > From 1585320905356764073@xxx Tue Nov 28 14:37:10 +0000 2017 X-GM-THRID: 1584759954610254092 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread