From patchwork Thu Aug 24 13:52:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ingo Rohloff X-Patchwork-Id: 13364223 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6262C27C40 for ; Thu, 24 Aug 2023 13:53:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ndFTKnv1Vx8og1gy2OlGsP3QfceChwU0Tg8pCYFj+MA=; b=dRwnQdqwpiWk1PsYBneE2SF4Rg S39vMUxaD4SbNL0v4NyHjo04gloXwmvTtAaGoatM+/4G6BZSVPBcs2NZvg8seH4YR4roQLKgavKPO woIv7DxpxFlvzo/VQ3awH8m7MW4kGCDayhHt2re74Dyzo58JAaJWtVOlJbCub9FF+28uTWfRCkRsS QmJ4ZlUSFszeUwIYMi2Wr0sMwlM8NHQsmUSSLHiOlnxa4gmbC8Hz5/hE7iVg1JXF5Ae3UsbtpmWWW Fe+g01Mo3Shg/A0J8CgP0agE2+jj+d94Vt9sIJl7y9CCs+rZUNSNpjhATB0syJaSduEps4orJj7xO Q2tus5sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZAly-003Boc-25; Thu, 24 Aug 2023 13:53:18 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZAlv-003BoA-2J for linux-mediatek@lists.infradead.org; Thu, 24 Aug 2023 13:53:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1692885186; x=1693489986; i=lundril@gmx.de; bh=8Sx7IfXlBO0nta4oj0WEvvvCjn730eqgmmBBj0HjAFU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=BgzbE1huFHb321k8fNMvsJwKqJQDzncGEUxP0X/3tvxLRGmwgD2VL6acsZljG23fVH1yO7P Ck5i2IgFzDpqCKAldmRDBx/lengphmwfS4+zI+raBL9kbZwVayk1lwu5uVBvhkTAc9bV+0zQt KRAQ1iycZordIGbVDNf7R/TS7qlZXIROsBLjXCWZFBaKlgd1LblsBmP214U400N+5xqkQpBs5 93hbxwJ74kuPvLsS2fazoo5NUxx0NaaR47n/5jt6TjcWVPnmxk91CvpI9xnLSHPzubDHXCJPf 4kynPJ5pRaw81BtRM8Wl/b+pv/aN3Wnrt+vO4RAQzUFK5yBgnF5g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from flatline.fritz.box ([82.135.64.125]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCbIn-1qPW8Q3LzX-009kcv; Thu, 24 Aug 2023 15:53:05 +0200 From: Ingo Rohloff To: Felix Fietkau , Ryder Lee Cc: linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org, Ingo Rohloff Subject: [PATCH] wifi: mt76: mt7921e: Support MT7992 IP in Xiaomi Redmibook 15 Pro (2023) Date: Thu, 24 Aug 2023 15:52:32 +0200 Message-Id: <20230824135232.5000-1-lundril@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1: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EI8Nyz5DI0Zzc8A11HyN3hq 75zTHfltgNgpBfY0ZuPxU0MGp31sfYMUkUABMme0PguTwM/qsUYL3+pv5GbycqAfNLbqSSHlV 8snU/XfP3HhBK8WuCQe+f9P5ArV7eBj/FRuZ1RZFSEXdtXI3Sp7IDV5KBmdCFrNQC2QJdf1ug ZA3Nzg86rRpOU2fyrWwItCAFLZw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230824_065316_054574_28BB1065 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org In the Xiaomi Redmibook 15 Pro (2023) laptop I have got, a wifi chip is used, which according to its PCI Vendor ID is from "ITTIM Technology". This chip works flawlessly with the mt7921e module. The driver doesn't bind to this PCI device, because the Vendor ID from "ITTIM Technology" is not recognized. This patch adds the PCI Vendor ID from "ITTIM Technology" to the list of PCI Vendor IDs and lets the mt7921e driver bind to the mentioned wifi chip. Signed-off-by: Ingo Rohloff --- drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 2 ++ include/linux/pci_ids.h | 1 + 2 files changed, 3 insertions(+) -- 2.25.1 diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c index 95610a117d2f..ed5a220763ce 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c @@ -17,6 +17,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, 0x7922), .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM }, + { PCI_DEVICE(PCI_VENDOR_ID_ITTIM, 0x7922), + .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM }, { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0608), .driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM }, { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616), diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 2dc75df1437f..c2d5c482cd7d 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2126,6 +2126,7 @@ #define PCI_VENDOR_ID_MYRICOM 0x14c1 #define PCI_VENDOR_ID_MEDIATEK 0x14c3 +#define PCI_VENDOR_ID_ITTIM 0x0b48 #define PCI_DEVICE_ID_MEDIATEK_7629 0x7629 #define PCI_VENDOR_ID_TITAN 0x14D2