Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp692444ybg; Mon, 1 Jun 2020 11:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3bOboSyHyxWmWlbzNcdb/w+toV8lwdgDoVdoqPzjKXJD40NK039EJGxNHRvFEHhMKBKiI X-Received: by 2002:a17:906:4088:: with SMTP id u8mr21831181ejj.500.1591037402415; Mon, 01 Jun 2020 11:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591037402; cv=none; d=google.com; s=arc-20160816; b=Px6wNFL3SPNjbr1Ci5N31hyYyWiaqWB3wtiVyvPd4wK8WMqO+vQoxO4An5jcktxNUn qXIzd3ZdPs172wswGiX9PMan40SA0K742RqznGRTffYJJPHRP3jkXR3PSfu0k7W6yW4A wYrN/bco8NrsiGGM5EpGUKp35CFsqfaCl4yWbzLvB56rF6yt4mZ9iYEsg4WhgokZt2uU dm1Bx63x9Z5hiLzT77DlUr3JkEGMwZz/0uuJCixvStyvbHDeSo1t2OS0PrSXjsPlyQMX 45N0TDM36cJd/M8EyBpqXpmzZDPvdoNNhBpR+u2eo4gP0imAfgw5srrazAuOrcJoRDdT xnqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wbpOKMCgn67/LCTk03u+p8aVd9ffc8TANtzpEA/o+xU=; b=xgBqQy5L4Y0dosffVS6ZE35QJ4LzkP5fpIFs3Thlhe5x0BrOrvmG1Z+4t3bJo/t7wk K4kFM5+mT9fR33sNaegxOspuyFcrGR1jPw/Od+26cvBp+EAtFf2AddtNLfoSbQisQ4LR MHCF91lG3E58EwWVLylC9lK2zgVaiIahAizAgLSUzOlQTRSGalAcG42RqQ5FMYcnvITq uC9x4Uh8zzMCWpr6DJ/AlTsQjAWGdduOtN1Eer4spQEsxp8qbd4s8iLqa+82hGlch7/l VpZVU1A4mcoNCPfP7Q64skHmPrEnIu2IRfcvpcvSF7dRD77nom+M3IYW154YHOFyBgV/ daLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gepH6kou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr17si211056ejb.515.2020.06.01.11.49.39; Mon, 01 Jun 2020 11:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gepH6kou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729793AbgFASrz (ORCPT + 99 others); Mon, 1 Jun 2020 14:47:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:53936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730652AbgFASH5 (ORCPT ); Mon, 1 Jun 2020 14:07:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 34B85206E2; Mon, 1 Jun 2020 18:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591034876; bh=tirxYBNn+X1HyFht4y1bGde11FRf1xyzvDbSwH9iKUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gepH6kouOa9SJk0I0V38dPm0f/1eZMjeIOiZinHj75rACLeDgnt5WFMByaAz3KCj8 HToeVBGzHSuFGiT2E56YIr/eHFLTcU9VcQPUGDGOxrPzwnia3QsBqqk9zyyc1ddQ8o tK0iMgjSxgpZZXFtNy2XaNxQ0q9MMzKK3TlK4M2E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Florian Fainelli , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.4 051/142] net: freescale: select CONFIG_FIXED_PHY where needed Date: Mon, 1 Jun 2020 19:53:29 +0200 Message-Id: <20200601174043.092040249@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 99352c79af3e5f2e4724abf37fa5a2a3299b1c81 ] I ran into a randconfig build failure with CONFIG_FIXED_PHY=m and CONFIG_GIANFAR=y: x86_64-linux-ld: drivers/net/ethernet/freescale/gianfar.o:(.rodata+0x418): undefined reference to `fixed_phy_change_carrier' It seems the same thing can happen with dpaa and ucc_geth, so change all three to do an explicit 'select FIXED_PHY'. The fixed-phy driver actually has an alternative stub function that theoretically allows building network drivers when fixed-phy is disabled, but I don't see how that would help here, as the drivers presumably would not work then. Signed-off-by: Arnd Bergmann Acked-by: Florian Fainelli Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/freescale/Kconfig | 2 ++ drivers/net/ethernet/freescale/dpaa/Kconfig | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/net/ethernet/freescale/Kconfig b/drivers/net/ethernet/freescale/Kconfig index 6a7e8993119f..941c7e667afc 100644 --- a/drivers/net/ethernet/freescale/Kconfig +++ b/drivers/net/ethernet/freescale/Kconfig @@ -77,6 +77,7 @@ config UCC_GETH depends on QUICC_ENGINE select FSL_PQ_MDIO select PHYLIB + select FIXED_PHY ---help--- This driver supports the Gigabit Ethernet mode of the QUICC Engine, which is available on some Freescale SOCs. @@ -90,6 +91,7 @@ config GIANFAR depends on HAS_DMA select FSL_PQ_MDIO select PHYLIB + select FIXED_PHY select CRC32 ---help--- This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx, diff --git a/drivers/net/ethernet/freescale/dpaa/Kconfig b/drivers/net/ethernet/freescale/dpaa/Kconfig index 3b325733a4f8..0a54c7e0e4ae 100644 --- a/drivers/net/ethernet/freescale/dpaa/Kconfig +++ b/drivers/net/ethernet/freescale/dpaa/Kconfig @@ -3,6 +3,7 @@ menuconfig FSL_DPAA_ETH tristate "DPAA Ethernet" depends on FSL_DPAA && FSL_FMAN select PHYLIB + select FIXED_PHY select FSL_FMAN_MAC ---help--- Data Path Acceleration Architecture Ethernet driver, -- 2.25.1