Message ID | 20230127221323.2522421-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1070611wrn; Fri, 27 Jan 2023 14:18:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXu4M+2gZPh3CTHu3bW/i3XUs+S5j4bHeR/UJ9Z4tRAuOyQS+nUswcBhkL3rkWKKsQySA/vA X-Received: by 2002:a17:906:2402:b0:874:e17e:2526 with SMTP id z2-20020a170906240200b00874e17e2526mr37512739eja.72.1674857887773; Fri, 27 Jan 2023 14:18:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674857887; cv=none; d=google.com; s=arc-20160816; b=Y/Izs/2hXm1oC4PUteiyoa+pC/LRrgMB0o9jwEKtOVw+TzxHjMxS8kUKQGWq4PY8pg DdASF0ZTpzCUvMqlaSLSbnqM0gqEnT19uLBquc7TqDwa3IYkcRPWWMoHFS2fz6dJm1oz xfgGjda0r6jzYoOXDCUe0qeU+CwMHXgwG87Yvd6UCKeAsY6dCqzRWFcA3IcS2S2Sk04D saEpqMDYbGdKMFL4CfBecxtIvKypD4kQ72ujEoS70AI+CwUNSLeA4O/KFpf7/jt8W26s 3EkUgNL13gXFtHbys5XuBvb7+mBcfs8vzDks63Ix7HRrU80wD9IxRrx82mUTnp7Td0AA a6cQ== 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=koCDrVX1RqzSpqv+5fSQF1vAFHOVyEI6vkilFy0hQ7A=; b=czQ80GB+E1oGFleqKKIEkPKMVcVlWUvS2wqYZb3opbQCU2EbzBjIDDc9s9289HYjgV umffU2mp114PFuFOQQi6++kUzOfM0CwNBM5WoOFWJf+bR813V2mqgXnj0+JzSdSTNsNd huG9CIG6/wAHZsApRws4CXchSwPd/5n90J4hDiiQQA1Bdc5gbmbogQegUbo+hDIlutEm 7MFFIjgUX/iBctKtslUXfrwH64BeFWV+3x8vKR+PS2jniVnue+deeoVRqh+u1xHxG+zw aybyDenO5EloVlpo+lEVac4e3V8Ngq5BJgg/vdZRzSxYq1ucgBIQ/UxyD+1fKiaR5wbs Ws1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GsvgBSO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k30-20020a50ce5e000000b0049e283e04d6si6895138edj.21.2023.01.27.14.17.41; Fri, 27 Jan 2023 14:18:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GsvgBSO9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbjA0WNe (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 17:13:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231701AbjA0WNd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Jan 2023 17:13:33 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4770684FBF; Fri, 27 Jan 2023 14:13:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DF7EEB821FE; Fri, 27 Jan 2023 22:13:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C53BC433D2; Fri, 27 Jan 2023 22:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674857609; bh=erjVZPguZWWRU7zYaS/0T0cYT+4Oqh4S2R3jRj0Wtes=; h=From:To:Cc:Subject:Date:From; b=GsvgBSO99BxV+RsUDHX+W1o5oWOHGb2vzyYK1Fbip5D3/HVfrxz3qT32sIeZLbK2w Iy+e5TegkffYOpK/DLerZCL4WYDdX3stH4dD8eDtRD/3mwvZ5J4tFKu8YfPbyitAMy zPThVY6Zl4xrN5Y+t5nFKbza5dU0fnFSKH8qarz+lfbxjKkdll6FZolZyTD9pyPLia /P98DZuhvVapAhPiGQGPgBFXwtqDNO6uFf8D+lD2yRfmddzBNjhzlVxGD/MT0lOMUp c35C+e9jiflhVPOGVN/JeOYQ7jF7vg1QHRgtkkdoqw0w3Rd7iN64/LwN6zY80k/MqP PgOw00JwRymRQ== From: Arnd Bergmann <arnd@kernel.org> To: Woojung Huh <woojung.huh@microchip.com>, UNGLinuxDriver@microchip.com, Andrew Lunn <andrew@lunn.ch> Cc: Arnd Bergmann <arnd@arndb.de>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Richard Cochran <richardcochran@gmail.com>, Arun Ramadoss <arun.ramadoss@microchip.com>, Jacob Keller <jacob.e.keller@intel.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: dsa: microchip: ptp: add one more PTP dependency Date: Fri, 27 Jan 2023 23:13:03 +0100 Message-Id: <20230127221323.2522421-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756215784516572611?= X-GMAIL-MSGID: =?utf-8?q?1756215784516572611?= |
Series |
net: dsa: microchip: ptp: add one more PTP dependency
|
|
Commit Message
Arnd Bergmann
Jan. 27, 2023, 10:13 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> When only NET_DSA_MICROCHIP_KSZ8863_SMI is built-in but PTP is a loadable module, the ksz_ptp support still causes a link failure: ld.lld-16: error: undefined symbol: ptp_clock_index >>> referenced by ksz_ptp.c >>> drivers/net/dsa/microchip/ksz_ptp.o:(ksz_get_ts_info) in archive vmlinux.a Add the same dependency here that exists with the KSZ9477_I2C and KSZ_SPI drivers. Fixes: eac1ea20261e ("net: dsa: microchip: ptp: add the posix clock support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/net/dsa/microchip/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On Fri, Jan 27, 2023 at 11:13:03PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > When only NET_DSA_MICROCHIP_KSZ8863_SMI is built-in but > PTP is a loadable module, the ksz_ptp support still causes > a link failure: > > ld.lld-16: error: undefined symbol: ptp_clock_index > >>> referenced by ksz_ptp.c > >>> drivers/net/dsa/microchip/ksz_ptp.o:(ksz_get_ts_info) in archive vmlinux.a > > Add the same dependency here that exists with the KSZ9477_I2C > and KSZ_SPI drivers. > > Fixes: eac1ea20261e ("net: dsa: microchip: ptp: add the posix clock support") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Richard Cochran <richardcochran@gmail.com>
On Sat, Jan 28, 2023, at 00:58, Richard Cochran wrote: > On Fri, Jan 27, 2023 at 11:13:03PM +0100, Arnd Bergmann wrote: >> From: Arnd Bergmann <arnd@arndb.de> >> >> When only NET_DSA_MICROCHIP_KSZ8863_SMI is built-in but >> PTP is a loadable module, the ksz_ptp support still causes >> a link failure: >> >> ld.lld-16: error: undefined symbol: ptp_clock_index >> >>> referenced by ksz_ptp.c >> >>> drivers/net/dsa/microchip/ksz_ptp.o:(ksz_get_ts_info) in archive vmlinux.a >> >> Add the same dependency here that exists with the KSZ9477_I2C >> and KSZ_SPI drivers. >> >> Fixes: eac1ea20261e ("net: dsa: microchip: ptp: add the posix clock support") >> Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > Acked-by: Richard Cochran <richardcochran@gmail.com> The randconfig builder just found another regression in the same driver, I'll have to send a new version, so please disregard this one for now. Arnd
diff --git a/drivers/net/dsa/microchip/Kconfig b/drivers/net/dsa/microchip/Kconfig index 0546c573668a..11920939b6d8 100644 --- a/drivers/net/dsa/microchip/Kconfig +++ b/drivers/net/dsa/microchip/Kconfig @@ -36,6 +36,7 @@ config NET_DSA_MICROCHIP_KSZ_PTP config NET_DSA_MICROCHIP_KSZ8863_SMI tristate "KSZ series SMI connected switch driver" depends on NET_DSA_MICROCHIP_KSZ_COMMON + depends on PTP_1588_CLOCK_OPTIONAL select MDIO_BITBANG help Select to enable support for registering switches configured through