Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3573296pxb; Mon, 24 Jan 2022 12:32:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQh0PXb9ildzY/UDxk8+6zwWwwKQ0pR/DZ1VraE/5/rL17TTW869aJ4qHSAX2LX6YQDOoS X-Received: by 2002:a62:8084:0:b0:4c6:c15d:3516 with SMTP id j126-20020a628084000000b004c6c15d3516mr15396123pfd.44.1643056278492; Mon, 24 Jan 2022 12:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056278; cv=none; d=google.com; s=arc-20160816; b=0k+ibF6ObUJ+WKF3rBpT4fQR8OJcCzS3tSAU5910oGmzWpxDorwKkIx8RgOxccZKSN 5IwdMPwAt/lssPmpyhV4V3sLbt2V0NXZRLy5yxUzqDsaLIUJ/hvdsFZ/mk4QToJXyZ8J /D7Bb8w00srwFLDi1MPCI3w4wyONza2JtjWcJrkvLaytHuA/ABwU3y0xHgbXiNQVedvA 4egYcBbNmf2QNx7z0qa+48FdGz5MTV/8rRcywlecsN8Ad8ckHEVqa8iblja0ifZujYxc tEozGZYOGJjxyWo4OgE7qXDww2rQtt59TkOWSLD8m0wgJyyBy/29m5spiNsSIE30gXDl oENw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QrLwaNZq/gq0elq7hVqT6n3EZJzf/2zuqtwurlOrNpA=; b=GaLrvTczVoFO3fI3YzKkEYhBG2m0O+55jrQN61b7goDeqhVoLF0e6ap16fcvXVhb1T Drej+iNk4nSNUkPKLqKINpesEU/hEv1rpkhRgCRc9XRfIdFPrds2sDW12coeA2LuYUx5 pfKitPJi5ISpyuXhuTpoBJ7lopMKTq27p7qTUDZ0ohfRb5TjiZTfWRSGtD21LoHkmU5s 7b+zUy3sgMHyApYYPXlF0oYycv2HEzVU5bfqZGbTY0KD2t9OFilgKQCWsYlkwV+UwMur ATftX6UMW/TbhOI1E0x8oqP7QgTJmcelOfYF0UMj+29PfTaY0rMt4uXRyNzHyHVwp75T pmPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kJ8waSCW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si304624pjk.76.2022.01.24.12.31.05; Mon, 24 Jan 2022 12:31:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kJ8waSCW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354052AbiAXTfw (ORCPT + 99 others); Mon, 24 Jan 2022 14:35:52 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:56854 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239424AbiAXT3T (ORCPT ); Mon, 24 Jan 2022 14:29:19 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8334961318; Mon, 24 Jan 2022 19:29:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63496C340E7; Mon, 24 Jan 2022 19:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052558; bh=5+WVR8/VwfqjhVkSmEbR7E7LpMZedr93a/vPe4N8MMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kJ8waSCWfU6vQ58frZU4U2+Mfr0m+u7N6kbJJusUA63Sj+ipcwHdKVY4xTsNS0QFK EofTPDmq6T/xFeDajnYHU/irdS2urNuyNcU4xU/7e/PSO8jeTS+OJKqtsaWvZfOoPU TZNZNPPCfwnZjoqvCtaf9oaUml/hAIR/sJbhqcYk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lizhi Hou , Sasha Levin Subject: [PATCH 5.4 066/320] tty: serial: uartlite: allow 64 bit address Date: Mon, 24 Jan 2022 19:40:50 +0100 Message-Id: <20220124183955.969344022@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lizhi Hou [ Upstream commit 3672fb65155530b5eea6225685c75329b6debec3 ] The base address of uartlite registers could be 64 bit address which is from device resource. When ulite_probe() calls ulite_assign(), this 64 bit address is casted to 32-bit. The fix is to replace "u32" type with "phys_addr_t" type for the base address in ulite_assign() argument list. Fixes: 8fa7b6100693 ("[POWERPC] Uartlite: Separate the bus binding from the driver proper") Signed-off-by: Lizhi Hou Link: https://lore.kernel.org/r/20211129202302.1319033-1-lizhi.hou@xilinx.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/uartlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 56066d93a65b8..9a4049c894f7a 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -618,7 +618,7 @@ static struct uart_driver ulite_uart_driver = { * * Returns: 0 on success, <0 otherwise */ -static int ulite_assign(struct device *dev, int id, u32 base, int irq, +static int ulite_assign(struct device *dev, int id, phys_addr_t base, int irq, struct uartlite_data *pdata) { struct uart_port *port; -- 2.34.1