From: Cai Xinchen <caixinchen1@huawei.com>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: <andrew+netdev@lunn.ch>, <davem@davemloft.net>,
<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next] dpaa2-switch: Add depend on FSL_DPAA2_ETH to FSL_DPAA2_SWITCH
Date: Mon, 9 Mar 2026 19:18:16 +0800 [thread overview]
Message-ID: <83b7b096-987c-4fdd-a8d2-a5758a537347@huawei.com> (raw)
In-Reply-To: <gjtjhvka6azuahiga6o5a4dgg2gm7dae3io5fbvjjmbovgxrfr@pqgfhzon6tbb>
Yes, it is better solution. I will send v2. Thank you.
On 3/4/2026 6:23 PM, Ioana Ciornei wrote:
> On Tue, Mar 03, 2026 at 01:38:14AM +0000, Cai Xinchen wrote:
>> When CONFIG_FSL_DPAA2_ETH=n, dpaa2 cannot be compiled. Thus Add
>> depend on FSL_DPAA2_ETH to FSL_DPAA2_SWITCH in Kconfig
> There is no code dependency between the dpaa2-switch driver and the
> dpaa2-eth one, just a compile time one dictated by how
> freescale/Makefile includes the dpaa2/ folder.
>
> How about we always include the folder and let dpaa2/Makefile handle
> what objects to include depending on the individual Kconfig options?
> Something like the diff below:
>
> --- a/drivers/net/ethernet/freescale/Makefile
> +++ b/drivers/net/ethernet/freescale/Makefile
> @@ -22,6 +22,5 @@ ucc_geth_driver-objs := ucc_geth.o ucc_geth_ethtool.o
> obj-$(CONFIG_FSL_FMAN) += fman/
> obj-$(CONFIG_FSL_DPAA_ETH) += dpaa/
>
> -obj-$(CONFIG_FSL_DPAA2_ETH) += dpaa2/
> -
> +obj-y += dpaa2/
> obj-y += enetc/
>
> And I just realised that commit 84cba72956fd ("dpaa2-switch: integrate
> the MAC endpoint support") included dpaa2-mac.o in the driver switch
> objects but didn't amend the Kconfig to specify that PCS_LYNX, PHYLINK
> and FSL_XGMAC_MDIO should be selected. Could you please also fix that as
> a separate patch? Otherwise, I can take care of it.
>
> Thanks!
prev parent reply other threads:[~2026-03-09 11:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 1:38 [PATCH -next] dpaa2-switch: Add depend on FSL_DPAA2_ETH to FSL_DPAA2_SWITCH Cai Xinchen
2026-03-04 2:21 ` Jakub Kicinski
2026-03-04 10:23 ` Ioana Ciornei
2026-03-09 11:18 ` Cai Xinchen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83b7b096-987c-4fdd-a8d2-a5758a537347@huawei.com \
--to=caixinchen1@huawei.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=ioana.ciornei@nxp.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox