Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp281661pxj; Tue, 18 May 2021 03:19:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN3RwtG02iTTrKG/pAuuowcMmstam2ewD09mRBCI54tpEPmdurYAPSxo8PJ76ldwr5ZAIF X-Received: by 2002:a17:906:84d:: with SMTP id f13mr5361472ejd.451.1621333142961; Tue, 18 May 2021 03:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621333142; cv=none; d=google.com; s=arc-20160816; b=ejA+GcLMil2DeF59A5UO5hnH+bWuFcdSZMUmc2RVoSkdRMQGBwUgcFi5oXZru23DZ9 kX9RFHgY74ED0b4WkOAjPWK4N5OPZyH/sotyMscr2KVsaIOLYPC/zR5JtoqH/MBPHhFZ VanrKz4HDut6buDd+zvF4xdZhoW8lPzArCzjt6wOfKrMf+dEN0HnbhZVy1VzpU5kR10v jBROztbQBcnd2bZxQgYb0LGiisrN1tIyCuvRElTRmKJbf4caF20pbxbhHrxu/beY876+ SF7gkgeVBFCfhXmltzZKR98dSJ1Y13/mmVpvTT5EKG6+gKFY3pYAN7xGt1DezqGe4+q0 XZ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SxU9701kadJK7GxjxTpOsTj4GxOKcprKXF/9Qdtt09k=; b=rGugT4+03qWUaoeOVErpr1Ogmj4jgF4PGlOhYjMtqk20FvHL52Ng+cvWgS8ohBP2Xd 5D4WwQqoc0WC2d7qX0N/nya9VTPDK3dRNIiU3I/IG4V2uRjT2tHMDPfv6cddsehFcs2z udz1UqRL4O/o+opRu7TFVboePVkOSmXtLayLQKzQGSNSjYgkOoLYf8MVfXOfuVtz+IGs 7oeC84YZT6NxkDDkfnzWusOfKPUJyZMeRUREYGv9Xt010P43T3yNVuqBIyeUim2io/kJ GKFwT/6U5QuezRHMLZYh8jrdY0KRrn4hxtBhh9JQD63CdV8nSCXtc3jC1u5k8SDsCp9p wokQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=foAnSfG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kd16si6162838ejc.373.2021.05.18.03.18.39; Tue, 18 May 2021 03:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=foAnSfG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243139AbhEQPNR (ORCPT + 99 others); Mon, 17 May 2021 11:13:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:60352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241038AbhEQPCr (ORCPT ); Mon, 17 May 2021 11:02:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F215461A0F; Mon, 17 May 2021 14:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261660; bh=PYEZy+o/d4XEqCxocBCi/YNgBQBtU3X4yF0Be6Eo66o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=foAnSfG16UlbMgqMp5o9lRtlOHp0y7gV50E6bT3KMa6KUhHoIrfePKsMQdKdQaw1R bmo5XYqXnDR/PE8ksJGY1tB+ir/jlP5IYJONF8gnvmA5TYL3ceJr71b1hWjU3BGWYq WRlgGBgBgeY54uiTF0YI68Tn7mquS+mzM/HNsKXc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Georgi Vlaev , Stijn Segers , Sander Vanheule , Felix Fietkau , Sasha Levin Subject: [PATCH 5.10 048/289] mt76: mt7615: support loading EEPROM for MT7613BE Date: Mon, 17 May 2021 15:59:33 +0200 Message-Id: <20210517140306.816969180@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sander Vanheule [ Upstream commit 858ebf446bee7d5077bd99488aae617908c3f4fe ] EEPROM blobs for MT7613BE radios start with (little endian) 0x7663, which is also the PCI device ID for this device. The EEPROM is required for the radio to work at useful power levels, otherwise only the lowest power level is available. Suggested-by: Georgi Vlaev Tested-by: Stijn Segers Signed-off-by: Sander Vanheule Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c index f4756bb946c3..e9cdcdc54d5c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c @@ -86,6 +86,7 @@ static int mt7615_check_eeprom(struct mt76_dev *dev) switch (val) { case 0x7615: case 0x7622: + case 0x7663: return 0; default: return -EINVAL; -- 2.30.2