Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp928653ybv; Thu, 20 Feb 2020 09:46:18 -0800 (PST) X-Google-Smtp-Source: APXvYqywruEKfoOC8hbNNiJixm6NSpHZ0NqgM3DYXDraSW44Y09K8wdJVwbL3nI4Dp9ZjDhZlUKv X-Received: by 2002:a9d:6c58:: with SMTP id g24mr25884703otq.229.1582220778095; Thu, 20 Feb 2020 09:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582220778; cv=none; d=google.com; s=arc-20160816; b=T7AnuU9gDWlA4s6CvCB8UHQX4fV/letQHnCp3VDrDnUfvXGchhKKOw7LTX3yKYwsT7 +bFO7RpTnCv6BGPzJCet8SmcODfkrAk3KT0uNaO7sUNPJJzqmk6iCdctmucbku5BqyNH CpWs5ijAvQADcCzuGqZtgUDvkkV8G2OxYfMXbkSR3bl3KEvqwYzILJ+LgVSegGHsgHGp cq+5LnYIrJOsDsBwv/2s98ovUc9Co9tEQs1Infy3GqMWoERvokEej8XpSlw0GruTUb/6 A/GbpzIJrGPPi/jd+O59oIZVjyqy7PQStx1idUewejiXOww+2wmubmEXJfPWECyCHsV4 AAyg== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=s6EOAobt5saGFt58QDGrFmkjtzz3qIh/p10CWvZHnSU=; b=kQnDl86xWvp4zREhsLrYHJWox7KxpbKDm2FAuoI0idSz3JLxr5pm39N+FMA/56cIxf 7l2sJ5F4lueN1H6x5kN3fzQE5fIvn1tO6irJ9g6BhlaJjS1TqL2j5mCC1NRQkOUs4EHq ZarMQI5txZgTme6T1phgaM8g1Bod5+ZW5YjMNL1zitXbgPcHzcsGScGabgrr5/5FfkMB Dr/2zC8tPCD1P31+R7ys753vr1XYnbIR0kgDyeww1t3CwVbELxt8mRhvOf7LRlt5FoRM YsFekxaQm1W0wXqhzpfaf4WkHI1cr7RYhUU2nuuyGdxkKRlEDT0AGmogOZ/E14jH4nOH xRsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=k0JCfTYy; 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 m24si49055otk.239.2020.02.20.09.46.06; Thu, 20 Feb 2020 09:46:18 -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; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=k0JCfTYy; 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 S1728812AbgBTRnx (ORCPT + 99 others); Thu, 20 Feb 2020 12:43:53 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:36745 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727233AbgBTRnx (ORCPT ); Thu, 20 Feb 2020 12:43:53 -0500 Received: from mwalle01.sab.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2916C23D22; Thu, 20 Feb 2020 18:43:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1582220631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=s6EOAobt5saGFt58QDGrFmkjtzz3qIh/p10CWvZHnSU=; b=k0JCfTYyL8MAXZKhXwW/bGvI7bFU2v2Yfg5AX71LWPyopv+J3LmwTNRyCD99nmdoHOqUm4 abzjqYU8LWZGQXXpb0Q5ooeFI/+03n/CusbWc75NaW2EHmOCB1biYlox4+6puh6L6vKNj3 a78z0p3Lhigjxfjx3+AaRBtBRyVGdpY= From: Michael Walle To: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , Jiri Slaby , Peng Fan , Yuan Yao , Vabhav Sharma , Michael Walle Subject: [PATCH 1/7] Revert "tty: serial: fsl_lpuart: drop EARLYCON_DECLARE" Date: Thu, 20 Feb 2020 18:43:28 +0100 Message-Id: <20200220174334.23322-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++++ X-Spam-Level: ****** X-Rspamd-Server: web X-Spam-Status: Yes, score=6.40 X-Spam-Score: 6.40 X-Rspamd-Queue-Id: 2916C23D22 X-Spamd-Result: default: False [6.40 / 15.00]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; NEURAL_SPAM(0.00)[0.503]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_TWELVE(0.00)[14]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12941, ipnet:213.135.0.0/19, country:DE]; SUSPICIOUS_RECIPS(1.50)[] X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit a659652f6169240a5818cb244b280c5a362ef5a4. This broke the earlycon on LS1021A processors because the order of the earlycon_setup() functions were changed. Before the commit the normal lpuart32_early_console_setup() was called. After the commit the lpuart32_imx_early_console_setup() is called instead. Fixes: a659652f6169 ("tty: serial: fsl_lpuart: drop EARLYCON_DECLARE") Signed-off-by: Michael Walle --- drivers/tty/serial/fsl_lpuart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 91e2805e6441..27fdc131c352 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -2390,6 +2390,8 @@ static int __init lpuart32_imx_early_console_setup(struct earlycon_device *devic OF_EARLYCON_DECLARE(lpuart, "fsl,vf610-lpuart", lpuart_early_console_setup); OF_EARLYCON_DECLARE(lpuart32, "fsl,ls1021a-lpuart", lpuart32_early_console_setup); OF_EARLYCON_DECLARE(lpuart32, "fsl,imx7ulp-lpuart", lpuart32_imx_early_console_setup); +EARLYCON_DECLARE(lpuart, lpuart_early_console_setup); +EARLYCON_DECLARE(lpuart32, lpuart32_early_console_setup); #define LPUART_CONSOLE (&lpuart_console) #define LPUART32_CONSOLE (&lpuart32_console) -- 2.20.1