Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3833546rdb; Thu, 28 Dec 2023 01:08:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjbEJ1E++cK3aUvCmTl7pDzHg7HhvpcLWExLzzhvyFCTVWtcUllO8V8TyoCsNxXA8ySSsa X-Received: by 2002:a17:90a:2a41:b0:28a:c84d:1366 with SMTP id d1-20020a17090a2a4100b0028ac84d1366mr2830649pjg.71.1703754485979; Thu, 28 Dec 2023 01:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703754485; cv=none; d=google.com; s=arc-20160816; b=ssRjBpVNNPsOWc3zbb/4oGRSQEQVp+Vg7dJfoRSLhzuy0rmDFLFNDwL3V/yKnoa7Ts kmk8NL8JGlNgs1twgZC8PLi9IK4M+Ma5R+k3P5Nl8KsSvm6jq5hoG9mwf0ZZuk046Hmu iR0LG4unmNuuq9fEnqOOYKr0uGp4qWWvRNMWIuwI7dXzZWT1CiJSHrJcjX375sSvxXP0 W+jVzNLv5Px/fUWZGE5UTTqgRQvwiTm4zDAbJqIo1MzOOKAxZoB3fsBMp4wWMpzXTKyJ bC1L5QusTmUCY+RgOr1rpAZLU0f2vHQH1Hb+fPgyvX3HbtsECpOkpDksjSpHH1c0GLIw H+cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b4LLyhkjg4cwRh1xP5HIgpBm/KrPFXrynWR8/DKhh80=; fh=xmX3nUiCDRywM7GN/jnkxEI0WXifvWaaBmhMyTMYa4c=; b=JEtcxrDgjmtxOSU1r1EvBRPgQXJqGG5/xG+0Dcj+k0NvuvKTopQ2QmFSJUNHamSX4E U3Tq447itbggjahrL4M9yQiBlhkUqcYAs37+u21lCZlgse0ONUXFcAK/SkDye9PuZ3fw gMWjMWD6bzvYMz6+tKmKSb+j6Pk8u21WC88XKhL6zJrmlAGdswswXtbjq2oonBqUE+SV 3haDbbTnxM8ITVRYVKHSO3eT0W6sA6DKWawk0YuUr/7tf57Iz0/Q0z+5sBseoLvouFMf H0WCnL1xgWgqmyvHY0MKRwTs7dNKDIHzYwJbRXDdfgfMfTv7k8ci19EG2nfqnxDLz3Vd qtEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=I35qjbM6; spf=pass (google.com: domain of linux-wireless+bounces-1296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i10-20020a17090ad34a00b0028c05d2a976si10831415pjx.120.2023.12.28.01.08.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 01:08:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=I35qjbM6; spf=pass (google.com: domain of linux-wireless+bounces-1296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A00F128279D for ; Thu, 28 Dec 2023 09:08:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 471966FAB; Thu, 28 Dec 2023 09:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="I35qjbM6" X-Original-To: linux-wireless@vger.kernel.org Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 508136ADC for ; Thu, 28 Dec 2023 09:07:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 94ae7f60a56011eea2298b7352fd921d-20231228 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=b4LLyhkjg4cwRh1xP5HIgpBm/KrPFXrynWR8/DKhh80=; b=I35qjbM6zi/u0gvCVOW1DV19L6beMScwDKMOi2GRuFuhzQjYBPZJzD3QuXNIh5GmSQmOHkzdQzAA1oiOpIBlRgO/xItJ0ic6JsV9ggDo/PXdBrPMD4MrGFOreV6p4vqn7ff5upMM/Kh4U/dkTaXjLKD5cTdMxn9CcNfZ3NzsjJk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:e965a531-c2a8-4c8f-aeac-e5f0a375856a,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:5d391d7,CLOUDID:a17ca98d-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 94ae7f60a56011eea2298b7352fd921d-20231228 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1620390296; Thu, 28 Dec 2023 17:07:52 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 28 Dec 2023 17:07:52 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 28 Dec 2023 17:07:52 +0800 From: Mingyen Hsieh To: , CC: , , , , , , , , , , , , , , Ming Yen Hsieh Subject: [PATCH 05/10] wifi: mt76: mt7925: fix fw download fail Date: Thu, 28 Dec 2023 17:07:44 +0800 Message-ID: <20231228090749.15191-6-mingyen.hsieh@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231228090749.15191-1-mingyen.hsieh@mediatek.com> References: <20231228090749.15191-1-mingyen.hsieh@mediatek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain From: Ming Yen Hsieh Add an address of fw region for fw download. Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips") Signed-off-by: Ming Yen Hsieh --- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c index 96494ba2fdf7..d7ef3c574d41 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c @@ -66,7 +66,7 @@ int mt76_connac_mcu_init_download(struct mt76_dev *dev, u32 addr, u32 len, if ((!is_connac_v1(dev) && addr == MCU_PATCH_ADDRESS) || (is_mt7921(dev) && addr == 0x900000) || - (is_mt7925(dev) && addr == 0x900000) || + (is_mt7925(dev) && (addr == 0x900000 || addr == 0xe0002800)) || (is_mt7996(dev) && addr == 0x900000) || (is_mt7992(dev) && addr == 0x900000)) cmd = MCU_CMD(PATCH_START_REQ); -- 2.18.0