Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9932300ybi; Wed, 24 Jul 2019 12:34:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyKpmF5riY/au5OkdwxVHIoxMt7P5IzBJThJ+JVE3hGrH5JV1eZO+Pm3WtF5RlVwQD+Vq9 X-Received: by 2002:a17:90a:cb97:: with SMTP id a23mr87400100pju.67.1563996839957; Wed, 24 Jul 2019 12:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563996839; cv=none; d=google.com; s=arc-20160816; b=qu2Z3JaNYZP8iCTnnwKjrUZvAleZMgWouJm/2vDS16iYtPzA96NqnGiQfuTkJnuS8Q q+Z7z2lNLUKe9aHEwFap/4V24+PCiAvZ0hZM2ZG8uUDmKyxBbOiQZc1the2xCkJyiO9P i1DcdKSF3VcIhA26G1N54LcoizXKVvcJtcBuIgyEkr+uvoW6UGndK30jX2uLrxWb7Vnm eAeSyzYspPer5/EiwFwuAQBOeR5xXm2LZcvu/DGnnp5+tGYc7dYvDY6Vsj1AW6/sFhJm 3a4WJ5DZV0neMD2Ox1fLWpe5A74zBE1BeGx/FvbecylTpIxhd24OtEq09ls9+IafL9vC cGaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Wg+/keJZX1bvihFKq5QbPEzKs8Ava8Aq7ZHiqZ1Ey8s=; b=NFxC67ljX66aSiAwFVQ8DfC3voE365lxzv+aAU6a5v9YFBHHiPAeVwXi+qGBWgj8b7 gFSPde7/IqOQeAOnmospccjaAffdSnmDyW4nz7vAbfTfSjZIyR3IWZL42c+hvLuPN/qM f4RClT1M6AbzCzl8g0LO3eiy4Q1uESvKeV8VhgQin1vxyUUwO2aM2iFvY8UdQcE1VzKi w9oupE03V4nTrM5MmrvwCbSjuZOp3246AbrVE5CBMsAiIi8Wqfo2ZF8A90zyRJ0iGJnm dpF1Ke6qCh8dCgLlwODhxAl+RXPJ9NAx/ZN7PevyARBrvDNctxCKknVPh9pYm2J0boL2 X7zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MAPqS0XP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si16076299pgm.167.2019.07.24.12.33.45; Wed, 24 Jul 2019 12:33:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MAPqS0XP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388719AbfGXTcw (ORCPT + 99 others); Wed, 24 Jul 2019 15:32:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:54328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388712AbfGXTcu (ORCPT ); Wed, 24 Jul 2019 15:32:50 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1ADAB2238C; Wed, 24 Jul 2019 19:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996769; bh=1xrh3G+on1NI23elo0OivcqzZrW+sUcSvTTavWdAs6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MAPqS0XPrBMb7y/nApHqDhVkVTmqWUp9k0M8NLM7gCRAxMM3S6C10BhQew3yGXT8X pj3lHukY/6nXrgeYuAjdHXMjLPlKDZTDW/SlHEttS+Hd5bm/HBZXRMJL2YIJ2/Z2qo TKp6lqXp1yfbBwmC0fNAZWjny2Yde/7xUfPqQhlY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , Jon Hunter , Thierry Reding , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.2 169/413] clocksource/drivers/tegra: Restore base address before cleanup Date: Wed, 24 Jul 2019 21:17:40 +0200 Message-Id: <20190724191747.077384807@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit fc9babc2574691d3bbf0428f007b22261fed55c6 ] We're adjusting the timer's base for each per-CPU timer to point to the actual start of the timer since device-tree defines a compound registers range that includes all of the timers. In this case the original base need to be restore before calling iounmap to unmap the proper address. Signed-off-by: Dmitry Osipenko Acked-by: Jon Hunter Acked-by: Thierry Reding Signed-off-by: Daniel Lezcano Signed-off-by: Sasha Levin --- drivers/clocksource/timer-tegra20.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/timer-tegra20.c b/drivers/clocksource/timer-tegra20.c index fe5cc0963ac9..462be34b41c4 100644 --- a/drivers/clocksource/timer-tegra20.c +++ b/drivers/clocksource/timer-tegra20.c @@ -319,6 +319,8 @@ static int __init tegra_init_timer(struct device_node *np) irq_dispose_mapping(cpu_to->clkevt.irq); } } + + to->of_base.base = timer_reg_base; out: timer_of_cleanup(to); return ret; -- 2.20.1