Received: by 10.192.165.148 with SMTP id m20csp3147733imm; Mon, 23 Apr 2018 01:08:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+CzYHwFobtdnD7Je76NziNqm31wusQbprDc91D6eOL5mRjr8QXVEhxSCAw2vITHf5kDCMv X-Received: by 2002:a17:902:aa43:: with SMTP id c3-v6mr20002648plr.17.1524470907615; Mon, 23 Apr 2018 01:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524470907; cv=none; d=google.com; s=arc-20160816; b=rJ0y1PwGvlKPPplL7v6kERdw9e6y2P1fiiRVBWaHasCfQg8aAy3eRn50E9kOMr1M40 m9mZu7kSrgxoHFNf5IOxKUUoDFg/GWszTr6tFSG8k/wsENMB2qPum/fgSS//iP9fjfmo FlVAYQP50Z/TWlXbS/kDfJmk7v/Wa0EEehrikstLFEk+0cOxg9Sc0ALjiqwS8AiTgb2r fI7k7M1nBanJj2Fp9ihCrAj8RPsZ9jVhi+lqR5ds2rjOUapq2r65775lYcVuIanA43+l ot2uw6RtBIjICyESe9vtkveqBB31B9rQIQevy6HGG9i6ziWaVLOqoNajxTRYnjKr9T6g 5oFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=3yOUdbpLmzZGEBSqt1UqN46N9fdMQ+wj39Bd/uy/0RY=; b=czC1TG+ioihES4TQkaO/7XFmusa3ChxmzRH7fFUsS86euEixriN+8DdH6Mz0ky0yOg XpogcQTWpoIVL/T0wh3S03iEbHgzFfsd2i2Oh1+NmvD7d5p3EKeU68WrQmMxaWpdfrnD YnSwXqRtVQgShuKFeuvqWSqXaa+TTC8LmGBlaMJDAu08WLYMP/FVdV2Q74EAhHiQ80hK X0OS5kKSiPpKtMXmHWavXkk1B5p06EW/AjOXgC782nGpOts5NID4OqQOcW6SjLe04cl6 ol8eQT8kG4iclE1/ArqcksfJpgSX5tTDDc0eE8T3xA0uAWjpW30zuzkdyv/vropP6+J3 zSsA== 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 v66si10948861pfd.341.2018.04.23.01.08.13; Mon, 23 Apr 2018 01:08:27 -0700 (PDT) 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 S1754304AbeDWIGu (ORCPT + 99 others); Mon, 23 Apr 2018 04:06:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44716 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754029AbeDWIGr (ORCPT ); Mon, 23 Apr 2018 04:06:47 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E6AE8CAC; Mon, 23 Apr 2018 08:06:46 +0000 (UTC) Date: Mon, 23 Apr 2018 10:06:41 +0200 From: Greg Kroah-Hartman To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, Jiri Slaby , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] tty: serial: xuartps: Setup early console when uartclk is also passed Message-ID: <20180423080641.GA20149@kroah.com> References: <2ef5ac478f8d32bc807ead758eb5d60744a44515.1523367208.git.michal.simek@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ef5ac478f8d32bc807ead758eb5d60744a44515.1523367208.git.michal.simek@xilinx.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 03:33:30PM +0200, Michal Simek wrote: > Baudrate calculation depends on requested baudrate and uart clock. > This patch is checking that uartclk is also passed. > > The same logic is used 8250_early.c/init_port function. > > Signed-off-by: Michal Simek > --- > > drivers/tty/serial/xilinx_uartps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c > index b9b2bc76bcac..a654cda203c7 100644 > --- a/drivers/tty/serial/xilinx_uartps.c > +++ b/drivers/tty/serial/xilinx_uartps.c > @@ -1181,7 +1181,7 @@ static int __init cdns_early_console_setup(struct earlycon_device *device, > /* only set baud if specified on command line - otherwise > * assume it has been initialized by a boot loader. > */ > - if (device->baud) { > + if (port->uartclk && device->baud) { > u32 cd = 0, bdiv = 0; > u32 mr; > int div8; > -- > 1.9.1 This patch conflicts with the previous patch you sent: Subject: [PATCH] serial: xuartps: Fix the early_console junk character issue So, which one should I apply? I've dropped both from my review queue now, please resend the one(s) you want applied, in a patch series if needed. thanks, greg k-h