[PATCH v2 net-next 3/9] net: ethernet: mtk_eth_soc: add MTK_NETSYS_V1 capability bit
Lorenzo Bianconi
lorenzo.bianconi at redhat.com
Sat Jul 15 09:12:11 PDT 2023
> On Thu, Jul 13, 2023 at 03:18:23AM +0100, Daniel Golle wrote:
> > From: Lorenzo Bianconi <lorenzo at kernel.org>
> >
> > Introduce MTK_NETSYS_V1 bit in the device capabilities for
> > MT7621/MT7622/MT7623/MT7628/MT7629 SoCs.
> > Use !MTK_NETSYS_V1 instead of MTK_NETSYS_V2 in the driver codebase.
> > This is a preliminary patch to introduce support for MT7988 SoC.
>
> Rather than using capability bits for versions, would it make more
> sense to use an integer for this, so you can do:
>
> if (eth->soc->netsys_version >= 2) {
> version 2 and later stuff
> } else {
> previous version stuff
> }
>
> ?
>
> I'm just thinking ahead to when we end up with stuff that v1 and v2
> need but v3 and later don't.
ack, I will fix it.
Regards,
Lorenzo
>
> --
> RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20230715/241f10b4/attachment.sig>
More information about the Linux-mediatek
mailing list