Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp843422rdb; Tue, 19 Sep 2023 11:48:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpkr51qSwMvulRjCw5ZEtW6GG3RLccWXfoObtkkR0bfvpg1dbdkKU/OVUCYiFdFzFufr5e X-Received: by 2002:a17:90b:f16:b0:26d:262e:70be with SMTP id br22-20020a17090b0f1600b0026d262e70bemr523662pjb.22.1695149301307; Tue, 19 Sep 2023 11:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695149301; cv=none; d=google.com; s=arc-20160816; b=rbV+KCqiQbY4KgM2DSekn+/M2GZDYZKkNyw4882WaHJmKazXwsaG/u01tpRT5kU63c sOO1qP0dVdb58OS57Qr+csri7DA1ovrsr9e3EfVcIUYY2PfNZnGreQCoFcOHngde2IBj qken2S3vRFC/V5BdgdTmDXNRMi8xmXbOuS/y3JhKTdU+DqwNYrcGB5St8C8m6FnywF9k z1TwN/Wx/ck3GtEk2e+cimFNaaDQfeXhmEB1RuWP/b5SHYBjbehpjosQbGALPGx0lX36 MoC2ZvvrWF5iHCOSku1Om1t4tG8WHJqiws9c+p4GxM9DeyvvQOc6mX1n0sVNJ3U8gWOm YhWQ== 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=ko+0biv7p0QE3bbjv/9cyrzE4CVR5cv9T1cCR7xKuE4=; fh=vIu6n9PCbkj59UmjIxxXV03iw/jtz7p0BBMuX4lOJW4=; b=viX2DhjHrf3b+LTXKk506J172yQRWg+T94n+snuajJU6p9lvw5eGtxCplVj2LqMW+7 5tsbTROGt6ZeKRIuTyIaVOcoS2hZiMPey8F5hYCrU2/7/w5IcRk9Jprq09f32Lnhj/KU 72ruVfMr5TliLR79KNqgI1oJZ8pGEot/POSHIF10YX2Y0xHgMymP2CxG/swjXjHgNvEK 2hrNe3F3YSGgTGTfo81u8SY1IbWj6kGdsvzMYTSLFKzNlxu3jzgI111JwyFk6MC9ttLM 9AnUxiARxTaQZn/duwEDqI4aEbRWMZkujYnC2i2OBGKkuSYkAMuAhvPTjNeC+T+2v9zH 39+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JyayjV+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id lx2-20020a17090b4b0200b002681fea6d14si13004186pjb.79.2023.09.19.11.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 11:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JyayjV+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id B52DB80A1E15; Tue, 19 Sep 2023 01:32:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230439AbjISIcs (ORCPT + 99 others); Tue, 19 Sep 2023 04:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbjISIcq (ORCPT ); Tue, 19 Sep 2023 04:32:46 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF3DE6; Tue, 19 Sep 2023 01:32:40 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38J8WOIm076785; Tue, 19 Sep 2023 03:32:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695112344; bh=ko+0biv7p0QE3bbjv/9cyrzE4CVR5cv9T1cCR7xKuE4=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=JyayjV+DLoexFsoHU85qsRYEkaDrbcHEul9GPdz75+v4VVJWUYR+iLYKfVcbHa3Y4 Ie4/YjnypT08Snog6TBhmXNlzIerWOy2kY9myas1V8N2F1t39PG0TQngZgwkuV/YDH CheQoMbct5wBvDjtXT9/aG7MubEJa9fIyls2CG7c= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38J8WOoa112617 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Sep 2023 03:32:24 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 19 Sep 2023 03:32:23 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE106.ent.ti.com (10.64.6.27) 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; Tue, 19 Sep 2023 03:32:23 -0500 Received: from [10.24.69.199] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38J8WK0Q123113; Tue, 19 Sep 2023 03:32:20 -0500 Message-ID: <8ba840a5-baec-733a-f538-a196f5421190@ti.com> Date: Tue, 19 Sep 2023 14:02:19 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: [PATCH] net: ti: icss-iep: add dependency for PTP Content-Language: en-US To: Randy Dunlap , CC: kernel test robot , Roger Quadros , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , References: <20230916050701.15480-1-rdunlap@infradead.org> From: MD Danish Anwar In-Reply-To: <20230916050701.15480-1-rdunlap@infradead.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Tue, 19 Sep 2023 01:32:46 -0700 (PDT) On 16/09/23 10:37, Randy Dunlap wrote: > When CONFIG_PTP_1588_CLOCK=m and CONFIG_TI_ICSS_IEP=y, > there are build errors when referencing PTP functions. > Fix this by making TI_ICSS_IEP depend on PTP_1588_CLOCK_OPTIONAL. > Also, since TI_ICSSG_PRUETH selects TI_ICSS_IEP and selects don't > follow dependencies, make the former also depend on > PTP_1588_CLOCK_OPTIONAL. > > Fixes these build errors: > > aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx': > icss_iep.c:(.text+0x234): undefined reference to `ptp_clock_index' > aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_exit': > icss_iep.c:(.text+0x634): undefined reference to `ptp_clock_unregister' > aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_init': > icss_iep.c:(.text+0x1848): undefined reference to `ptp_clock_register' > > Fixes: c1e0230eeaab ("net: ti: icss-iep: Add IEP driver") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Closes: lore.kernel.org/r/202309151207.NPDMiINe-lkp@intel.com > Cc: Roger Quadros > Cc: Md Danish Anwar > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: netdev@vger.kernel.org > --- > drivers/net/ethernet/ti/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff -- a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig > --- a/drivers/net/ethernet/ti/Kconfig > +++ b/drivers/net/ethernet/ti/Kconfig > @@ -189,6 +189,7 @@ config TI_ICSSG_PRUETH > select TI_ICSS_IEP > depends on PRU_REMOTEPROC > depends on ARCH_K3 && OF && TI_K3_UDMA_GLUE_LAYER > + depends on PTP_1588_CLOCK_OPTIONAL > help > Support dual Gigabit Ethernet ports over the ICSSG PRU Subsystem. > This subsystem is available starting with the AM65 platform. > @@ -200,6 +201,7 @@ config TI_ICSSG_PRUETH > config TI_ICSS_IEP > tristate "TI PRU ICSS IEP driver" > depends on TI_PRUSS > + depends on PTP_1588_CLOCK_OPTIONAL > default TI_PRUSS > help > This driver enables support for the PRU-ICSS Industrial Ethernet This doesn't apply cleanly on netdev/net (using git am) as the dependency on PTP_1588_CLOCK_OPTIONAL in TI_ICSS_IEP is already added by [1]. However the dependency on PTP_1588_CLOCK_OPTIONAL in TI_ICSSG_PRUETH is not added yet and can be added by this patch. With this, Reviewed-by: MD Danish Anwar [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=a8f367f7e131 -- Thanks and Regards, Danish