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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B99D3C77B7F for ; Wed, 17 May 2023 10:41:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EAD598621A; Wed, 17 May 2023 12:41:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="brYLY4Y9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6378F8621D; Wed, 17 May 2023 12:41:35 +0200 (CEST) Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 46D0C86205 for ; Wed, 17 May 2023 12:41:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eugen.hristev@collabora.com Received: from eugen-station.. (unknown [46.8.172.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9CC78660563D; Wed, 17 May 2023 11:41:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1684320092; bh=Wk9/z51P6+DnHpIi478IiedFgdFORZKAuxcDzCubEVo=; h=From:To:Cc:Subject:Date:From; b=brYLY4Y9W1l4Frv2Zq/5aNMhLvmsXZcnM77fxCP2Jp2xN5vOawnoG66NTeJl0pjKg ka9Kkr1uIJ8loXnoRwvfPXJrHXq005/7RuA0HtKsdl3yYu77a7NMRoy5azOhr0/8HV eAfCu3MsTXjNW9RgyxP5a50d/xZPspt52tTEOrIwQ8kXOGbVcDZuH6wFfe2cyszToP Cho0S0eQ8ptLQ0RYebFz6SWdwjTIIEbJ2g4x4XmiKVtacrivhn3Qp2u29664b53hGK wIxN1/tKPN7EwPHj221jeJciq7coary5fN9qtBA9rKzi/hJHPGjJjiZIfr0u2jkiRn RNHn9oqpuqj3A== From: Eugen Hristev To: u-boot@lists.denx.de, rfried.dev@gmail.com Cc: Eugen Hristev Subject: [PATCH] net: rtl8169: add depends on PCI Date: Wed, 17 May 2023 13:41:24 +0300 Message-Id: <20230517104124.111075-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The rtl8169 driver uses calls to dm_pci_bus_to_phys, which are compiled under CONFIG_PCI. Without CONFIG_PCI, this happens: drivers/net/rtl8169.o: in function `rtl_recv_common': drivers/net/rtl8169.c:555: undefined reference to `dm_pci_bus_to_phys' It is only natural that this driver depends on CONFIG_PCI then. The device does not work connected in another way anyway, and the driver does not assume anything else at this moment. Signed-off-by: Eugen Hristev --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 09039a283eb5..39eee98ca79f 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -633,6 +633,7 @@ config RTL8139 config RTL8169 bool "Realtek 8169 series Ethernet controller driver" + depends on PCI help This driver supports Realtek 8169 series gigabit ethernet family of PCI/PCIe chipsets/adapters. -- 2.34.1