From: Kyle Switch <kyle.switch@motor-comm.com>
To: Julian Braha <julianbraha@gmail.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: Wed, 17 Jun 2026 10:41:25 +0800 [thread overview]
Message-ID: <89ca7f16-4528-4dfa-8b08-3eb7a0a65057@motor-comm.com> (raw)
In-Reply-To: <eeacfa0d-9303-407f-8e8a-ecc95d1ab1c8@gmail.com>
On 6/15/26 23:01, Julian Braha wrote:
> 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.
Ans: agreed, i will fix this later.
>
> - Julian Braha
next prev parent reply other threads:[~2026-06-17 2:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-15 11:12 Kyle Switch
2026-06-15 11:34 ` Andrew Lunn
2026-06-17 2:00 ` Kyle Switch
2026-06-17 9:19 ` Andrew Lunn
2026-06-15 15:01 ` Julian Braha
2026-06-17 2:41 ` Kyle Switch [this message]
2026-06-15 15:56 ` Andrew Lunn
2026-06-15 18:55 ` David Yang
2026-06-15 19:27 ` David Yang
2026-06-17 2:37 ` Kyle Switch
2026-06-17 9:07 ` Andrew Lunn
2026-06-18 9:53 ` Kyle Switch
2026-06-18 11:10 ` Andrew Lunn
2026-06-18 12:44 ` David Yang
2026-06-17 11:15 ` David Yang
2026-06-18 9:59 ` Kyle Switch
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=89ca7f16-4528-4dfa-8b08-3eb7a0a65057@motor-comm.com \
--to=kyle.switch@motor-comm.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=julianbraha@gmail.com \
--cc=kuba@kernel.org \
--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
all inboxes | Powered by JetHome®