Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2401193lqp; Sun, 24 Mar 2024 17:57:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmtrgQ17s/Tiu98MnnDvxXnUVor4cV0/0Ruz7j3idwychm1/9q09TVgR9AD39zBHVNW2pmbZhBgrCTmcKw/xPVnPY6RDEkwGCw/c1+fA== X-Google-Smtp-Source: AGHT+IHQDgjSMPl9YD6392bzCIGff1Udx2es19BCkdsssiLh/LmeQQIy62TwNcGMdDhi55rSNe3Y X-Received: by 2002:a17:903:98d:b0:1e0:b5ef:77e with SMTP id mb13-20020a170903098d00b001e0b5ef077emr3856379plb.19.1711328273988; Sun, 24 Mar 2024 17:57:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711328273; cv=pass; d=google.com; s=arc-20160816; b=uHP5Tq8u6gjcNGqV/wUd363TyNqBavrd5rfN6kvU3tGTpy1eUMbL6fyUjN4Fx77bWa 8WnXwin7C6xRDcUtFHajZbx/xHtgSHc5NdjKWmDzO7Z6wdCHYA9TuDiIrtj0Z5LiSdqZ Ehlmis6XQlmWVIRzM3gOYosnHyi4idw1wXk0lGXzmu4LiudUtyThUXkS7ulK9v9fC5xP bVxdGMxHPQU55Y5KC0b8gyjeYMXdjMRqFl0LxE04jvo7SQNSPW6rXgkvmY+GuFgUl5IC Kbs5h2NH0wkPMwU2tKiNdyJT8w3wuEOKn4kpDSfeln4tTFO9hdtvz1TVMgweR3jB+KlS oVXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=o/fF8xBRQ9NceJfqi4LSfRSM6YHBThhH9ce8EmKrw+8=; fh=P4CLs/vddxDs02qW1iMMD3osN7/HqXfEeVvjlkbvOzI=; b=HqtaObGiu3n79HCzjLSaxkRJ6Y9HyM2RywzUQbWhBmQSa6PFSaX0wJyh8ANPR30VSZ oqy/h5WY/7pBOxW1oO78BiMctyp2gf1TEE4vWPfDhfZpfSt2R/pVaJAkPEfuPA28jzN6 ct7rase/vMBPzacRLVbLmpQR4lUX25KfmLVxvG9v3FqD9hLKDbhFQ8N1KlqCWa9V8uYE ala3EQEOWp2YhMi87gm9tPMPZidJPdksQwHd/w244qXuiOGFTQ29afQgE2aFRq2uRSAn xshIeVlQPCfHIZI690Ac3Rq5E2w759LtrbDLUa7hXSDnEaqfSxxo2udUyZOs5nFLajVo Adbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jUVVvClm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113518-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h15-20020a170902f70f00b001ddb0108315si4410695plo.468.2024.03.24.17.57.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:57:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113518-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jUVVvClm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113518-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 48C7B285B84 for ; Mon, 25 Mar 2024 00:55:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60D2171747; Sun, 24 Mar 2024 22:45:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jUVVvClm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70A521BD5EB; Sun, 24 Mar 2024 22:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320320; cv=none; b=HHM4fxtMLEmDZSDgewRDLHCv82DhtoodFNJ6WnjXC2MM+1F0p3cJH1KUEiEnOUnmlRzzWxFzNp0OgRd3U7wJmdmA293OnasnY8LBxDnNWDSE6ZN/4Oypk2RhlskNGvRVQmDYgpVfQBLUYY5qYMDaAmIYxCYkzF9WrInfA7Dt3T0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320320; c=relaxed/simple; bh=AcjHXO0Hh108C+In5UCWd0oFxN4M2YjPIj9Da/8FyXQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JWoh5nZhSkgY/dih9L+LuD5ub9OmapP58N0Jy9JaqMoYr6/7IXmyxuC35x0s6HUT1aY6MNqDqf77kn9z1gVp7aoq+kVwbzzB2aRE37r6vIdenmYblgg7gDKZpjCTIbd6xi72SeE/OtZ+cbB6WkOmj3T6HYEeJCwdDkSWt6d/Cdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jUVVvClm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48134C433A6; Sun, 24 Mar 2024 22:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320320; bh=AcjHXO0Hh108C+In5UCWd0oFxN4M2YjPIj9Da/8FyXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jUVVvClmgnyd+7OqhTduhW8hl3Mc3NUmwjU3Ndo4ATNs1MWdJSzWePQT2KT4B2Odg 3trPadqqjca1ZZQd1FjtuWrX/jo/OkN0pBJDhiUAtosKSVJtHXUwgV+K57ctaucOFx AgryI+QluVp762VdjDQcG7nhnt00fase0kpxRUIbAr1nxu5hFHX1hqDxSJ2zfwbJ/P o35hg6bNrQFlrrpLcxhPmy3zIyXC7ycL07KPhD8UqvRbTxoxqtK/Ja2pAkfT0hhBzN 9ydZ+pdSMcfBk+LNw8Q1gXWxx4ziEtRk/HopgRzIotLoDYeyxA2ytCeWdgHw6D1XLS ffoI4HADmLvNw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Randy Dunlap , Arnd Bergmann , Eddie Huang , Sean Wang , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, Marc Zyngier , Philipp Zabel , Peter Rosin , AngeloGioacchino Del Regno , Sasha Levin Subject: [PATCH 6.8 627/715] rtc: mt6397: select IRQ_DOMAIN instead of depending on it Date: Sun, 24 Mar 2024 18:33:26 -0400 Message-ID: <20240324223455.1342824-628-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Randy Dunlap [ Upstream commit 544c42f798e1651dcb04fb0395219bf0f1c2607e ] IRQ_DOMAIN is a hidden (not user visible) symbol. Users cannot set it directly thru "make *config", so drivers should select it instead of depending on it if they need it. Relying on it being set for a dependency is risky. Consistently using "select" or "depends on" can also help reduce Kconfig circular dependency issues. Therefore, change the use of "depends on" for IRQ_DOMAIN to "select" for RTC_DRV_MT6397. Fixes: 04d3ba70a3c9 ("rtc: mt6397: add IRQ domain dependency") Cc: Arnd Bergmann Cc: Eddie Huang Cc: Sean Wang Cc: Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: linux-rtc@vger.kernel.org Cc: Marc Zyngier Cc: Philipp Zabel Cc: Peter Rosin Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Randy Dunlap Link: https://lore.kernel.org/r/20240213050258.6167-1-rdunlap@infradead.org Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/rtc/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e37a4341f442d..c63e32d012f23 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1858,7 +1858,8 @@ config RTC_DRV_MT2712 config RTC_DRV_MT6397 tristate "MediaTek PMIC based RTC" - depends on MFD_MT6397 || (COMPILE_TEST && IRQ_DOMAIN) + depends on MFD_MT6397 || COMPILE_TEST + select IRQ_DOMAIN help This selects the MediaTek(R) RTC driver. RTC is part of MediaTek MT6397 PMIC. You should enable MT6397 PMIC MFD before select -- 2.43.0