Netdev List
 help / color / mirror / Atom feed
From: Julian Braha <julianbraha@gmail.com>
To: Kyle Switch <kyle.switch@motor-comm.com>,
	mmyangfl@gmail.com, andrew@lunn.ch, olteanv@gmail.com,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: ming.xu@motor-comm.com, xiaolin.xu@motor-comm.com,
	jianmin.wang@motor-comm.com, de.ge@motor-comm.com
Subject: Re: [RESEND PATCH v1] net: dsa: motorcomm: add yt92xx dsa driver
Date: Mon, 15 Jun 2026 16:01:04 +0100	[thread overview]
Message-ID: <eeacfa0d-9303-407f-8e8a-ecc95d1ab1c8@gmail.com> (raw)
In-Reply-To: <20260615111235.3544282-1-kyle.switch@motor-comm.com>

Hi Kyle,

On 6/15/26 12:12, Kyle Switch wrote:

> diff --git a/drivers/net/dsa/motorcomm/Kconfig b/drivers/net/dsa/motorcomm/Kconfig
> new file mode 100644
> index 000000000000..f40d75e2a3f2
> --- /dev/null
> +++ b/drivers/net/dsa/motorcomm/Kconfig
> @@ -0,0 +1,30 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +
> +config MOTORCOMM
> +	tristate "Motorcomm YT92XX switch family support"
> +	depends on NET_DSA
> +	select FIXED_PHY
> +	help
> +	  This driver adds support for Motorcomm switch chips. It supports
> +	  YT921X and YT922X switch.
> +
> +choice
> +	prompt "Motorcomm switch series selection"
> +	depends on MOTORCOMM
> +
> +config MOTORCOMM_YT921X
> +	bool "Motorcomm YT921X series."
> +
> +config MOTORCOMM_YT922X
> +	bool "Motorcomm YT922X series."
> +endchoice
> +
> +config NET_DSA_MOTORCOMM
> +	tristate "Motorcomm YT92XX switch DSA driver"
> +	depends on MOTORCOMM
> +	depends on (MOTORCOMM_YT921X || MOTORCOMM_YT922X)
> +	select NET_DSA_TAG_MOTORCOMM
> +	select NET_IEEE8021Q_HELPERS if DCB
> +	help
> +	  Select to enable support for Motorcomm driver.
> +
> diff --git a/drivers/net/dsa/motorcomm/Makefile b/drivers/net/dsa/motorcomm/Makefile
NET_DSA_MOTORCOMM already depends on:
(MOTORCOMM_YT921X || MOTORCOMM_YT922X)
with both of those options depending on MOTORCOMM due to the 'choice'
that they're in, so this additional dependency on MOTORCOMM is
unnecessary.

You could also consider using a comment to document that this option is
depended on indirectly.

- Julian Braha

  parent reply	other threads:[~2026-06-15 15:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15 11:12 [RESEND PATCH v1] net: dsa: motorcomm: add yt92xx dsa driver Kyle Switch
2026-06-15 11:34 ` Andrew Lunn
2026-06-15 15:01 ` Julian Braha [this message]
2026-06-15 15:56 ` Andrew Lunn
2026-06-15 18:55 ` David Yang
2026-06-15 19:27   ` David Yang

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=eeacfa0d-9303-407f-8e8a-ecc95d1ab1c8@gmail.com \
    --to=julianbraha@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=de.ge@motor-comm.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jianmin.wang@motor-comm.com \
    --cc=kuba@kernel.org \
    --cc=kyle.switch@motor-comm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.xu@motor-comm.com \
    --cc=mmyangfl@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=xiaolin.xu@motor-comm.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