Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2375246lqp; Sun, 24 Mar 2024 16:32:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVA8F7K+VtqXP8vrqcRg0QJazba+vvVf6faaYfUjmJG11CNK7NJ8urZty3YFyZc9mK6ko2HNblgxHdHZyEBicm/uowCIB57bwsC5pwULA== X-Google-Smtp-Source: AGHT+IF2x3BlL+PVlbxLL5De2xQTrsLRTcBLt6d4JsN29YctDsZ9xTTMF7IdRmgUZ7hbFDwAXAk7 X-Received: by 2002:a9d:7754:0:b0:6e6:c615:c0f9 with SMTP id t20-20020a9d7754000000b006e6c615c0f9mr5621917otl.31.1711323151021; Sun, 24 Mar 2024 16:32:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711323150; cv=pass; d=google.com; s=arc-20160816; b=v0MGMbPe5pZrtipWef0QD2k3zAme/Lpvrd8watevdew4sjxTvPxpvS5AwLXG20oVyX 2Gw11avcSIwHnQvspu637CmRqXwPkBMSl9iA84ALSTGFzdkeQvv1tCNKZUZPf+DYF+pb Qt/nC7Goh2EICdOHlABA7yO2fgz2fW9Qr95a4SPDEwuDUpF7DdT0aB2+CN+1j08OlP2I rDpd6yeKvjpjxMPK8WOlQX6tCjIX9RPNsM/wuhMhXaLZ0n/5TpmVC4Jo8WYZM52FkCa9 IGeQykFIiXwxK8C6bzu49sG5m/acmWb7UDIckYtTG/MA0T9frpnBZVPBAQOEYyPkZzto mJyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PrPB9bwIwKHe6isZ6eYc4Z0+NgTwFcM5gQ7GvuoC8y0=; fh=0NpfvJQGIE5BEpk08RGqs25NKfaGBNj2FzgTiWywq+c=; b=CzvpG/rPrep/GlfYoV3zVZ2jed4SkN/rw5g+WOk39zsDt6190bRyD05rzeaWn03mQW 2ZvEX/1If/txjGQRTRo0G/fDe2zndO3dEi4PcuQ6TCo8W/XBOxLlq8XVlXHue/jkBFMm 5aCmQ4RB2XY5u4fUK5oOFRjCHL12OwCDBhfrkFJfUy/6/6sl8VbftwddIIOCPVi2f9q6 5vklIH7iq0AANrW1YXsPh6h4x8GbTG3BWjFepQRij49UoXLobZWZQ9pVrQvZETZXPQXB rvbca/Gs5uk1g6KGQ1tEl+FbZCsh8O5OQqzHiv2kEof4YCiNV37nHR8GmWItC10/HLQZ CqBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ox5T8wlA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r24-20020a63ce58000000b005c220a94525si6390171pgi.90.2024.03.24.16.32.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:32:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113135-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=@kernel.org header.s=k20201202 header.b=ox5T8wlA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 1D542281A20 for ; Sun, 24 Mar 2024 23:28:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8588C84D19; Sun, 24 Mar 2024 22:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ox5T8wlA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 99D7016FF5D; Sun, 24 Mar 2024 22:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319942; cv=none; b=HEFREiziFlK5oM1SnD+6QvIxRkZR3Dwo4QCwdswfvDpU3BQnrkV2p1UmtuwQgpRdRIkScUJBlsDvMnmR9MKtEu6ktu+ao02cEyjvPxWu6TORzQwo8cbiqrP2w+Na065XJjO8x+QGuK9moMz3lcMp0SPAAFcYWnpiujPJtC/hohM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319942; c=relaxed/simple; bh=xM4m3mZYXN/V90A7kAeayvG5Mdp5nbzjpe3S7nwJfrI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kbEgjBkO3CUuYonxk6MWWNlRHFn5qWqN18JX5tkUT2de1TKA/8C1ku7aaLKN+tPTxaqzc/Bp6Ri4PfeEnDvF4ZUjNcBc+3XkyVrsuZm69HFtqEgzwMBBx8XDa7UGbbDMRGir+P6mY+aHetRo8r3qL22wBDUreh+T0bcbI9pFaF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ox5T8wlA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4A6FC433F1; Sun, 24 Mar 2024 22:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319942; bh=xM4m3mZYXN/V90A7kAeayvG5Mdp5nbzjpe3S7nwJfrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ox5T8wlAG90H6AAtRc8Vg1AP2E/Ioxd82J8iu3QvQ6Op3g+tv0Ceyyda563IwVy4D bezG3lLgFf2yUUeuKRHatj5IDxJoMqrQM+Ktf6jQJG6N1u2pyyNolyLI7sX3d2MVNP igv5DpsBUT/B20VvaJYxnKKBbQSShDvedYFlORLVtiS3OrXJO7i9jI0dyTwjLqFHNY syky4kepiKBJpFOnhoASJmDX5eR+lz7hclPY/kC0XktnxyjBW/xufX+rbbq+TtC2co 0Dwc8axo/Ftpwxv0nNWB2wjRADo5YU/EN274SG+ZeokYDaqq/t7lFrOtpveVmMwpdo VFbQDtmRJhLmg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: StanleyYP Wang , Shayne Chen , Felix Fietkau , Sasha Levin Subject: [PATCH 6.8 248/715] wifi: mt76: mt7996: fix efuse reading issue Date: Sun, 24 Mar 2024 18:27:07 -0400 Message-ID: <20240324223455.1342824-249-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: StanleyYP Wang [ Upstream commit d3ad99be7cc2d174126d908addd6bea2b157aa75 ] The efuse data starts from the 48th bytes instead of 64th bytes in the returned event skb. Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: StanleyYP Wang Signed-off-by: Shayne Chen Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c index 66351c19dbe41..9e70b960086ac 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c @@ -3551,7 +3551,7 @@ int mt7996_mcu_get_eeprom(struct mt7996_dev *dev, u32 offset) u32 addr = le32_to_cpu(*(__le32 *)(skb->data + 12)); u8 *buf = (u8 *)dev->mt76.eeprom.data + addr; - skb_pull(skb, 64); + skb_pull(skb, 48); memcpy(buf, skb->data, MT7996_EEPROM_BLOCK_SIZE); } -- 2.43.0