Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2565004lkm; Mon, 20 Sep 2021 18:50:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdeQ4WqHQGGE6FZP1XFm2ORuJUxI4Z3J+CFNyXu1KeEvxzQExeYNVedAD4lrRpTj65lX1s X-Received: by 2002:a05:6e02:2184:: with SMTP id j4mr15388880ila.323.1632188980829; Mon, 20 Sep 2021 18:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188980; cv=none; d=google.com; s=arc-20160816; b=g0WlQdDWO0taRY4qB07Zx63KPLp7l9eLLj/Hj8ZrtfekbFY7XnD4DIurSUs2wG3W5U 1npKKiPi8lkKUY0fY/iZcTe6H0VCqLZcAbaqMxjDJ6BumYdDoVW9nG6Z7e2FWmEDAEmH YAV8vpqukKpjI8SY8arE0Wpys0ownltnb643na9KMGto9U+TRpCtYQbrdbaQm7zQHGwH sdL5bJOrKQP3POwkum+YNQh753UqqtJw7wTIT5F+/qFaykJh0c+/vvIn3UUbB0d4tRbA RbEXulQhWbzWmmXuLTMvTDfH8/vKJ6Cbd+7ciFYF7HGuLoegaCtLGU2NGnx22S8wV+cF NR4Q== 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=Zva8bXmkwy1lqcXPVCQe+1HV4dO5Ie1sb3OD5KwW6ec=; b=FEfDzpKw8dRPdIH6pOqAcg72eTazZeh1uySmqdaRhCSukz3hAseqNRi8f7LhzAJGi2 XE73WJTbA3nSINVbOaqOqFBx+zw5yCKzRyfZAGQu8m1a1ljULJKKO68oYJBBWv/pmV8+ RTW1edHybYLam2A/JC0UwNLZED7TpwJrLf3FZndzyUZ8vLMYc1AaSuOpqQE45bI6z1F+ slWgtV325sAa8x4DBvC86+/pOqH10SUbNMmGAzZlwhvdKkEx+vRHG4KlM4XFAZvqtxwn gHLZn0DRWy0U+qUOYVziMQweMiMhcCuvS5I3hve1YJQkkAzvu/yvdYpqgyjYwle3DRKS 5pow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Me7KCg9s; 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 s9si14186726jat.70.2021.09.20.18.49.29; Mon, 20 Sep 2021 18:49:40 -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=Me7KCg9s; 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 S1352584AbhITRmM (ORCPT + 99 others); Mon, 20 Sep 2021 13:42:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:46376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352557AbhITRjn (ORCPT ); Mon, 20 Sep 2021 13:39:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 29ACE6152A; Mon, 20 Sep 2021 17:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632157674; bh=nmDD1Fm5wkT0WQQ0xdu0qiv3NE8y4txPDoEklNeqtcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Me7KCg9s1mPZVQYzsw2nxkn0miEOKIm1m11Y3KPfDVVYxH/u/a2bDSyEeaBiyj8af zfTnAgIeNH2rRiFWX/jt/ONHf09b4araKPAyVz6bXLnq5nFAFWJk0EseAP9Dispj8o 1N7WsZMiHvLXc+oDuZFb9pf73p8hMi3zmwQbH2JM= 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 4.19 098/293] tty: serial: fsl_lpuart: fix the wrong mapbase value Date: Mon, 20 Sep 2021 18:41:00 +0200 Message-Id: <20210920163936.615606367@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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 deb9d4fa9cb0..b757fd1bdbfa 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -2164,7 +2164,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; ret = platform_get_irq(pdev, 0); -- 2.30.2