From mboxrd@z Thu Jan 1 00:00:00 1970 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 1C14BA933 for ; Tue, 12 Sep 2023 18:55:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9524C433C7; Tue, 12 Sep 2023 18:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694544916; bh=mxNkHEPFMagVcGX4A+M7gEivrs30QJDxDaYd9yCe8Ww=; h=From:To:Cc:Subject:Date:From; b=MJDri5+8BKWHQ8tBxmzLk3OyfkcLeokFmdy20kAWTLrPwMy0TQuNjipTPsgYV56jI ZmMjDWuAtSl9O7ZRJA+DAQd05HLxp03CfCd5VcJo5mGqa4NC04aeNQId4Iiaqt7xpy 6CreB7V/TMNWZ5dY+1OiYgl7YFQpfzNwPG6+JVeL8xwbTWXEZHAkC4mKdrXKM5u9IK rA/dbty3Y1+sCVVz8QNd9F6ieqoXqskeNFwVcdtgpMImQXpmL0EqDKL2ngXVFIk1wF HTFjxS013oR2xvmlomSSw8WXhHzI/w7dzkL6fF+mQt0NQq9kmIlneeAqIuKpLM1FIC cQgbVL/dby9fQ== From: Arnd Bergmann To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Vignesh Raghavendra , Grygorii Strashko , MD Danish Anwar , Roger Quadros Cc: Arnd Bergmann , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ti: icssg-prueth: add PTP dependency Date: Tue, 12 Sep 2023 20:54:51 +0200 Message-Id: <20230912185509.2430563-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The driver can now use PTP if enabled but fails to link built-in if PTP is a loadable module: aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx': icss_iep.c:(.text+0x200): undefined reference to `ptp_clock_index' Add the usual dependency to avoid this. Fixes: 186734c158865 ("net: ti: icssg-prueth: add packet timestamping and ptp support") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/ti/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig index 7f3e2e96c6e20..26ddc26fc7b8d 100644 --- a/drivers/net/ethernet/ti/Kconfig +++ b/drivers/net/ethernet/ti/Kconfig @@ -201,6 +201,7 @@ config TI_ICSSG_PRUETH config TI_ICSS_IEP tristate "TI PRU ICSS IEP driver" + depends on PTP_1588_CLOCK_OPTIONAL depends on TI_PRUSS default TI_PRUSS help -- 2.39.2