From patchwork Wed Nov 29 11:11:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 13472644 X-Patchwork-Delegate: kuba@kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech-se.20230601.gappssmtp.com header.i=@ragnatech-se.20230601.gappssmtp.com header.b="LhDt/KJY" Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C4341BCB for ; Wed, 29 Nov 2023 03:12:28 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50bc811d12fso255059e87.1 for ; Wed, 29 Nov 2023 03:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20230601.gappssmtp.com; s=20230601; t=1701256346; x=1701861146; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tBMSQm5F8pVmCnY/bulP3HFHAamG32fRwIoKJs27D7o=; b=LhDt/KJYw6iJrjl+36Jb6fpaURgg2sqMGaWLM89TPpVvCjePTpSVIzAScRz5328HiO 0yXnBxJKsk6d0OTSPQ2T3OdaTEiDvNoaAyLyW/LBm79UKb2Bh/9cUH1hCZt0VlPkzPwA o9TVUTEz5AmTVpUkpnJ841pCA7Tog8wd1UaEz1tPx6ZbPTCmKdPDum6KRbDrK+hqcxK9 QIDMl6lstx0TqePOqb08tLHcYK2XBjtHKIcB04RstaTBTDlgPAIEwlAtlBAI5k68N5UG G6NyEP7x3oCYavJmwSOETRclPBmJmHjWbro+KnTUz0vzi21BeRPaRR1Mx17U15NRzNa6 WYuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701256346; x=1701861146; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tBMSQm5F8pVmCnY/bulP3HFHAamG32fRwIoKJs27D7o=; b=g5i3gBBYP4sF9ZCuMs+GsfIPbI0a0zW3jF33K5wnzKXw/jrnvuyGB+Pkaa+JcYKWYi pG/DWYrjJuA2Ve8x5zRE0DfoQima5471TnhMfDt4f9i5gvuTvwgkeRoPE3WrOiKEGmOL jyev/dYuN+rOX78APoCgBSa7BygqkiBm7wUQXXFj3nGkGr9LYZwiQDcsnHIFHyP3NTlF 5KyvZvE7CmPbw6B+Nhx0LJ3MqL+MjeosSQ/1YNez2Bxg9c18WiN4d/X047vdhaNAdKtP I5ZxyXWIZ2Abh6tDyJlZP74dhwQtfsUSq0c5OR1/nMxDjrtNRYsUoSTAzp1uFGei1Qwu SWnw== X-Gm-Message-State: AOJu0Yyzdu35m6LvQy7FTl2OLmYfYhHq5JB/zhnoFu3R8Vc9bUo9x0Ta wywni6jtHBuasRUos8TiJvj91Q== X-Google-Smtp-Source: AGHT+IGNT5IaHDF9qu71qNnqkrMg5xBAwZ03ypHava9eT1qI2m4YDP4NiX0bzUB8Wdai+vJna1ndQA== X-Received: by 2002:a19:5207:0:b0:509:4530:e7fb with SMTP id m7-20020a195207000000b005094530e7fbmr11074662lfb.32.1701256345479; Wed, 29 Nov 2023 03:12:25 -0800 (PST) Received: from sleipner.berto.se (p4fcc8a96.dip0.t-ipconnect.de. [79.204.138.150]) by smtp.googlemail.com with ESMTPSA id z2-20020a5d4402000000b003331a5b8df0sm1028816wrq.6.2023.11.29.03.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 03:12:25 -0800 (PST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , netdev@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Arnd Bergmann Subject: [net-next] net: ethernet: renesas: rcar_gen4_ptp: Depend on PTP_1588_CLOCK Date: Wed, 29 Nov 2023 12:11:42 +0100 Message-ID: <20231129111142.3322667-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.42.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org When breaking out the Gen4 gPTP support to its own module the dependency on the PTP_1588_CLOCK framework was left as optional and only stated for the driver using the module. This leads to issues when doing COMPILE_TEST of RENESAS_GEN4_PTP separately and PTP_1588_CLOCK is built as a module and the other as a built-in. Add an explicit depend on PTP_1588_CLOCK. While at it remove the optional support for PTP_1588_CLOCK from RENESAS_ETHER_SWITCH as the driver unconditionally calls the Gen4 gPTP module and thus also requires the PTP_1588_CLOCK framework. Reported-by: Arnd Bergmann Fixes: 8c1c66235e03 ("net: ethernet: renesas: rcar_gen4_ptp: Break out to module") Signed-off-by: Niklas Söderlund Reviewed-by: Arnd Bergmann --- drivers/net/ethernet/renesas/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/Kconfig b/drivers/net/ethernet/renesas/Kconfig index 733cbb6eb3ed..d6136fe5c206 100644 --- a/drivers/net/ethernet/renesas/Kconfig +++ b/drivers/net/ethernet/renesas/Kconfig @@ -40,7 +40,7 @@ config RAVB config RENESAS_ETHER_SWITCH tristate "Renesas Ethernet Switch support" depends on ARCH_RENESAS || COMPILE_TEST - depends on PTP_1588_CLOCK_OPTIONAL + depends on PTP_1588_CLOCK select CRC32 select MII select PHYLINK @@ -50,6 +50,7 @@ config RENESAS_ETHER_SWITCH config RENESAS_GEN4_PTP tristate "Renesas R-Car Gen4 gPTP support" if COMPILE_TEST + depends on PTP_1588_CLOCK select CRC32 select MII select PHYLIB