Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4604038pxb; Tue, 31 Aug 2021 08:58:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCtXdGbmtzvFHzMFwWsBmsEyYPy8hzWKubmqKNS+gvKY59afvbFspZSF8kUSR7Ib1MI36I X-Received: by 2002:a17:906:6445:: with SMTP id l5mr31688478ejn.194.1630425490532; Tue, 31 Aug 2021 08:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630425490; cv=none; d=google.com; s=arc-20160816; b=uBD4KdLSMNVYcM0Vzdvw1D7UIfHwvOuqya3cmnVcahdYMWlJ7I0UpsPbPf3vEopJ7v KqYFgpJvN5A0nBkHYHBKKmti7Z9zvfHIyM7qMKe1TpHmOulzPVvDsVYBN+IhAauMU7KG YLXIDC2Q5pfX/1nmgQ33So2+iHnf8AQGqTV6uhv+diBM+B4KoKrNHl8lG1BYGq7qnpe2 bm/tK4FukmU+j8mSPSxGn3ejXAAlCi6ogepSnNplPdO9+VtE7rzXo8h7jkQFjcCwNcoQ rZnpENN4mx7K6xpLCjq2zlxpucZ6g65iRhl9BzLsmfbiAQWZvfJS0sFCxOHkqTqNBFLy LWkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ZyyNaiX06etLnuNq/mXRKAgNChcX2AcfaUJe3PP+qpI=; b=H8l402SRj0FM9w4SGocsqv67eoMDbW50LEgVMxyN5Q16U/vSLLkbiQNwMU89l0MKAz tV2ddXZeQCCr+WwcOc1y6qWJARbynwjCU4c5LPUOFbIbPTyADpJ8Z2rVZPEdaBwwjoni 3GJtPIwPzY506nZ/dWrDD935gaugzuGboycjDNUyzphSwdxIFMYCAW/YrqXJN572Umci yfgmRV70xYQwuak5JnUZZw2UuzzwOGCAErzsltcXLsiw/cnwjmwvmlaCgRtH8hPlRODV GkNXjwse55O8zw+mZDMZ/FdWOt7fe8zgBCcLxQFX/uEp6Ll6ZeHUTTbbamtzPA7esCq8 ki8g== ARC-Authentication-Results: i=1; mx.google.com; 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 bx2si14640380edb.292.2021.08.31.08.57.46; Tue, 31 Aug 2021 08:58:10 -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; 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 S234060AbhHaPxp (ORCPT + 99 others); Tue, 31 Aug 2021 11:53:45 -0400 Received: from mail-ua1-f46.google.com ([209.85.222.46]:43855 "EHLO mail-ua1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232421AbhHaPxo (ORCPT ); Tue, 31 Aug 2021 11:53:44 -0400 Received: by mail-ua1-f46.google.com with SMTP id j31so9966918uad.10; Tue, 31 Aug 2021 08:52:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZyyNaiX06etLnuNq/mXRKAgNChcX2AcfaUJe3PP+qpI=; b=tE1VarOetGLYK/R7lWP0VSnb/0FzjpchW/1UE6ofvPMOe+Nyu0OCiDB3Nn5wNYI3bS PATTAVgSqQ1VW4OuscDTz4FsTRQawynmCCUmpcbJOewgIqvnpMqL0qP/BLW3Yn1l3p3Y 350mdxyJAG2vNkiz8AtvDNQsB6TZMl6XLS3MOH5ohHzPiHIO67GYDh7NjpFUVSWhgRTC 1fndJAjXG/qWoEbzhwO/Z51gM39scQvFYvqlcvycIFGyYLRGCQ9HKW77bEmDVodH5S2W sB1aAElM2kOAcBVNdupL4vQ4rzX98/2wt5AzLA3J6cwe0YsO3clq8R+8YKALrfjQUBbP 3T2A== X-Gm-Message-State: AOAM532rZiKBtar1i/ocfYooG5CcAS2uktb1kB2PCV0VAfL25d+Ff7B3 gOFMSCpKxSoLVeaUDXxrKdZysAN1+8IZSHsPSWv2jAsqYks= X-Received: by 2002:a9f:35aa:: with SMTP id t39mr19076089uad.89.1630425168579; Tue, 31 Aug 2021 08:52:48 -0700 (PDT) MIME-Version: 1.0 References: <72bc8926dcfc471ce385494f2c8c23398f8761d2.1630415944.git.geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 31 Aug 2021 17:52:37 +0200 Message-ID: Subject: Re: [PATCH] net: NET_VENDOR_LITEX should depend on LITEX To: Joel Stanley Cc: "David S . Miller" , Jakub Kicinski , Gabriel Somlo , David Shah , Stafford Horne , Karol Gugala , Mateusz Holenko , Networking , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joel, On Tue, Aug 31, 2021 at 3:37 PM Joel Stanley wrote: > On Tue, 31 Aug 2021 at 13:21, Geert Uytterhoeven > wrote: > > LiteX Ethernet devices are only present on LiteX SoCs. Hence add a > > dependency on LITEX, to prevent asking the user about drivers for these > > devices when configuring a kernel without LiteX SoC Builder support. > > nak. > > They can be present on any soc that uses them. We have an example in > mainline already; microwatt uses liteeth but is not a litex soc. But liiteeth.c uses ? And https://github.com/enjoy-digital/litex can be used with a microwatt CPU core? The idea behind the LITEX config symbol was to gate off any driver using LiteX interfaces. > > Fixes: ee7da21ac4c3be1f ("net: Add driver for LiteX's LiteETH network interface") > > Signed-off-by: Geert Uytterhoeven > > --- a/drivers/net/ethernet/litex/Kconfig > > +++ b/drivers/net/ethernet/litex/Kconfig > > @@ -5,6 +5,7 @@ > > config NET_VENDOR_LITEX > > bool "LiteX devices" > > default y > > + depends on LITEX || COMPILE_TEST > > help > > If you have a network (Ethernet) card belonging to this class, say Y. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds