Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1914481pxy; Mon, 2 Aug 2021 13:45:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8UpJnM1YP/qxqdPYkVU6Wr6BL/Kao4lbbWUwwJRfDMPSq61uI2bTIKkNKgI2QayRd0whk X-Received: by 2002:a92:d112:: with SMTP id a18mr118694ilb.67.1627937121583; Mon, 02 Aug 2021 13:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627937121; cv=none; d=google.com; s=arc-20160816; b=06WKb57oeGWAVAWsCn59ROy38LVJB8smJRV6YJvN2fZ5ehsnMsBkZWQeeiRR+iPt+8 JQo2X57eluQrtYdaQ9QEzKWGI8WR1tdwDTPygNhapfTnRRn6Bbb35DYBhi1muWNi67U1 2DSGhbhmBzqyy/kTKNCVUvJ/tNNk9HeS/C5nSv3YCLGhKtsClXg6z+ZU2aVYIHwikCX6 vnpqFzM7DrC2Vsog/eqL9YtPSLDZv4GPC/NXTum570MbJd2qQJzswaIanRdwVHa8A0Pt +pCOwRlgLZaH6QIPoPeKrjsL/myXHQA6T1Cv0U6E1pvxF/xhE+613zMyWKtJ5dkjv0tT mQUg== 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:dkim-signature; bh=4V5A4oBxR9bPA2PDbtFNioxBxelRLvryns3xIbVwCHc=; b=mfrIZfBWdQncsSWnq2C+fo2aIH9ma3g/w3gPJ64H2Ose4gF1I1CzBey2p2laIlDgOy aWrI80QinQxGLKzS2WEMQPQ6PNhy2kdlcnY9X+C9WClVH/uKeU4KoAzQHwgVZtaYhRLq 2NQWI/ZinwtbsiqfKVdnsjPLcqIyue1RDZHH1nI7nWgnm+WmVwnEdlf5Wti0f0hIfX8D sy/BNGYSFtSr4E5riOcT++XZ5VCjRkjI8AJYQvERkShex/z07hRjxwPqjoISRfxmSyDI ETj+4VFo+7CJ4ek3gZn83/AE/wTL9hGOCS0GAH1T3GPHiigi388povCucoLWS7toGd73 CriQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PoGIkpks; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si12913045ioj.88.2021.08.02.13.45.10; Mon, 02 Aug 2021 13:45:21 -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=k20201202 header.b=PoGIkpks; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231516AbhHBUod (ORCPT + 99 others); Mon, 2 Aug 2021 16:44:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbhHBUoc (ORCPT ); Mon, 2 Aug 2021 16:44:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5555E610FB; Mon, 2 Aug 2021 20:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627937062; bh=Cgk3kYA9A8Fe0MkJ3IArEFUyV3QWUPaplz9QppWpzYc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PoGIkpksbdNTqmas5Ju8aLUJUHE2VXnHVa8u0mLqoN2DJk32IUxefe6dYWeC/czzZ kds8iS3SIy0lik0i1pUxupuF7uje/QNepPI9/UFJAJjchXS1Hg423x+rwi3487vWSw BJTT4dGKGpW9AlIortl1ak1nLqlUcQbTWufkoQit7/u5ZnKjdNubBDwlMncwaj+HRX FrWYWp9QTyBy5pRggPCjnBX/h9tFlSrIYYxgZ61cna6Xrxvg/vHo75Q/dwQYwDHpdw f2wVjfy09ZhICzUtLky+KzPMfwXxeUf6tgYycrXcTXcGVlPDIYyCrvOhkoS7kzoPjr vBvFbf14YhhAw== Received: by mail-wm1-f49.google.com with SMTP id e25-20020a05600c4b99b0290253418ba0fbso759861wmp.1; Mon, 02 Aug 2021 13:44:22 -0700 (PDT) X-Gm-Message-State: AOAM532QX1RqqZRHbS9PBi70boEuo8EoLD/dOOjqJpiBCRfN1/rSF8F0 Prhwp3vzuDy/EOBq5ECFI8w1F4UOvYXqPeqjJ9s= X-Received: by 2002:a05:600c:3b08:: with SMTP id m8mr712652wms.84.1627937061005; Mon, 02 Aug 2021 13:44:21 -0700 (PDT) MIME-Version: 1.0 References: <20210802144813.1152762-1-arnd@kernel.org> <20210802162250.GA12345@corigine.com> <20210802190459.ruhfa23xcoqg2vj6@skbuf> <20210802202047.sqc6yef75dcoowuc@skbuf> In-Reply-To: <20210802202047.sqc6yef75dcoowuc@skbuf> From: Arnd Bergmann Date: Mon, 2 Aug 2021 22:44:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] switchdev: add Kconfig dependencies for bridge To: Vladimir Oltean Cc: Simon Horman , "David S. Miller" , Jakub Kicinski , Arnd Bergmann , Saeed Mahameed , Leon Romanovsky , Jiri Pirko , Ido Schimmel , Ivan Vecera , Parav Pandit , Networking , linux-rdma , Linux Kernel Mailing List , "oss-drivers@corigine.com" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 2, 2021 at 10:21 PM Vladimir Oltean wrote: > > On Mon, Aug 02, 2021 at 09:55:20PM +0200, Arnd Bergmann wrote: > > On Mon, Aug 2, 2021 at 9:05 PM Vladimir Oltean wrote: > > > > > > On Mon, Aug 02, 2021 at 08:29:25PM +0200, Arnd Bergmann wrote: > > > > If this looks correct to you, I can submit it as a standalone patch. > > > > > > I think it's easiest I just ask you to provide a .config that triggers > > > actual build failures and we can go from there. > > > > This one is with an arm64 allmodconfig, plus > > > > CONFIG_PTP_1588_CLOCK=y > > CONFIG_TI_K3_AM65_CPTS=y > > CONFIG_TI_K3_AM65_CPSW_NUSS=y > > Yeah, ok, I remember now, I saw that TI_CPSW_SWITCHDEV is tristate, and > incorrectly thought that TI_K3_AM65_CPSW_SWITCHDEV (which is mostly a > copy-paste job of the main cpsw anyway, makes you cringe that they wrote > a separate driver for it) is tristate too. Right. > The options are either to make TI_K3_AM65_CPSW_SWITCHDEV tristate like > TI_CPSW_SWITCHDEV is, and to edit the Makefile accordingly to make > am65-cpsw-switchdev.o part of obj-$(CONFIG_TI_K3_AM65_CPSW_SWITCHDEV), This probably won't work as this is currently part of the ti-am65-cpsw-nuss.ko module, so I would assume that it's not easy to separate from the main module. > or to extend the BRIDGE || BRIDGE=n dependency to TI_K3_AM65_CPSW_NUSS > which is the direct tristate dependency of CONFIG_TI_K3_AM65_CPSW_SWITCHDEV, That would work, but it's slightly more heavy-handed than my proposal, as this prevents TI_K3_AM65_CPSW_NUSS from being built-in when BRIDGE is a module, even when switchdev support is completely disabled. > and to make CONFIG_TI_K3_AM65_CPSW_SWITCHDEV simply depend on BRIDGE. This would not be needed then I think. Arnd