From patchwork Sat Sep 16 05:07:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 140990 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1531065vqi; Sat, 16 Sep 2023 00:35:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5ppPFDU09nAL7LAK7tEGEHsEzVuPtnl4cOb+vdBADJARSLXgcZZL2RS6rA00gJucCOnTq X-Received: by 2002:aa7:8317:0:b0:68f:a92a:8509 with SMTP id bk23-20020aa78317000000b0068fa92a8509mr7893793pfb.7.1694849728804; Sat, 16 Sep 2023 00:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694849728; cv=none; d=google.com; s=arc-20160816; b=Xlu89xHoH6+3s9dbLDwBSiTnOr2LXofp7JOo+iFH8xl2EHqj++HrdtNLkBrA43g6FV Y9mYzDTdztz1LOWLXDaLXJBf2s6CLkXuAgMs1Um+hbssG4d7Zhr0339CkN+RJh2/XkUU IOpT2WKnSnmbANgyTsSEfzb6ACOMC/t+TVqt/6GIteUSp18lHInT0skw3utPwHfdb/l6 KjJ5/wCc003oJ8geMebY8YMr3ltS6Kwx50CzNMqte7vTda+UU52g4JqxBElEYOJl1yel k4fNIFjx1ekWHfE0yWuJ6JeWmdsFI+K+vIelbcr3HZ6SdT+6/a2VQFusjq4UIjaNJ8fV Ijfg== 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=vCIxxdvf/dqUjZgY4hxlo2HkzPv50wadYLt6wlCZc9g=; fh=eTOmQbc0QdmiyweStj7S+DB4Gmqc4OlNz6i+PGa7JtU=; b=hd/t6feyDkkorUSc+Emw/v0Rvjca8nVfTeyJxNTX9UKCRXnwnKt0E/2CWTpCv5TXAK pwzTLQcBmlpSvunLO5uVIeOvxCJGlU5gh59j6c5QZ46OYEZLhhd6uj3Z3BPO7pD0pfv7 Wwu2NHO+C3Cn1Yk6qVBoFv+T0+TbVoCBYNGWun9chCg+f2BxujcEn4n8/E01eS1bCgeF hRbsaLJAfB1SX5dakKvLVhGDsHtc53slud9+bJZcmUpG+89+r0731CIUvRKFvFmMgohq 55/vWL1FtItiS3dqK+isLvJ9/EeKecSElPhCbJXm6lASd5d0CYWEd2nPdQWRfgm/lIgz HoDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZiSeVCm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w6-20020a056a0014c600b0068fdff873f6si4734908pfu.173.2023.09.16.00.35.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 00:35:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZiSeVCm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 64E5783339EE; Fri, 15 Sep 2023 22:08:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232557AbjIPFHW (ORCPT + 27 others); Sat, 16 Sep 2023 01:07:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230304AbjIPFHK (ORCPT ); Sat, 16 Sep 2023 01:07:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8218A19AE; Fri, 15 Sep 2023 22:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=vCIxxdvf/dqUjZgY4hxlo2HkzPv50wadYLt6wlCZc9g=; b=ZiSeVCm5t5xoyb+HL4zuwKrIOy 0PkBGMWL/UFQtBrmvbLEigH+WgLa0v0WO/4ZIYfmhri3dpCNd+CWJ1E8VsAQfG+GFs0BezQm1lJYG DCvYIf16UMTB38nbnyOnXBQ6TZZYXs0kW6rfouTuROwBHyssvVNpqmC/zUNEYlgsOACk69oOhaIFL 3XSj64Nc8isU5I8TljRqPBKhWB5w53quULjNJcveZVQDviZcAHMADvNu53sxKMeE1ZdiTiHdENm6b MFcvVEKJzXsvD9pU85NYdmiGtF21GSyinSyT2ub7DlWqjSNhLcWAiFpPhIm9oFDiVzxGUrjPEUsld iz8R712g==; Received: from [2601:1c2:980:9ec0:e65e:37ff:febd:ee53] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qhNWK-00BxBO-1l; Sat, 16 Sep 2023 05:07:04 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Roger Quadros , Md Danish Anwar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: [PATCH] net: ti: icss-iep: add dependency for PTP Date: Fri, 15 Sep 2023 22:07:01 -0700 Message-ID: <20230916050701.15480-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Fri, 15 Sep 2023 22:08:06 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777178749127283515 X-GMAIL-MSGID: 1777178749127283515 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 Reviewed-by: Roger Quadros Reviewed-by: MD Danish Anwar --- 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