Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1876861lqa; Tue, 30 Apr 2024 01:39:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJaADrwqu3oTP8rHnUFODg/zDDP3B9ia1XWy++PIjRrdgoQucd2+t+9A5xwSOjFFe3PSv/82I1Tdf2OMBGtCTiwKKfxp9rvJFo6jfAFw== X-Google-Smtp-Source: AGHT+IEt3JbywUzSt9FViU9bgC5BvWxh1a0Zt+E05Y3v5x552VnnWc/u0ESJjTupaNMcDbEzeeBF X-Received: by 2002:a17:902:ecd2:b0:1e6:7732:a180 with SMTP id a18-20020a170902ecd200b001e67732a180mr16729642plh.50.1714466393332; Tue, 30 Apr 2024 01:39:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714466393; cv=pass; d=google.com; s=arc-20160816; b=IyxRP1YaYJZf2OF0GF2EpxnwYm1UNFAzz2/AKdjzkCG+f22/EEIcVbgsHNsZ4wV/FN oCaYBqtwVtFZngP9VIhUGqSWUv5XjQaBXHXTuOkUqYI8o9AR8AG11LxMmmiumwcobBxd siKKNWzL+cX63jA6Wmrfgk3ia8fPiiCzD74r/iJ1Zlsgzn6vFo+kg4zCHmeT4XoJQEiD vzPUbBUzqZx3a3ZF8GU+VWJXkMTuQX8ZDk4mHHrdkuvicWQEFI0Im7UY4+iCuCvKJgI+ DPEv4x0XGOLnC+iDLi4nIDqon5xqeTsb/PFGloFwb6oN/SLQebtMzlxjU4Tv7DT4Y2RT t7eg== 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=qWz5W3H1K/5hoRA60ibUkKhWpaUcvtXlrgxGqSMHDyg=; fh=FZ8lJPkZghXo7cjjk5LlG/r+nFxaAY6dY38taoG8W1o=; b=ruV7AMRrLonjMKePsnYoS2ZCwR/9xurxPgklIAZ/jqtZk6ZNHpoujnRH/juUJayiJR f31Mu+x9aaHVyIWXXVbibnwvcDmmhoUH2Y3bbepV+xsrNPwz9yfgnOZGinAPiT/tSohQ 4zarE1t4Y69Bz9XdAM3M4o+doQCx38sB/RXqgDtdeCV8DxSWpJ2UEr2zcvY/LM7S1zVi 72rF6wfCoK02iods4Dc8/SJM1hWNJTDDgfW3kLezKtkhd/PJoa0X/VAwbYVS+EFdLI09 327AsERq9ph8tumR8WTghJ9la2lmXX88C65qrFjHpyqmTzsPRmBEqtP3S674D2CZ+D+f D6Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=i9REab5R; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-163552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163552-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b10-20020a170902d50a00b001e43376415esi21576036plg.327.2024.04.30.01.39.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 01:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=i9REab5R; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-163552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163552-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 55980B2098F for ; Tue, 30 Apr 2024 08:39:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4B5F1292D4; Tue, 30 Apr 2024 08:39:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="i9REab5R" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 7A04C1272C6; Tue, 30 Apr 2024 08:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714466355; cv=none; b=SvsjYCcXlv5ps3TlAQXTw2YtxUmaedhE1UCm0lRA+T43fWlgFTsNXbUhnp6mqVdcYsFncMtoaY/G4iwCM4nmCEcGlhk8az5YZMli04GZMxoRYz5AXOH7mjGweHur+W3dOV3/mN4YFDzQiZBvRipnY6YblL7quswjMMvmqyqezAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714466355; c=relaxed/simple; bh=yQQIcYbRYc84C9+sU9Mw4x3Hg7aHXuq5GPfutfglw58=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=D85arKlNTTS6HZD55bUKQrvNejaTm5423VwmIYn2TjNBEzEre9h/lNV7dZkeln/NNByzdp1xKgVJOF9+GYnmMMojJ7XjdCLwGX9mRc/qoB5wOBVv8r824Zabmtm1aykk45DblYuiUbTRng+PcoeTsb7NxJhqEmChNhS9cE6aHbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=i9REab5R; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPA id 528492000B; Tue, 30 Apr 2024 08:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714466351; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qWz5W3H1K/5hoRA60ibUkKhWpaUcvtXlrgxGqSMHDyg=; b=i9REab5R16i2TBWSrVxDiCTgdfngr9MAdImqM+UmYIebxm9Evtc4JU8Dj/qKqf4BkVXN3Y HJxDX+xWQSLScAxOn4r2iLjpFz0uiplKnZbBmod+3dbgcp90McRgYmZQ3dO8HC0bAdzfgd V3uxPoJ7IVR2+21AR8LofvVs3Z9qH1gsG8YN7Jf5CXnjdGIbGoXRDAWLnkjSq6KxZsIydH 25hrjt0sjG4s85T6ab8uVVAP2leivuj+WqokFv5NJbSUfVQMKrtf5PwuX1C2z6LFSIXgCe 9gbAzV7zJ+48nUeZ8n8TStwCqCKFrzQrZh3Im4aQtgh+2Ugz8KfGU+OvEhockw== From: Herve Codina To: Herve Codina , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lee Jones , Arnd Bergmann , Horatiu Vultur , UNGLinuxDriver@microchip.com, Andrew Lunn , Heiner Kallweit , Russell King , Saravana Kannan , Bjorn Helgaas , Philipp Zabel , Lars Povlsen , Steen Hegelund , Daniel Machon , Alexandre Belloni Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Allan Nielsen , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= Subject: [PATCH 02/17] reset: mchp: sparx5: Remove dependencies and allow building as a module Date: Tue, 30 Apr 2024 10:37:11 +0200 Message-ID: <20240430083730.134918-3-herve.codina@bootlin.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430083730.134918-1-herve.codina@bootlin.com> References: <20240430083730.134918-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com From: Clément Léger The sparx5 reset controller depends on the SPARX5 architecture or the LAN966x SoC. This reset controller can be used by the LAN966x PCI device and so it needs to be available on all architectures. Also the LAN966x PCI device driver can be built as a module and this reset controller driver has no reason to be a builtin driver in that case. Signed-off-by: Clément Léger Signed-off-by: Herve Codina --- drivers/reset/Kconfig | 3 +-- drivers/reset/reset-microchip-sparx5.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 85b27c42cf65..04dbfe317fc7 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -124,8 +124,7 @@ config RESET_LPC18XX This enables the reset controller driver for NXP LPC18xx/43xx SoCs. config RESET_MCHP_SPARX5 - bool "Microchip Sparx5 reset driver" - depends on ARCH_SPARX5 || SOC_LAN966 || COMPILE_TEST + tristate "Microchip Sparx5 reset driver" default y if SPARX5_SWITCH select MFD_SYSCON help diff --git a/drivers/reset/reset-microchip-sparx5.c b/drivers/reset/reset-microchip-sparx5.c index 636e85c388b0..69915c7b4941 100644 --- a/drivers/reset/reset-microchip-sparx5.c +++ b/drivers/reset/reset-microchip-sparx5.c @@ -158,6 +158,7 @@ static const struct of_device_id mchp_sparx5_reset_of_match[] = { }, { } }; +MODULE_DEVICE_TABLE(of, mchp_sparx5_reset_of_match); static struct platform_driver mchp_sparx5_reset_driver = { .probe = mchp_sparx5_reset_probe, @@ -180,3 +181,4 @@ postcore_initcall(mchp_sparx5_reset_init); MODULE_DESCRIPTION("Microchip Sparx5 switch reset driver"); MODULE_AUTHOR("Steen Hegelund "); +MODULE_LICENSE("GPL"); -- 2.44.0