Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp997879yba; Thu, 4 Apr 2019 02:04:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMH84qxMpANH44Cm/a+SKiKHAwgCEhoxqLA/U0RaoSEsTpqS9tKc2CZA7G2+kc7reA5PdS X-Received: by 2002:aa7:920b:: with SMTP id 11mr4651654pfo.3.1554368666095; Thu, 04 Apr 2019 02:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368666; cv=none; d=google.com; s=arc-20160816; b=okKtAeS8gRqyopsyDTjmFwVcDoW/4PEIdOUO++UKiMfVf4FDKcQf1FjXHdRFizUkIF 8ogftRZ2PtH4vnkpz10r+bSe03uL2TS6d30Z06WinburDhzmeAVrruCcUY4zyey6mx9R LE2rpHZwzO8uBJ83uszNlzGiixpNlfrfIo2ir1Zl0AXvQcTqgeV/5XLKG0eI1G6JOdH/ QX/aTyfYq8Bu9djy27Oqc7LmBm/Ra3z7upvyvYft02daeTc5gr89DqJ0CRv1+DK8sqck a9/v+9E5yaumVZNYObPgLfSiG2F7lOszW/lKIpStmOSLLSz5Lh5uCVN7nVnhwscAoc7n QnnQ== 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=9JImRQYlQY0KhdxI1a0ijkP/N6lBothlej/afkZwCTA=; b=AHDg3OVkoFgPgjGQxRVAu9dyhtyrnTMxrN6YRDAvGDpEDQ1G1r9WH/Y88GblQ9OzQ2 d8DhBNpMFXNTGJoVu6yJAz26q/NNh02ajpEcV1XWI85Czq7KdWRCGRaZ23o8z9LMVU7o X0ZfC8lfaV5WVke1rA49jVI3SF/TJRGP4CJV+qrvBGAesEZE3H1A0+Jkfd7wQTXghqiN nk0n7ImAFQRbsPz8Y4gQFYCMO44LOCzGTq+IZe+2YyFKPICn8jgs8bpHFqax7wT7lVZR WCgpe7wPeERpEJlk1wTKPK6MA9qeQuEBYqT7bx2KkH3+0WgoSGa/gd0+vCK8LwAxl0xE cxJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LKXe4WYO; 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 r199si16833816pfc.271.2019.04.04.02.04.10; Thu, 04 Apr 2019 02:04:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=LKXe4WYO; 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 S1731584AbfDDJCQ (ORCPT + 99 others); Thu, 4 Apr 2019 05:02:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:39564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731577AbfDDJCN (ORCPT ); Thu, 4 Apr 2019 05:02:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 394DC21741; Thu, 4 Apr 2019 09:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368532; bh=5sSIGHvHQgz+OipSgiacZ8OZWKXKEBa2ePdYsumJwfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LKXe4WYOBHqql7//UVVCDm7eF5zqIRNIZ7DjwPmYOPp0EJdIvEjNXXnYaTKjKMT9H sh87gAIdaO9UyvaVMUYslT+s2sQ9p3ZZAohjR8YkrON60e0rjJ8HoiMm5RkfVvMKra sbDiEeM9Okeq5NZo9s+fpcsHDKlyhVHk4KjTuvSw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lubomir Rintel , Sasha Levin Subject: [PATCH 4.19 058/187] serial: 8250_pxa: honor the port number from devicetree Date: Thu, 4 Apr 2019 10:46:35 +0200 Message-Id: <20190404084605.815075523@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@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. ------------------ [ Upstream commit fe9ed6d2483fda55465f32924fb15bce0fac3fac ] Like the other OF-enabled drivers, use the port number from the firmware if the devicetree specifies an alias: aliases { ... serial2 = &uart2; /* Should be ttyS2 */ } This is how the deprecated pxa.c driver behaved, switching to 8250_pxa messes up the numbering. Signed-off-by: Lubomir Rintel Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/8250/8250_pxa.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pxa.c b/drivers/tty/serial/8250/8250_pxa.c index b9bcbe20a2be..c47188860e32 100644 --- a/drivers/tty/serial/8250/8250_pxa.c +++ b/drivers/tty/serial/8250/8250_pxa.c @@ -113,6 +113,10 @@ static int serial_pxa_probe(struct platform_device *pdev) if (ret) return ret; + ret = of_alias_get_id(pdev->dev.of_node, "serial"); + if (ret >= 0) + uart.port.line = ret; + uart.port.type = PORT_XSCALE; uart.port.iotype = UPIO_MEM32; uart.port.mapbase = mmres->start; -- 2.19.1