]> git.baikalelectronics.ru Git - kernel.git/commit
net: broadcom: Add PTP_1588_CLOCK_OPTIONAL dependency for BCMGENET under ARCH_BCM2835
authorYueHaibing <yuehaibing@huawei.com>
Fri, 25 Nov 2022 11:50:03 +0000 (19:50 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Dec 2022 04:37:03 +0000 (20:37 -0800)
commit5985b3c5686f199401912afa65d73af20c5812c7
tree57931129b0a9f512415f5e5735cc84f220a2f46c
parentda9a01153aa8043041277548b29b72faf1d78367
net: broadcom: Add PTP_1588_CLOCK_OPTIONAL dependency for BCMGENET under ARCH_BCM2835

commit df216c0661ba ("net: broadcom: Fix BCMGENET Kconfig") fixes the build
that contain 2e83424e2ee3 ("net: broadcom: Select BROADCOM_PHY for BCMGENET")
and enable BCMGENET=y but PTP_1588_CLOCK_OPTIONAL=m, which otherwise
leads to a link failure. However this may trigger a runtime failure.

Fix the original issue by propagating the PTP_1588_CLOCK_OPTIONAL dependency
of BROADCOM_PHY down to BCMGENET.

Fixes: df216c0661ba ("net: broadcom: Fix BCMGENET Kconfig")
Fixes: 2e83424e2ee3 ("net: broadcom: Select BROADCOM_PHY for BCMGENET")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20221125115003.30308-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/Kconfig