From patchwork Mon Mar 1 16:09:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 388678 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3574402jap; Mon, 1 Mar 2021 10:11:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlyvl8LDYOfafNU6zXEQb/lyJV7vDmXxWJA0HKGYbwgq4GBZN5NkAYjV+nFTTGeUVk+c4B X-Received: by 2002:a17:907:b16:: with SMTP id h22mr16670416ejl.393.1614622269466; Mon, 01 Mar 2021 10:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614622269; cv=none; d=google.com; s=arc-20160816; b=Xr3WX1VtiSr1c6cR/S7ar4Z8hAd1BDxqt5kj7zHEyM10JVu5VUOytZCs5Lhcz2Le6H yKwrxXN+HifmLP3nltLdls6uQg7W//tNggzQtEev0Mpa0pUZ8Vxprtm7AdHcxEBhy/mQ aiBrE8qzYN+YKK8tvSiuo545rHE+ansqrm1va7TQZTGt+pTNB078BLq878v7SNjvUM7a V2qmZ/OtAQkDDkeEbM7mphVvcnYID+TCxmwysUdCWsGWXskh1JO6X9kU5ainoZtO87lQ Ut76fny0bDBoiIC0ecQrFPnFV+4iMKJTCh1LKm9COTVRa5C6MCYYYocG23yHqiLjWOVu 02fA== 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=+YS8+An8dL5e2XpzlDZeUupowzQbI8eS2kkWF++9bK8=; b=jMgzwNmPUVb/8ztXyIWf9C16NlIlydxRQGmGstXyPWYBVApR6slsGPWjbcUtTfeTDJ 108oApqhXoHRldVbXcqDP6+Wss6Vs8d1cu6VNar9Tuuknb7hZgWcbNli5qC0uENMj+fR PW+0c22J4FUSq84obDYeAE9S53stcRaHbblOM4FhyhY4nvwJGJ2RPHyF6696Mc7vUSRD BJpx/rmENu5n/irPPnmJXId1lGxuorVQ+Jqz9nLtxiiFI4CBBdSMCfVMgeO4vWdZiIuX UvCeR2TtnkM6ueMUZL4a9QlOTRyKJasSAWATfBRPuOoatp0G+TiG5sGyOrJtADoFFsAc RekQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pIqoRImQ; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 f6si2621082edm.418.2021.03.01.10.11.08; Mon, 01 Mar 2021 10:11:09 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=pIqoRImQ; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S238717AbhCASJS (ORCPT + 13 others); Mon, 1 Mar 2021 13:09:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:54730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238966AbhCASCr (ORCPT ); Mon, 1 Mar 2021 13:02:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E39E261606; Mon, 1 Mar 2021 17:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619091; bh=8ysRydVB+Fvs7XeczcltzEX7NERG7ew4ks+DPrt78Jg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pIqoRImQMp2RcrJGbkVqRloZ6C2JO1UDf+tfMtKmoV+0XqWE4N5bN9nmzb+NyF894 1O3PFL0ztx4mCdcsuoLJTi99W39fIqOPIULy/LU4tcOWJXCw6ZtgVvRZw7gaDchWqB NtyTnJpkcVUaGy+Im4herulY9+dWkT4ZV4nGsWNw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Linus Walleij , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.10 298/663] clocksource/drivers/ixp4xx: Select TIMER_OF when needed Date: Mon, 1 Mar 2021 17:09:06 +0100 Message-Id: <20210301161156.578140381@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 7a3b8758bd6e45f7b671723b5c9fa2b69d0787ae ] Compile-testing the ixp4xx timer with CONFIG_OF enabled but CONFIG_TIMER_OF disabled leads to a harmless warning: arm-linux-gnueabi-ld: warning: orphan section `__timer_of_table' from `drivers/clocksource/timer-ixp4xx.o' being placed in section `__timer_of_table' Move the select statement from the platform code into the driver so it always gets enabled in configurations that rely on it. Fixes: 40df14cc5cc0 ("clocksource/drivers/ixp4xx: Add OF initialization support") Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210103135955.3808976-1-arnd@kernel.org Signed-off-by: Sasha Levin --- arch/arm/mach-ixp4xx/Kconfig | 1 - drivers/clocksource/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/arch/arm/mach-ixp4xx/Kconfig b/arch/arm/mach-ixp4xx/Kconfig index f7211b57b1e78..165c184801e19 100644 --- a/arch/arm/mach-ixp4xx/Kconfig +++ b/arch/arm/mach-ixp4xx/Kconfig @@ -13,7 +13,6 @@ config MACH_IXP4XX_OF select I2C select I2C_IOP3XX select PCI - select TIMER_OF select USE_OF help Say 'Y' here to support Device Tree-based IXP4xx platforms. diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 2be849bb794ac..39f4d88662002 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -79,6 +79,7 @@ config IXP4XX_TIMER bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST depends on HAS_IOMEM select CLKSRC_MMIO + select TIMER_OF if OF help Enables support for the Intel XScale IXP4xx SoC timer.