Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3608206pxb; Mon, 24 Jan 2022 13:25:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjtG6G0XwhJk8+WD3wXhPpOXHXzK/HpLnUIpbqU/hIhFzQwftWvub44v97tlsfu3iY0YFu X-Received: by 2002:a65:5c8c:: with SMTP id a12mr13528023pgt.3.1643059509411; Mon, 24 Jan 2022 13:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643059509; cv=none; d=google.com; s=arc-20160816; b=uUhg/XzYxn3ujSfbttGP2spbx0YOhVG3aO773MRP6wmYEBIH0+fy2TLbCN9VPyIirZ ozCP2k2zy3581IFh858/usUmE/1Fo3qGioGqGLPTTCAUqVaL01X90kyEYmdUUI1yvRqW PyVtINncFrlKdJBX1afXPCLaaCAfJBosP4Rn+XNGbNV03DUxJNT3X6ueeyRC5M9jljN4 EeOZuoyAVpp6mxKd3edSzSkhUjrBZjQCe9Vx9+7XvrzxTNeEjaLA1GRQQmnbB9Dp2tYv Gbk9PkWdlsbOA7qDXp6KjZep7yTAB6opzOlMWR5A2y0QRvPk6jarqekTsVRikuHRm4gO 9rWA== 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=vRrYxYZLB3hmDihc7WDmliKwp+DMmqyitzesQxxokIE=; b=Ne+5xsC5YqRuEW4JtTU1XliQKDpKkAuozs4rv0TrHvfMJwaSRxagjQBZk5Wyz3BHwV cHp0Ozkq/+DVD6LIF6kIx2YWm3FVDIpsBMG5NlbrS3KNbLJmaNpRP9vRm0bGim46SRMF APIQ/l/3T3Q5nOHUt8G0rigp7ajohU4nbxWeRYR0mIrQkfMRe49D3DAaKag84pMUWdBi x8rucbIoa5Q/sm4Bqy6b17l4sTGZVlIH5mBHACqyh15vFyhU3fh9yYoA8deE8hcuDs0A JOnLf77DDZZ9M8nm+8FTWRTN/vPxsSmLrqzlZMVE/WdIbL65J0ErIFVC8TqIaH5x9Sbb oZMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GsvC99UC; 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 f10si10265253pfe.381.2022.01.24.13.24.56; Mon, 24 Jan 2022 13:25:09 -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=GsvC99UC; 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 S1443430AbiAXU4z (ORCPT + 99 others); Mon, 24 Jan 2022 15:56:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346411AbiAXUdy (ORCPT ); Mon, 24 Jan 2022 15:33:54 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1FCEC07E2B0; Mon, 24 Jan 2022 11:47:17 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 582E2B811F9; Mon, 24 Jan 2022 19:47:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BC77C340E5; Mon, 24 Jan 2022 19:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643053636; bh=OHhwjXkBsD5R4QcwYkR1d17e/ZJhJIHy3HA4FGFsKoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GsvC99UCzd/1n+Z2JJZdAlMsyBYTDveoWL1llMW8IP0vMvx/BguaIM6x5oR9267JU UJudlHFCwl4d/z5ZMEWgtSmYpCnnkx0sTPe49uOoIhSagg28xL2dxIFPE6+Vg7pD+b TCMuS1Ibjtr7VI/QSbXCVtp2mvZFCKTLOKK4SsM0= 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.10 128/563] tty: serial: uartlite: allow 64 bit address Date: Mon, 24 Jan 2022 19:38:13 +0100 Message-Id: <20220124184028.827395757@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@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 7081ab322b402..48923cd8c07d1 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -615,7 +615,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