Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp927359lqb; Wed, 17 Apr 2024 15:22:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0nGYdYz93QZLt5ylzEiZ/CqJnAYUHDtdcQk5XkVRTrB901NBqgsF4a00TnKlGHl57gXKjDuthrjCRZi33r63qp1zccJp9ALei7Zf4/w== X-Google-Smtp-Source: AGHT+IFbz/wcmA6A9v8Jh54E8Ps046cFFt2mdq4mGTkq2v9DyP5WOv8OBgXTDVC3UJ1eL61spxQl X-Received: by 2002:a17:90a:5298:b0:2a7:4e38:70e9 with SMTP id w24-20020a17090a529800b002a74e3870e9mr749509pjh.13.1713392546750; Wed, 17 Apr 2024 15:22:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713392546; cv=pass; d=google.com; s=arc-20160816; b=AQmuEkCz4SSdtBjOsX3jeF0Uv0R7Llj8qPbONRW75HIF4Y3Jqva5IgPGQENwJV/Ota fVG+T9r20O+KNrwl9e30cr14Q72Qyfh9Z5vRHVURASWLxRnHpJ+rSD8/gTX0mT7tsAOg quv/Pd83fdusPqbQ0nzH/NvCzPtQ5kororwtSSHX9ZtkDHjPmpA/HAFvbqXDyK840I3w SkW5osl51XzCbW6sqT9pvg8iG4+8XEhnvB6Z62x6zt3SQ5jd+DffVwg5End71g1PC43n Nwq4WQxDUPtsIEzwmGHSBE7Ok0NPiRhpyBXmnrbb2jOKmW/SGXxeT89tGOy/OVY/T8Rv fsLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=uSCnoH/PG/sLJ5/4iIf/l5rM69YNjTgXqhE0iC8PjJU=; fh=MOC04rTtggF35S5QaeZpD/fOO0Y9MB//BvBLq4axmZc=; b=PnU8t7gPUYP5Z6SoV6B1PwtVoM07IOPKfzytxBD8cIbjiGPUZc6Q/xOnk7m5UvUdt0 gkrk9jHWf8AfQ4HF7eN1V5xOsQn2PKzz0S7jXRPOwtl8c3FBARV4j85Mjek/S5qzjmvd YixR1jivvWddU8Na1d3YwV+IueQN8vgczkubvAgaDIqNQYuSI/9/J/LC5E6R9cyZoFLV At//L4gu3Pfk2YTr15twF/oWS70VI+TYyEeFvz7XSXd2oqiA4bsUtDMTA9KQq+iZB3AD fK/Ekq6Fm0w692oxMiUS6WpXkWOg6z0g7XCrwiPQCgxW/nNv/XIWK+snN2HuG1/tOuKK MrFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VezAkQXD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s18-20020a17090aad9200b002abb8a187dcsi228893pjq.0.2024.04.17.15.22.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 15:22:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VezAkQXD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6467-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 87D55B20F4F for ; Wed, 17 Apr 2024 22:21:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1E893770D; Wed, 17 Apr 2024 22:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VezAkQXD" X-Original-To: linux-wireless@vger.kernel.org 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 CC2B01E484 for ; Wed, 17 Apr 2024 22:21:15 +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=1713392475; cv=none; b=a1w9ibR3j04ntn62dLMBGJIAklIcMAaH0Xe38f/S5N0woefgdVNh2qLXjb+Ql8cCRxh/sLiIhunWVWeGWJj+QmUwfu0ZugkzCtix7lbyB/q2+hpaRwYN1sNAv2KH9wp7vXfWY4C5oq+fSj6iD3ynAS9iFqxskP/4W6emdIICjeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713392475; c=relaxed/simple; bh=+BAMojwjadnSVQR4EfI2pK9waO2X2I20TlzjslDl02U=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HbZG9Dkm2oosQHQoDq5LiaFfxQIdTnMlJmlplDOeVdjimKSeY20H5FR9LAhsDA1KD//RPxOEVnDO9zsizuAOmvRWw/bzT7o8rmQlzH8exQW1lzEQrvNYQqPOfDXSRkUnb/qtyuAKs9YPVaaPi4VPm3mSUmRysCdkppvL9dPyTw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VezAkQXD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54E16C072AA for ; Wed, 17 Apr 2024 22:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713392475; bh=+BAMojwjadnSVQR4EfI2pK9waO2X2I20TlzjslDl02U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VezAkQXDloa+HDoGyJmUuhFB4eJk1guhNZMNlXGZeZjhhls3vRB8ixK8DkxF7drMj CLTkx5PtKAkWxTRq3E+b6H8VmD3dM4k6t1xP+iiGEXrs1PJuPTuTPIc5ROiDPwqTip KckyD9hvgyYBQgLdX4pD//+V0FbSwS8f/KDrjfUEWay8uYZ/Ec+OHa5MsFIj9HuK/N Ud9XHFznb4t1uXL6L9l0x4DVgwntnIv8BgH3/5jUhrOd1PnY+Jvp+xxlxFvh2zuoqR dSy00kpCeenb4w+142Kt9kWODVb3SZBq1Mqt+4UO+hlU2arknRzOmNF2wIRD0ucjFQ DeRKHlZZdFkhQ== Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-516e3103d92so40744e87.0 for ; Wed, 17 Apr 2024 15:21:15 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVQltC9IHTS9imgVEvFMGRyu83g0y5YNvohBfVSRTCL18F7B06PGFFv4dwiCtc6bo7i6ltLr3+kXvRDfrGDsH8ubjVQ9nP+MS6xGSa/v0g= X-Gm-Message-State: AOJu0YxPdwrZw3evVhE2KPiV1aLLnbXXQSGItBQhrA8KTn7jFe0jCiW1 a+1uCDtbdD+aGC9g0w7tmGb4lssAl+8/ncZT0SAdAbMQNGWfpk5HhvW3T178eLSe+NUIjloRK9i rOGqRWbjv895ie+gBaQke/9WCCmQ= X-Received: by 2002:a19:4302:0:b0:513:30fd:2991 with SMTP id q2-20020a194302000000b0051330fd2991mr271662lfa.0.1713392473669; Wed, 17 Apr 2024 15:21:13 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240307110815.527-1-mingyen.hsieh@mediatek.com> In-Reply-To: <20240307110815.527-1-mingyen.hsieh@mediatek.com> From: Sean Wang Date: Wed, 17 Apr 2024 15:21:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] wifi: mt76: mt7925: ensure 4-byte alignment for suspend & wow command To: Mingyen Hsieh , Felix Fietkau Cc: lorenzo@kernel.org, deren.wu@mediatek.com, Sean.Wang@mediatek.com, Soul.Huang@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, Quan.Zhou@mediatek.com, Ryder.Lee@mediatek.com, Shayne.Chen@mediatek.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi nbd, I'm aware that the patch has been merged into the mt76 tree though. Could you assist in updating the commit message for the patch in the mt76 tree by including the appropriate "Fixes" tag and CC to the stable tree? like Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips") Otherwise, the mt7925 cannot operate correctly. Sean On Thu, Mar 7, 2024 at 3:08=E2=80=AFAM Mingyen Hsieh wrote: > > From: Ming Yen Hsieh > > Before sending suspend & wow command to FW, its length should be > 4-bytes alignd. > > Signed-off-by: Ming Yen Hsieh > --- > drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 1 + > drivers/net/wireless/mediatek/mt76/mt7925/mcu.h | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drive= rs/net/wireless/mediatek/mt76/mt76_connac_mcu.c > index af0c2b2aacb0..ef29d093f9c3 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c > @@ -2527,6 +2527,7 @@ int mt76_connac_mcu_set_hif_suspend(struct mt76_dev= *dev, bool suspend) > __le16 tag; > __le16 len; > u8 suspend; > + u8 pad[7]; > } __packed hif_suspend; > } req =3D { > .hif_suspend =3D { > diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.h b/drivers/ne= t/wireless/mediatek/mt76/mt7925/mcu.h > index 2a0bbfe7bfa5..b8315a89f4a9 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.h > +++ b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.h > @@ -535,7 +535,7 @@ struct mt7925_wow_pattern_tlv { > u8 offset; > u8 mask[MT76_CONNAC_WOW_MASK_MAX_LEN]; > u8 pattern[MT76_CONNAC_WOW_PATTEN_MAX_LEN]; > - u8 rsv[4]; > + u8 rsv[7]; > } __packed; > > static inline enum connac3_mcu_cipher_type > -- > 2.18.0 > >