From patchwork Tue Feb 13 05:02:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 200240 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp354453dyb; Mon, 12 Feb 2024 22:19:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPVktfaZhsELjsJgGfJsF9YI4e9KOnAZZ3opygheilsNn/GN8yqdNMOZnyTXdQqgGPsGY7 X-Received: by 2002:a05:6a00:1251:b0:6dd:8767:2fa1 with SMTP id u17-20020a056a00125100b006dd87672fa1mr9577731pfi.0.1707805175059; Mon, 12 Feb 2024 22:19:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707805175; cv=pass; d=google.com; s=arc-20160816; b=dOLwO/HGWoSuWLBeWJLzL8CN4v9gMe6EhPZ09ACXCh1xglgwQsGLCiXUIqiALMsvLT P6OEGF2wN/5wXdi240HzwKxileKbGAwHOjVdUNqBjfLWaVtuPoHhboE8WmSLW23MZ6YU geD9Gaz5LVkdbQ/Bd0UutAImpoVZVqKz7jFc8G9N+FkKfT3Z/bpOl+0COHOl6URYVs1f PUubJV45JS9U3bcluuekQin85T/g3Hi+8I6uk1OoI6rQYI8OtYVZmfxKZbqFjVlyUfPq LDkC+qlJR6qPMkvYYwN32YjZUZBKMf5r1QRyXYHR37IJDcMP4XSsMHxDqlBU04qvhLEK 7n3Q== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=TtWttyee/5Vn7DkruIaUNFtX0dg5UyJYT71WtS68lvQ=; fh=ukx0VCxdZyfr4M5HEGJg+OXjum5q4at2+UtleEyeegI=; b=Xc6x3KP6Jb3VbTAUwuW3lSSOQWw7ZZ+lSKcSRSoH5vaZhxpibCDhpnWeWIkbGq55jt y/aNvSYdWsTp5aFcLTQ0b8eK+3u4iDcsg2+APT/QETw9HRGPVJB7IlTvOcX/wxp4iZcZ GPvLSzk39RVlv5qExIOH3a8bjuV8qbT0vZ2ppWC7lGMIPS1Rn1aiYiqxcKzaH/bvzArP DMuPRgg3+zZPWmApoe8uRJaoC0DJgDK8dxI6NQ0k7mSUP9yyEF3Vvn3Iv1SJcbc6u16R XaE0hf8tdim+1kqWblKg2Mf5x3H1f4EHyzNnahmTnFpFxu8FCpje3zR9B/XNEMiInOuo uzuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=y2UuGXq7; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-62936-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62936-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVos74dtpSrQNzLVCueIEE4iq2b+JpKb9N6q5O96EMnRv7hdRbXqBc1CZbRxgyYhtBaQveoUBHtScX5S9f8aa4vEcLBOw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 75-20020a63014e000000b005ced4fbeb75si1475160pgb.581.2024.02.12.22.19.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 22:19:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62936-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=y2UuGXq7; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-62936-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62936-ouuuleilei=gmail.com@vger.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 515BA284E85 for ; Tue, 13 Feb 2024 05:03:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B322612B7D; Tue, 13 Feb 2024 05:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="y2UuGXq7" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 5630911711; Tue, 13 Feb 2024 05:03:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707800588; cv=none; b=u/+goJl4PDu2pQMLM8jJPFtghNqnw/COOTZPLfPlGgscty+i7LsXs+FtnbmehiVLh1qeDXIx0ZQwNrTw/S+hNXgyI52mx73ulH4Jt762/q7LXt6jdTFV9G7o3X5FKqQx6VqepAt98n8JfnccbUzwbFQiHwwYJdJcWNFdWBixTow= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707800588; c=relaxed/simple; bh=7gBurt55rmqnev0iYzt5sjeYAJF23VKQewkN/k7zrfk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pYxwYU1u2Ogcv2SkFvAgWs0iDZqPiKTwypT74a1YIMseVK63dlR5ib/u0FpFQWlJQXZYeGycQfDPM9yaNTWlUSp20vT6fxK/sOJ81h72uoDT17AYTM49gXHOzIF7M2mjO26aaVr7dcww5AY5IyOA4loqlkUA6ErMF/+Khwfi4Dg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=y2UuGXq7; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=TtWttyee/5Vn7DkruIaUNFtX0dg5UyJYT71WtS68lvQ=; b=y2UuGXq7TVGkgDfbVqKyK6qZI0 SzB9u73KS37xUZQNvk05H+/v1P90LfvWrA7Bf8fA1OncBax31UlMvFXTdeDTTpawE5ESXJh39j8gU QUow+QElY8Esw1Gb+l8UdNgLZW9l99ptUgQrk/JXPapsg/oSZljj+986pnmdUnDcjRSXcfLlTiPvL CT6AzLnpWX9DOBO+0aMoN2nfR+nxCtejpQhJtTI+aUHUT8HMH9hAY9b/gnRcLDLXHewA1t5XacgX7 0t/QcHfUCnss3DoKpuNvXeMoHN4G5280CoJU6+nf05lEzPtMQWWLvBGNhQP/tknH28T/cippxKxwK YozeUPFA==; Received: from [50.53.50.0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZkwg-00000007xyA-0pHe; Tue, 13 Feb 2024 05:03:02 +0000 From: Randy Dunlap To: linux-kernel@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 Subject: [PATCH v2] rtc: mt6397: select IRQ_DOMAIN instead of depending on it Date: Mon, 12 Feb 2024 21:02:58 -0800 Message-ID: <20240213050258.6167-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790763519051684595 X-GMAIL-MSGID: 1790763519051684595 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 --- v2: add Rev-by: from AngeloGioacchino drivers/rtc/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -- a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig --- 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