Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3194605rdb; Wed, 13 Sep 2023 05:15:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEleeJTMClm7GIh2HrzwsJK1UPGMJisecUt1ZRHpsea7ZTsKpQmRoIH+lDqBnXyvprbntyR X-Received: by 2002:a05:6a20:9384:b0:14a:d117:ef97 with SMTP id x4-20020a056a20938400b0014ad117ef97mr2415574pzh.11.1694607344776; Wed, 13 Sep 2023 05:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694607344; cv=none; d=google.com; s=arc-20160816; b=rMJTIBgYWPBi/qBH/C9Mua25WfRPEqn3EIjYxlGSeTyhDve6L4iPO7Y9Cs3pHXLDni /ydp3oiyheNmacNbja7nLGn5xN/ruw7TBvs2SLYC+ggNj7OA+ZNmEWbX6asQNVwPY5YY Yje++7jpnHjUZjUYMVAMfMLPyr1Mhr4jD8xwv5k05IcXd1k/eUJ3gPSfL5U/yPaQOVwD BrUDmfjvjnfZtnKgoIUWMplfaOw7y+ozK8H/VtBSBQNq17jQGWN6Fcxu1oF0ypBZaoK6 UOHl8NGlTVKA5XgFOo4hUMg75dGHqW6zV55buXhieq277yXEVPZP+B/qE2sDOV/gJdK2 47vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ednb1lEMgz1nicD/9l1CelW4FhvjacjJehHXRFGfZW8=; fh=OpcMoVCtJ8oduvXk9pWOAVfi5bTGErAkIoQGPfQmoC0=; b=sCqqqk0TEe3o9UhPBiC67lU2ftz3EFoHR0vlCfIpzxPZDGD0GDd7taZ1XWnjwJE18i yhWbnn9O4DEAr/XwkRhlS8X4tyFguwZHb6zt5y66HW9YrBl6pyv8exUEITonikR0yhV3 Ax9l9W1uARwEzGf5QSIIRWeZrnG6UpGQKDwFfeXJcEJDQ/w+leyDWJvWSJt5fQ7nfFDj uVoNgLXFiVYtgOUf+Z58ymuefnwnlos8EmZ3brJlp+qhAMVSoHl4/hpVJzvsF5BooSUf mTYaEyHbeRHBUVgk+dQYGFJmZGF/V/QlJ6Jl1oMf7KUtIwbjJFE2GBaLKA4llpX5cI/e E7hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YPErQhtm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id c11-20020a056a00248b00b0068a52819fd2si10375559pfv.331.2023.09.13.05.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 05:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YPErQhtm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id F311D806B062; Tue, 12 Sep 2023 23:25:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238319AbjIMGZT (ORCPT + 99 others); Wed, 13 Sep 2023 02:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbjIMGZS (ORCPT ); Wed, 13 Sep 2023 02:25:18 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48C551730; Tue, 12 Sep 2023 23:25:14 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38D6P4XT055729; Wed, 13 Sep 2023 01:25:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1694586304; bh=Ednb1lEMgz1nicD/9l1CelW4FhvjacjJehHXRFGfZW8=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=YPErQhtmOk4nzJMcppANkf7JGtPRbOZD6D7mM3U3mW0G8JVywfrHAmHc1qrBmoCTU NrbqqAMv//pPkcdnRMXm2A+QX4oFU1kgC6mBTVuRdqvQ+WxkdKXbz+J5c6/zGHv7ZB WtKyUL6UTqbFn/pJN1z26aBwcUx5Xca5BaOp7y1w= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38D6P3KD054801 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Sep 2023 01:25:03 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 13 Sep 2023 01:25:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 13 Sep 2023 01:25:02 -0500 Received: from [10.24.69.199] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38D6OuxL051680; Wed, 13 Sep 2023 01:24:57 -0500 Message-ID: Date: Wed, 13 Sep 2023 11:54:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: [PATCH] net: ti: icssg-prueth: add PTP dependency Content-Language: en-US To: Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Paolo Abeni" , Richard Cochran , Vignesh Raghavendra , Grygorii Strashko , Roger Quadros CC: Arnd Bergmann , Simon Horman , , References: <20230912185509.2430563-1-arnd@kernel.org> From: MD Danish Anwar In-Reply-To: <20230912185509.2430563-1-arnd@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 23:25:28 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On 13/09/23 00:24, Arnd Bergmann wrote: > 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 Reviewed-by: MD Danish Anwar > --- > 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 -- Thanks and Regards, Danish