From patchwork Mon Mar 14 11:02:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 12780032 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EEE6C433F5 for ; Mon, 14 Mar 2022 11:03:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238756AbiCNLEK (ORCPT ); Mon, 14 Mar 2022 07:04:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238757AbiCNLEJ (ORCPT ); Mon, 14 Mar 2022 07:04:09 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A86E63DB for ; Mon, 14 Mar 2022 04:02:58 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id bn33so21251019ljb.6 for ; Mon, 14 Mar 2022 04:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w493K1WiqKcZmge3rtv/QGItEltc1mivQITChU2JpVk=; b=nTJcrzVroKckZXpun8BCHaJei0s7hUwmOly1CUC9IXxJDXBAU4Uu8Byn4QXDePIZI+ VBVeH6wo5eqkQf+3SgV5qXcaoBdhqORlipn25XDTCaq1opB1wkhK6eodh/aBSbpGwY/P CEfx4rkBQij0xjZgAwlmp5XRwAwwWJmUgxGPscR/mYZmMniq8HuHNYB9tetZSwImD5gj +vUVlEzvXPNjqi5ngsdqPH///z0At61QT7UYBc8fkCPQWaPMWjrNiJhbk7ZlKGRySjdm p+5dawIHojAjE7bIC9oaQaBsmBMKWKzZ5AV0EtOspYZ5PE8/aw7Fbs/37K868VAMFk6A NJ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w493K1WiqKcZmge3rtv/QGItEltc1mivQITChU2JpVk=; b=3dX6xvu1ZzCSn4BjLggisqfjFVyc8VeyJ/vegqDCPXZuZq33MFaIIe8NBs5FG1rzo1 YPWIHjU6hjRqRIRVrUHtPvtGqOdhmV7wzccP/yqnozh49ehlQYTey81EB2KGuE3LpruS EQCP462DSm23W15GFPJ2xH/E5lpvA+sBJ5XfhC37u8kISOw6gWGFL1a5DK/t/i3sGjg8 XqfDbYH5MBoKT/3bJ/sH4Ovz7vXndJtMd0cuv+jpE5hViN5qjuey7jY40T6qeUYQmjc8 3huQpvfVM/v9eC4jervywuOJ6RdKBfGsMkB4hcdurNHPACeKt+Cbkf+qcvmxD7xzuLq9 SJVg== X-Gm-Message-State: AOAM5339ISxNRJHQHosNuzgjvoqlE3bEIAafdqBm2DO1zsBUAdaA323y HeKWixQ8gUu+1RFPJw1pM2YRFw== X-Google-Smtp-Source: ABdhPJwTeUdm/n3CP0uLMywChE3nB1rcsKA4y1OMjaLOdZ9qXK2UacWWJI9cabwaEQxkWag6Uv0bNQ== X-Received: by 2002:a2e:864b:0:b0:248:321:f13a with SMTP id i11-20020a2e864b000000b002480321f13amr13858282ljj.210.1647255776808; Mon, 14 Mar 2022 04:02:56 -0700 (PDT) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id w30-20020ac2599e000000b0044824f72b1esm3219517lfn.110.2022.03.14.04.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 04:02:56 -0700 (PDT) From: Anders Roxell To: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell , kernel test robot Subject: [PATCHv2] net: phy: Kconfig: micrel_phy: fix dependency issue Date: Mon, 14 Mar 2022 12:02:54 +0100 Message-Id: <20220314110254.12498-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org When building driver CONFIG_MICREL_PHY the follow error shows up: aarch64-linux-gnu-ld: drivers/net/phy/micrel.o: in function `lan8814_ts_info': micrel.c:(.text+0x1764): undefined reference to `ptp_clock_index' micrel.c:(.text+0x1764): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ptp_clock_index' aarch64-linux-gnu-ld: drivers/net/phy/micrel.o: in function `lan8814_probe': micrel.c:(.text+0x4720): undefined reference to `ptp_clock_register' micrel.c:(.text+0x4720): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ptp_clock_register' Rework Kconfig for MICREL_PHY to depend on 'PTP_1588_CLOCK_OPTIONAL'. Arnd describes in a good way why its needed to add this depends in patch e5f31552674e ("ethernet: fix PTP_1588_CLOCK dependencies"). Reported-by: kernel test robot Fixes: ece19502834d ("net: phy: micrel: 1588 support for LAN8814 phy") Signed-off-by: Anders Roxell Reviewed-by: Andrew Lunn --- drivers/net/phy/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 902495afcb38..ea7571a2b39b 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -220,6 +220,7 @@ config MEDIATEK_GE_PHY config MICREL_PHY tristate "Micrel PHYs" + depends on PTP_1588_CLOCK_OPTIONAL help Supports the KSZ9021, VSC8201, KS8001 PHYs.