[PATCH 02/10] wifi: mt76: connac: add support to load firmware for mt7990
Shayne Chen
shayne.chen at mediatek.com
Tue Apr 1 06:25:45 PDT 2025
Hi Ping-Ke,
On Mon, 2025-03-31 at 04:40 +0000, Ping-Ke Shih wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> Shayne Chen <shayne.chen at mediatek.com> wrote:
> > --- a/drivers/net/wireless/mediatek/mt76/mt76_connac.h
> > +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac.h
> > @@ -232,9 +232,14 @@ static inline bool is_mt7992(struct mt76_dev
> > *dev)
> > return mt76_chip(dev) == 0x7992;
> > }
> >
> > +static inline bool is_mt7990(struct mt76_dev *dev)
> > +{
> > + return mt76_chip(dev) == 0x7993;
>
> It seems like patch 01/10 want to avoid this kind of confusion.
>
This helper is added in mt76_connac.h, which can be used by mt76 common
part and mt7996 per-chip folder.
> Also, there are two IDs for MT7990:
>
> #define MT7990_DEVICE_ID 0x7993
> #define MT7990_DEVICE_ID_2 0x799b
>
These two are only used by mt7996 per-chip folder.
Regards,
Shayne
> > +}
> > +
> > static inline bool is_mt799x(struct mt76_dev *dev)
> > {
> > - return is_mt7996(dev) || is_mt7992(dev);
> > + return is_mt7996(dev) || is_mt7992(dev) || is_mt7990(dev);
> > }
> >
More information about the Linux-mediatek
mailing list