Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1832793pxb; Mon, 13 Sep 2021 06:33:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjmtiGNlmfLmw7Vo6c0DSm9Xpu0mIPsFR+H+QOzGOEGuypTqJJdOy++JWg2LBBa9Kym3NY X-Received: by 2002:a92:280f:: with SMTP id l15mr7581420ilf.74.1631539987419; Mon, 13 Sep 2021 06:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631539987; cv=none; d=google.com; s=arc-20160816; b=ZbUShL+IZG4wyPCU8MhuksVAi4QhKMRBjDUHX+qpnmWhO3hXc2lnTH5TpqrpZYtwn6 VaMIttuwIMRHReQR7vk4ro8C0BtTioPss2qfGEPDpQSGgh/O7IVBFwz4so859f2sMP4N vdGwyvx2lDZhUHS0AuUwGPlfRkKrddHvxo7QUQ7dOGaUVttHXM8r4BkyS5Y5rhhciRlO jmOjEt7fMWwkjTLr0YSQCqreC1oROQevzojBzcSLl/xIasmf3u+hfSM8DDWl8TBtBdGu SFPoUmWjBC2itXgDa6KvKel4Yg3mmS3mcBF5KCMSz77tPYZZOmHwd4S0pQZtkM/tAj9G ghaA== 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=st/QkR1LkyvGEizVHnSKkoXiv0F35U5k9NGKsnxI0xQ=; b=kRLxY0c3GN0mDM1gF9foqdwtrVKoJPrCtvJdAqGr4zgTwOyFQdjNNF574xtiO5X5T0 P/Le4d/bCTEL8FajIGcKow1zXTw1BEgZfKAY8ZlzArmcqYOeRXBSmby0j7UgbK3AYqVI SSqmIHdyG3d9bJO/xELy/8tMXo+9aEEzAemhK6NKpJJ5wjEvqo7IHQcSnmXFq5+bQYjB 5YYxEF2nnnVRu4xUyOPmTGtAK/X5glOqLNGGVDg2kdLEHXHO5yMa2jroho2s0QB9UCvt prht0+UxAITuETsLwshOrItNUVXSzLw4Jvu/113yL/PuWWMU5vkDVGxZVTT5QSoWTqse QuDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UdkKDU0H; 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 g2si7366425jat.51.2021.09.13.06.32.55; Mon, 13 Sep 2021 06:33:07 -0700 (PDT) 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=UdkKDU0H; 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 S241949AbhIMNc6 (ORCPT + 99 others); Mon, 13 Sep 2021 09:32:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:34830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241269AbhIMNXy (ORCPT ); Mon, 13 Sep 2021 09:23:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 230CC604DA; Mon, 13 Sep 2021 13:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539293; bh=2Yu2URnTwuahz5+Qhb1hOD8ZAuqv3NuPCXnogSxZdUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UdkKDU0HEtA7KtGZhOgjttG44wr2gDL95KUdpQsmGHSa2F3/p6lb89R877yOx52YO 38w3Wi9VhSpfmLL7Hty6kRpZ45tO1T03c8e6lTAlTF8Bbuafw65WIEW/qPN5g/S+5q 41C4URst0BTx5GmhGP1GM5uujOLuuim6SEuJmFfM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Leonard Crestez , Adriana Reus , Sherry Sun , Andy Duan , Sasha Levin Subject: [PATCH 5.4 114/144] tty: serial: fsl_lpuart: fix the wrong mapbase value Date: Mon, 13 Sep 2021 15:14:55 +0200 Message-Id: <20210913131051.746782973@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131047.974309396@linuxfoundation.org> References: <20210913131047.974309396@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: Andy Duan [ Upstream commit d5c38948448abc2bb6b36dbf85a554bf4748885e ] Register offset needs to be applied on mapbase also. dma_tx/rx_request use the physical address of UARTDATA. Register offset is currently only applied to membase (the corresponding virtual addr) but not on mapbase. Fixes: 24b1e5f0e83c ("tty: serial: lpuart: add imx7ulp support") Reviewed-by: Leonard Crestez Signed-off-by: Adriana Reus Signed-off-by: Sherry Sun Signed-off-by: Andy Duan Link: https://lore.kernel.org/r/20210819021033.32606-1-sherry.sun@nxp.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/fsl_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index b053345dfd1a..13e705b53217 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -2414,7 +2414,7 @@ static int lpuart_probe(struct platform_device *pdev) return PTR_ERR(sport->port.membase); sport->port.membase += sdata->reg_off; - sport->port.mapbase = res->start; + sport->port.mapbase = res->start + sdata->reg_off; sport->port.dev = &pdev->dev; sport->port.type = PORT_LPUART; sport->devtype = sdata->devtype; -- 2.30.2