From patchwork Sun Feb 11 06:11:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 199385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1832394dyd; Sun, 11 Feb 2024 00:40:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoEZJXFcTMfLAcjkPjbidPQMrnM5ouUpn9wdJHrOwDvXzu6ume0Rweij6hZapSmlvxj7bR X-Received: by 2002:ac8:5890:0:b0:42c:715d:a2d3 with SMTP id t16-20020ac85890000000b0042c715da2d3mr1779424qta.44.1707640811559; Sun, 11 Feb 2024 00:40:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707640811; cv=pass; d=google.com; s=arc-20160816; b=00yZHwxkANkt6RqNqaU69LWh65WfPx6ifOn2E1axHgBRA9i75FQtQTf/KROveOtqLp UuFujMbVovAP+W93FlDLAvJlV595A3XbLyfxH2rtnxmQPmBn0BvEv2EuhEesTUjL+VYy jmw3bFx/O+hMIkypN9PdvkPDbXqQRV3aDIg899HELSHjrSo077Pl5KtdxXfjWXgCkpxa XWztDRZ71TdNQK0UWEXMEsywTEkqmw/5LHlvzbOfpGSHDwzB6khDwAuIeLy5pIYLm+mj rrWCPomthQpTX8EwsrHyeO48rwUbK5nZnru8aB+OZEJ6t/Hk7Cpqw5pPvoPwx+Ulu9Yy fUog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=uDkJxhoZtG6KpR3Q/PoQfQNM2zj8tnJOgXtpsXtp2n8=; fh=QLcBa3nzA6qFlGoglDk8fCbWAvOdpXEj5h+DatKMqp0=; b=iP4VI165FiSveTONa/vjfiX7ZnETcD3gpRgbzjiW1Ze3IGffWJVkwLhgwBDlxWaZRu AqdqsZmSePgmejdoZ6KdcjtBNE1y9SEK9rbY25vYIpZbTh8giKNIY3ZRsMB7wdXu3WPa q9AxETt7nAHieBDBaHOfworiHNj4cghMSIeDpEfXGOjZGbYrCdQOiQh6YOA2Q/GhVFOi rcndxSKQ8i3O8YJKBNcF29F6yljI2Ia63xrZYATCLuRoubIiHE3L6ggewVMv8pe7wTqM OQigAJNE0NWSbIf+MbgCzNpZsLUt0fqYju2t8J99Q11VgVeNyfBczeyq5Xm8G9M7n/qQ 9tFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dOVQIbsf; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-60640-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60640-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWH8KlHKpQWYfFOiNKmAIIdcnVx33wVkmJfBkGKiGjBasQhnXxHJj79lqJH6Bi/DaPX6JJYW+Pp/H5gCLb56+/Ku9abMQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f6-20020ac859c6000000b0042bf69979f1si6093337qtf.419.2024.02.11.00.40.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 00:40:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60640-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dOVQIbsf; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-60640-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60640-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 16FE51C2315E for ; Sun, 11 Feb 2024 06:12:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23B9117560; Sun, 11 Feb 2024 06:11:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="dOVQIbsf" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C7F9C1427B; Sun, 11 Feb 2024 06:11:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707631916; cv=none; b=ch6Qbv9Eo2tkPcavvaaral7DvI97nWJaD4+evKto6Okt2bNQOYW301Kq0yCSZ0OHzLni/DvDUdVfhQx0DMmElzJ5ytXm/AUNyArfYblmItd/dZ5gEHRW5ALTt/4LtKCqxl5dIOt+okSfr7eyOFI0EGwy9V6CaM+tmlaGTFa8X7Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707631916; c=relaxed/simple; bh=uiHv33UvQzWWqzhY4G02ngJ3pu97xmmsLDicdgZbIVs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SlTqgN8T/3yFitsA6ns22mGGoxkqMHox1HKS0gswcbR2MFgKLpBYbruJA9VCX0h56cIVv2nZQI+3E9pqHCqvGEFy7z06JxLWSUJ8JsXggKKz/Sk3KuOdp4VWjnNIfO15AtQC5mZ9bBF/Opg6bkoAQxlR168+HG+A6mDwD13GEFg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=dOVQIbsf; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=uDkJxhoZtG6KpR3Q/PoQfQNM2zj8tnJOgXtpsXtp2n8=; b=dOVQIbsfuKhD008h30Ze3q7kk4 VHdw8OQANyWUb27RDNMHu97gGYfQTLO0fh8/nU1mTCzJ5Rvkw9rWCsHQ102DC5Grw7RNCxEBokCNp BVkGxz86Jk1lmUWm+zmJjORHQjhZ2ygjxgKaVPXoap98ciF6nsyg726Ns6K5B21v2RIegcC03htOY EDDOxp2ItkamD2IjbBvouevULExDuLIEUmPtJAm1rLcXKRBXoD/RK0SfNtn52ogzeQ59SH1UPRp7/ 8aDWg+NgKLOWus5NE+Kp2yCuK5uk67WUYZi4WhpLotKzh2VBKVmGdaRnuVXqNR9U3ZStvpvoZCOP8 WBrJ7fjQ==; Received: from [50.53.50.0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZ34D-00000002OlB-1uSn; Sun, 11 Feb 2024 06:11:53 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Roger Quadros , Md Danish Anwar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: [PATCH] net: ti: icssg-prueth: add dependency for PTP Date: Sat, 10 Feb 2024 22:11:52 -0800 Message-ID: <20240211061152.14696-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790591171773479718 X-GMAIL-MSGID: 1790591171773479718 When CONFIG_PTP_1588_CLOCK=m and CONFIG_TI_ICSSG_PRUETH=y, there are kconfig dependency warnings and build errors referencing PTP functions. Fix these by making TI_ICSSG_PRUETH depend on PTP_1588_CLOCK_OPTIONAL. Fixes these build errors and warnings: WARNING: unmet direct dependencies detected for TI_ICSS_IEP Depends on [m]: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_TI [=y] && PTP_1588_CLOCK_OPTIONAL [=m] && TI_PRUSS [=y] Selected by [y]: - TI_ICSSG_PRUETH [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_TI [=y] && PRU_REMOTEPROC [=y] && ARCH_K3 [=y] && OF [=y] && TI_K3_UDMA_GLUE_LAYER [=y] aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx': icss_iep.c:(.text+0x1d4): 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+0xde8): 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+0x176c): undefined reference to `ptp_clock_register' Fixes: 186734c15886 ("net: ti: icssg-prueth: add packet timestamping and ptp support") Signed-off-by: Randy Dunlap 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: MD Danish Anwar --- v2: removed Rev-by: from Roger Quadros (patch has changed) added Rev-by: from MD Danish Anwar drivers/net/ethernet/ti/Kconfig | 1 + 1 file changed, 1 insertion(+) 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_K3_CPPI_DESC_POOL 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.