diff mbox series

[1/1] wifi: mt76: mt7921: Add a new VID/PID 0b48/7922 for MT7922

Message ID 20231101095533.45258-1-tom@baremetal.dev
State New
Headers show
Series [1/1] wifi: mt76: mt7921: Add a new VID/PID 0b48/7922 for MT7922 | expand

Commit Message

Tom Waldron Nov. 1, 2023, 9:55 a.m. UTC
Add VID/PID 0b48/7922 for MediaTek MT7922 wifi chip.
Change tested on Redmi Book Pro 15 2023 (Fedora 38).

Signed-off-by: Tom Waldron <tom@baremetal.dev>
---
 drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Kalle Valo Nov. 1, 2023, 1:19 p.m. UTC | #1
Tom Waldron <tom@baremetal.dev> writes:

> Add VID/PID 0b48/7922 for MediaTek MT7922 wifi chip.
> Change tested on Redmi Book Pro 15 2023 (Fedora 38).
>
> Signed-off-by: Tom Waldron <tom@baremetal.dev>

Should I take this to wireless? Felix&Lorenzo, ack?
Tom Waldron Nov. 1, 2023, 2:03 p.m. UTC | #2
Yes, it seems I missed some of the output from get_maintainer.pl and
only caught the last few lines. I've CC's some of the others including
Felix & Lorenzo.

Thank you for spotting this, Kalle.


On Wed, 1 Nov 2023 at 13:19, Kalle Valo <kvalo@kernel.org> wrote:
>
> Tom Waldron <tom@baremetal.dev> writes:
>
> > Add VID/PID 0b48/7922 for MediaTek MT7922 wifi chip.
> > Change tested on Redmi Book Pro 15 2023 (Fedora 38).
> >
> > Signed-off-by: Tom Waldron <tom@baremetal.dev>
>
> Should I take this to wireless? Felix&Lorenzo, ack?
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Lorenzo Bianconi Nov. 1, 2023, 3 p.m. UTC | #3
> Add VID/PID 0b48/7922 for MediaTek MT7922 wifi chip.
> Change tested on Redmi Book Pro 15 2023 (Fedora 38).
> 
> Signed-off-by: Tom Waldron <tom@baremetal.dev>
> ---
>  drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
> index 3dda84a93..ba805cb02 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
> @@ -21,6 +21,8 @@ static const struct pci_device_id mt7921_pci_device_table[] = {
>  		.driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
>  	{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616),
>  		.driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
> +	{ PCI_DEVICE(0x0b48, 0x7922),
> +		.driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },

is PCI VID 0x0b48 PCI_VENDOR_ID_ITTIM?

Regards,
Lorenzo

>  	{ },
>  };
>  
> -- 
> 2.41.0
>
Lorenzo Bianconi Nov. 1, 2023, 3:35 p.m. UTC | #4
> PCI VID 0x0b48 doesn't appear to be listed anywhere I can find, though
> a website named pcilookup.com suggests it belongs to TechnoTrend AG. I
> think it's more likely to be part of AMD RZ600 series - rebranded
> mediatek devices. Not sure how any of this might be verified.

I have just found it here: include/linux/pci_ids.h
but I am not sure if it is related. Anyway:

Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>

> 
> On Wed, 1 Nov 2023 at 15:00, Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> >
> > > Add VID/PID 0b48/7922 for MediaTek MT7922 wifi chip.
> > > Change tested on Redmi Book Pro 15 2023 (Fedora 38).
> > >
> > > Signed-off-by: Tom Waldron <tom@baremetal.dev>
> > > ---
> > >  drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 2 ++
> > >  1 file changed, 2 insertions(+)
> > >
> > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
> > > index 3dda84a93..ba805cb02 100644
> > > --- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
> > > +++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
> > > @@ -21,6 +21,8 @@ static const struct pci_device_id mt7921_pci_device_table[] = {
> > >               .driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
> > >       { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616),
> > >               .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
> > > +     { PCI_DEVICE(0x0b48, 0x7922),
> > > +             .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
> >
> > is PCI VID 0x0b48 PCI_VENDOR_ID_ITTIM?
> >
> > Regards,
> > Lorenzo
> >
> > >       { },
> > >  };
> > >
> > > --
> > > 2.41.0
> > >
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
index 3dda84a93..ba805cb02 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
@@ -21,6 +21,8 @@  static const struct pci_device_id mt7921_pci_device_table[] = {
 		.driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
 	{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616),
 		.driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
+	{ PCI_DEVICE(0x0b48, 0x7922),
+		.driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
 	{ },
 };