Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2981865pxj; Mon, 17 May 2021 14:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytnAjSxRAiOf4nyVEYGq+jTs9EF1V+6oDNtXHRDMTuK3Bk/4FMcksMEcgL/w1wupBwO4qp X-Received: by 2002:a05:6638:1a9:: with SMTP id b9mr1977996jaq.97.1621288155608; Mon, 17 May 2021 14:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621288155; cv=none; d=google.com; s=arc-20160816; b=k3dGeMiomZXgAxnSbcVXM7gEwSyOMES7HXagbM0TE3yyS8dSX3ibgUL1hAmyBOpG01 zMEfzesGMWbbt20yh6eR71rJGoyKNm92kvboEhjoPkvIGGN5ZlbGxSGH67mMGwRHaI+5 nzFOnqxhUenCv8uWxX19SYSSAkvqSFXBMM24cc9EsQ/tqldXmroYyKoygyjIDyVU3zVt bNbGFMCU3rTjNNqU7czzhV113tSzt13Q25bh+3CWWf5d047F06ZiIxzmmQDWDGzm6il1 +NvqhXuYXpwgsBNI9QsvKrwUa1CzB7c88jRZ8FBf9tbdR/nGleycjwccdi6N5RIAJBy0 haDg== 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=6h/0IIHMp/A0Lfcfm84/3EEGtVVjO5IBr+IajmWor+I=; b=iheDP3TAoXLHV2NZHTDvAveeYEJbeyjLRFFZxh3e/aC7A/vCrSbP7JSP4jcA0INajr TrOhYDD7U1Nf1Mjkj8uw0TrK8R5eUFALzqtOwD+VUO4WzbHgyGaMS+L3DtzyHbcQWsLz ym3vDPYlDLWvdGnYPhc/oMkWWZedfhGe88M7oH58Px9534lJVcZq2N88OxLMwcvfPZyj dotpVPsQ6lgp43IfqEFIlCoL+doZGN7sQyCMEgziuX3NrJVEIGYTdj1t4AIZTRzm1Cdu VY81cPymFuOKMprQtlwK7qly974BcH6zAECANUWXQm56n9hNQ3CoJv/TSEilOxpWkhqz 2LPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iamqZNho; 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 v19si1012075jan.91.2021.05.17.14.49.03; Mon, 17 May 2021 14:49:15 -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=iamqZNho; 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 S238271AbhEQOLo (ORCPT + 99 others); Mon, 17 May 2021 10:11:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238221AbhEQOJh (ORCPT ); Mon, 17 May 2021 10:09:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7AF9B61353; Mon, 17 May 2021 14:06:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260416; bh=4vldGFku7LwfIJmSZA2/UFDmjoW0JxY2jQPXpMy7jIM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iamqZNho8QeFpMZlHhSts60rD8XQF+a4arXG0HIZLSbKealZxoJAjBp+cTcBO3bfy Qu9TS2ZbzPN7ztucLnA0HIlspIrkHi6xnmJVPR2hDcOl1D3L3MpRLYM2lDXI4dc8GO Z83ZgEmAL3bJeuCYHJeTzgDtMJfn324aZJ+bnkRo= 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.12 064/363] mt76: mt7615: support loading EEPROM for MT7613BE Date: Mon, 17 May 2021 15:58:50 +0200 Message-Id: <20210517140304.771172903@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 2eab23898c77..6dbaaf95ee38 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