Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4081021imu; Tue, 18 Dec 2018 08:45:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/XCXUynrA+C4vynhcxEgBUwLFhUkKxVLEBhl7Z/9i7VTsKnxsYJO2ajb09GPEWgn8RK5VkT X-Received: by 2002:a17:902:bd0b:: with SMTP id p11mr17211668pls.259.1545151550557; Tue, 18 Dec 2018 08:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545151550; cv=none; d=google.com; s=arc-20160816; b=UxmACMR2xiz9ped7bQikgM5D7Ulrez1hCsn4RxRqAMiZ6zzl2URcswmv2SdxcHIttO LmvgJ/MmeqJ+KUuEhibfwF9gYd5jgrPgdnWn1UWmMXYNqIMufTWNzTjKR+aIyq5UfWzs xYTOAIQe4qeHyV+9IbDpws1Zt5km+ZhCH6rkTIgpLxzZt60feN+Jka7pdqE8/m6P0D3l KOL++K30QGDTbH8za2LuMJnrnENJbn1ceXzTvwZYvM2sU/ktrl4A8Ahy7WyvdFxbf58b VPz/ZpBl0xUmt0ojGcnwHttEfs/UkM2MuloX5SuAnbBa9eZWNh8eOWbAV4znOTBbLeBd eIwQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=66oCFbgpcUNl++yQUAIyGEH+56B3tgRTuRwl9o+wU8E=; b=phCfksofrJnRSwoM3Dewz5O5VN8pq0jVea4RuhIjgz6bFclMGaIE5IeVjJe1ZOJgpL V1zepbVIetTrjbY/gm4Al8JM5fW4j+De+w1SBCk3CbG+YASxUwfuTE+Tp0WEphfG3xZ+ jEWhQBWQ3XFiI1KeEdww7Rd9Y6z9RdDp7/VWojFLtTAEVoovWCV5xmg/bWFa2sizIG6c T01jKUrSmSPQrewxOJfU2AThX+zGcwU+YSVGfWcP75Y7t48KPy4oSfC4ZmoluSQDQVM3 enReQIiSXz8MYbX2RAGPAYRfmaHx5tQb9nDKkYq9B1tNmJUQvEBCFu7+fSxvVCq7ZYWR +geg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=czsPp0YE; 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 t77si13075793pgb.51.2018.12.18.08.45.28; Tue, 18 Dec 2018 08:45:50 -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=@kernel.org header.s=default header.b=czsPp0YE; 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 S1727744AbeLRQmv (ORCPT + 99 others); Tue, 18 Dec 2018 11:42:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:39466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727632AbeLRQlw (ORCPT ); Tue, 18 Dec 2018 11:41:52 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F180E21873; Tue, 18 Dec 2018 16:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545151311; bh=jl7kC+wa43wI+8Yk9G11CZzId7xLba42MaEGVO1TFac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=czsPp0YEs9sRlnujK4O/xw9805fNMwGVdvGYZjybBEOWfByaHIcY2x72Q1NmpnvoR SoAEW4VZGXdns6PQ0PxP3JKSZ6zLxcHiUdc/pKIXlQD+RfIIRZEiFH0V6IkIFdziir CNyiapuGtEEfLzB2mKuSAWNpJ6HSC0YMIAoyveuQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benjamin Herrenschmidt , Rob Herring , Michael Ellerman Subject: [PATCH 4.19 32/44] powerpc: Look for "stdout-path" when setting up legacy consoles Date: Tue, 18 Dec 2018 17:39:44 +0100 Message-Id: <20181218163931.201326804@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181218163927.119623235@linuxfoundation.org> References: <20181218163927.119623235@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Benjamin Herrenschmidt commit bf3d6afbb234156749b640b6c50f714967a85964 upstream. Commit 78e5dfea84dc ("powerpc: dts: replace 'linux,stdout-path' with 'stdout-path'") broke the default console on a number of embedded PowerPC systems, because it failed to also update the code in arch/powerpc/kernel/legacy_serial.c to look for that property in addition to the old one. This fixes it. Fixes: 78e5dfea84dc ("powerpc: dts: replace 'linux,stdout-path' with 'stdout-path'") Cc: stable@vger.kernel.org # v4.17+ Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Rob Herring Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/kernel/legacy_serial.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c @@ -372,6 +372,8 @@ void __init find_legacy_serial_ports(voi /* Now find out if one of these is out firmware console */ path = of_get_property(of_chosen, "linux,stdout-path", NULL); + if (path == NULL) + path = of_get_property(of_chosen, "stdout-path", NULL); if (path != NULL) { stdout = of_find_node_by_path(path); if (stdout) @@ -595,8 +597,10 @@ static int __init check_legacy_serial_co /* We are getting a weird phandle from OF ... */ /* ... So use the full path instead */ name = of_get_property(of_chosen, "linux,stdout-path", NULL); + if (name == NULL) + name = of_get_property(of_chosen, "stdout-path", NULL); if (name == NULL) { - DBG(" no linux,stdout-path !\n"); + DBG(" no stdout-path !\n"); return -ENODEV; } prom_stdout = of_find_node_by_path(name);