Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10377122ybi; Wed, 24 Jul 2019 22:04:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcDGflpZBo+LLcbZcPyMRyX66YWIieOJ80eO46N7GELj/XmTSnRnqYPzW1e6xriE5TAlDY X-Received: by 2002:a17:90a:2023:: with SMTP id n32mr87256845pjc.3.1564031087206; Wed, 24 Jul 2019 22:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564031087; cv=none; d=google.com; s=arc-20160816; b=HsHVGm1EwNMSJ49SeMBnbnTC9yV6iDaITFGoKfulbYwDVmw8Grvc/dPytxxvPmGCKO zSMUTlwgmQsIA1/ibL3BwElQGefqQgnu6XMDu7c0+fkx8eMpEqa2zNUsBYqaOGyONKcF JgEwuDgVCLuG+0anSqFNLhgaMUSz/gEuT1DIonGfcjmyZ3QlTrZN8XhGTmbKbXEIHFmK MPGHZ6R7vxsEtPD2sZQ5MbzEPDtvxHcaH5Lb6spMqhzA6tvIq3cpFanhIjiRQZ558vHk zC0beJ6YFZtcDja/uvynYF56tRa18XY7VWi4fH320uSuAowYAiYg8uxyQ4g3rOYCuq3S ERvA== 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=bSJ3/OtbHYhCuDUh5YWefRy6ZrcNqOxMc76i3NsWQM0=; b=jP36S7tIjhXr1aUPPp1rDMa0K/dEwtdSMh6ZPC80cIyXD4ZzAuB8GxRKDa5ECIuKc5 yQTRsQl28/+KgXxiJjBUA3Gcozb7jgH0wWEOd4iyKz5dYDscplGplla7V0/Gx0ZCX8an pExiHhKAxteu9p/qtuuhlXmawqL1KAGkkSX9pCPbwYdzILCxBl1rHRm6Oy+XgRbSZjgG vUWLnKiVbzqHXdE2X6dMHAEV2DSBdbY4IFnj0NBsIiB3zea7xhYImOZfzq6/ZxDcZ94J Gp5hfzNiQ37pzAWuLv+YPsljId/+2jJuPfcnzi0FHIlptI0mGqd8cmn7N0KAEx6mi7Ry ToHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DkKNP8Hm; 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 z14si16131110pju.64.2019.07.24.22.04.32; Wed, 24 Jul 2019 22:04:47 -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=DkKNP8Hm; 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 S2403768AbfGXTuX (ORCPT + 99 others); Wed, 24 Jul 2019 15:50:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:58954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729177AbfGXTuS (ORCPT ); Wed, 24 Jul 2019 15:50:18 -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 E3C9120659; Wed, 24 Jul 2019 19:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997818; bh=nSw+SP6mMAHmdbZeMz0911fKNacDiGVoRtkmVqIsfXM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DkKNP8Hme5snPs+3Z5+hBZGc3P2ZjGkvy3G6LEfcr/Jrs8jRE2J6VIW/TNpOyrBVI IkXLGT4gchvyXLySujT2oMMFkpM1GuV1w5szulDFsU4DYkoshVEviBji1drxT5cq3/ +aST3IQ/l4z3kAY32QpZUfbtogucdSguPEVDR5t0= 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.1 153/371] clocksource/drivers/tegra: Restore base address before cleanup Date: Wed, 24 Jul 2019 21:18:25 +0200 Message-Id: <20190724191736.708663985@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191724.382593077@linuxfoundation.org> References: <20190724191724.382593077@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 cc18bb135a17..84adfff59fb0 100644 --- a/drivers/clocksource/timer-tegra20.c +++ b/drivers/clocksource/timer-tegra20.c @@ -341,6 +341,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