Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp69348pxb; Mon, 13 Sep 2021 13:10:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeknmouAsQJna2YnH0NRy0BKot7D4CuWBuhxztnUAAyZ+foGv2e99o6jofVyCOYKXXpwtW X-Received: by 2002:a17:906:35d8:: with SMTP id p24mr14543553ejb.292.1631563856650; Mon, 13 Sep 2021 13:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631563856; cv=none; d=google.com; s=arc-20160816; b=UPDN86RK6KJNjfZla5rhZnOgSgA+A+CHfWRlXXSBV37dzqdHVaqtP59r2xFHJz2B/t iweys5c8eCT+5/wLJEFIRzzY39LwSdDEnqqeKiLVgQtUKVAe9eSjBpv6P1dO37fo4oV6 WH5vp9A8jqTiZMBSqDXf1eoxMUh+7bZEZaPcl5mbOU65Ao4a7H2pgVNkbis43iBBl0pd l6YVzHTHpQ6ZrggUzJ00Hpjc1V7QcOB2zwo6oBsWW6VcdGhMt31SZUjcOzXgX78yaR1z jcAdnHKQYZqWw3NjO4EV8faQCs9cXP6xF247+6Ekj+kXf7t0OLtxNpbb8QEY6NCA9/RR IJ7g== 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=nXCdOza70UgXlborcIHmthwNygJ3qMswKI+aZbJyY1M=; b=oIObIfoplvDw7PXNckp+cyVzg4MTgGBbrWqdS+RRyVsKbsIZXiQNAS//VZD0vhFrIS ymdmyFnImkE6MFUh0tvChgI7rU/nMkvOn5n/fznkdqTVTG4A5JCYg0vhpnTIlrutcMFg 7QH12xYZV2qFhYiwdKaePy4veSWe6Z0jWKrtG82MGVQzCGbRxgerarP6VhME6anLHTE5 ocdQ4Kcv5NYzq/7zxHyjHH1A99uf++dD0zSzzXokvkTKhPNnurkceSDDtpgPcPiNyfHx X5M1QTnsCSuPvkN8nauBHgS5vtdCh4mfUqix1Sh0tGuuxRHv2ZbcIuSk2O9K0LzkC+Jt so7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rc6elvWu; 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 p23si10072208edw.186.2021.09.13.13.10.31; Mon, 13 Sep 2021 13:10:56 -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=rc6elvWu; 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 S244426AbhIMNt0 (ORCPT + 99 others); Mon, 13 Sep 2021 09:49:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:51786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243683AbhIMNov (ORCPT ); Mon, 13 Sep 2021 09:44:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 89C1561526; Mon, 13 Sep 2021 13:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539877; bh=6C5AL6c/MmRnBi3WIrw+eU+bK3WDGbJgxK76cPrBuN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rc6elvWuA2fF4bng2hw4St0b1VV5PgD86/huigqF2VlS93RXnuOvGT6hcsw3Didta i3YwLl4pZlm+SAPzCkVm2rsLRR+EWaHAfpECQMppOyij60Q+eDiRcsto2fO32xGfay Io62hkJvweYn/B/XBH4W3UHb2dyk1g/0DaSm4JJU= 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.10 196/236] tty: serial: fsl_lpuart: fix the wrong mapbase value Date: Mon, 13 Sep 2021 15:15:01 +0200 Message-Id: <20210913131107.052058301@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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 2e74c88808db..a70911a227a8 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -2597,7 +2597,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