Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2789783rdb; Tue, 12 Sep 2023 12:07:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYDwSEk+XNGwlFZm7/tN3F7L2DSQwZAGs92eFi4UAFHqB9tIz56+rf9mqKmepDFkJ4lF6k X-Received: by 2002:a17:90b:3444:b0:263:68b0:8ca5 with SMTP id lj4-20020a17090b344400b0026368b08ca5mr154085pjb.43.1694545624683; Tue, 12 Sep 2023 12:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694545624; cv=none; d=google.com; s=arc-20160816; b=clXR1cAsOrYTy46uc5F21VAbPIO1nBbWeMfhvo+5fVaQ/Wb5QCSkEtilNaBZqMebNW acY0nuBx9ELu+1/WRxWHuGSAyt7CXGIERhK8GnMJy/yDdmVkm4jMJQC07EjqU58H1LZl 11JaXIjh38F3gSfR6avWXFB3StpQKnn1bupdcv0EMBjCQ+vpw5sVvDHioNE3dh6d2G0N zqvmOUi2tTSpXfoS5kTU3RU3khQ52fxebonhZAmiZQ/n4g32z6Pa6Dsw0hJqkq+PTrzX o5ISsqHDdVjAtGDnDUyn4jCcvzBpyB+Y2Ti1CpPYvdjeBZiLBCYqqqKhgVdaFb6gIs1o 8W/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RmJKvvW2hitcsIPRg9MwPOA0mDrAVD6HFJkDJ+fi6zk=; fh=U4iLCmHZOh2vcRPidzZjvAQTpqIWNE1RHl48p3ET8ZU=; b=SJXN1Lr4LM1ibDoGrV6Zu36KCtQcSws1CmkAzobhnoBabAxInPQoG61YfdMhiBXtUY Oe2sL6/r0ILejM2aaFkDwk62bm23ID5XJWKd5Fomr7s7wUXalcr3i2AXPOg1UgzuiPou 7CqWULG2l8qh4HbfBZVX7TJ0JkwOjKnu7lLbYVceocryvottRM3D2KPpT966MrzauXg5 FIS0zbrO0eqS+iuc9iAUPoMN2eTuf3wUIFUGD1krDUii9tnBjyXBuwA6CSvVeQ6jBg0k 01RHon2Enc0+Qt+g14J9P7C2HLas6KMks/WYbZm2VmSTSl7tt5gVFt1iC4jSsoJIDgwq Ewjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJDri5+8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 36-20020a17090a09a700b00263a985aba5si10330454pjo.149.2023.09.12.12.07.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 12:07:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJDri5+8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 63BFD807D252; Tue, 12 Sep 2023 11:55:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231891AbjILSzV (ORCPT + 99 others); Tue, 12 Sep 2023 14:55:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbjILSzU (ORCPT ); Tue, 12 Sep 2023 14:55:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3EA5106 for ; Tue, 12 Sep 2023 11:55:16 -0700 (PDT) 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 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 11:55:30 -0700 (PDT) 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