Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp487495lqi; Thu, 7 Mar 2024 03:18:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVSgFv5kqg15Jj/4VjtPv3Z9nlpwVqUEq1cBX27fWQ+4YlRSVmSl30JnkzYPIA66m+TR5jOKia19luP5PGjc9aco8C4xVE5UW/6bZ59QA== X-Google-Smtp-Source: AGHT+IERFemYWTqSD8alMwxM34EnGLSDI2bPqnsXdIm/eRUNMQFO9G8KOXW9bsR6apbaW5HyuUoW X-Received: by 2002:a17:90a:4cc6:b0:29b:91a2:ee9d with SMTP id k64-20020a17090a4cc600b0029b91a2ee9dmr805422pjh.24.1709810313102; Thu, 07 Mar 2024 03:18:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709810313; cv=pass; d=google.com; s=arc-20160816; b=PGxrOAezCcO/FNYSDwcI+3iM4BAQhTi3NbfcaISdBKYQXWeH/KcgoHPQ1oV550H0oC EmCrqawWOK9GDp+K1OEFGlixrDtbmx8YdiE0jWqRJyxhreYvhtvFKxbnDTjFb0vmDyfN bnd2Xw5DNY+CxgbBz8BWXHrjQ6JGmnGnbq5BK1hSkFq6iBwGyT1yZJvR9LBjxvhc1P+a yYNpP6CWIA4b92UJxyigckdzIPc9kwYRE/eHrIllSYzM9IWShJ0nfiIq4Sen30VPdQpE 8zlWYjo5xZdxJZ8uOvN51ofnVQpjeCSPOP5rGZC/e24Y6qvUUwRWEAzqAhkk+sNRUX+S gisQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WjTVpshr1nz2jFJoCMTLYbynj0cJ7qLjQ5rtWVDunuU=; fh=ZbkgBRfmm2CcY7E8O0DpnAquyEcIWaktSDRbt7GG8JY=; b=Sva25NlzFkD31OFavypLnYNbA/UM8FQhi2earGG7UIdtpAjl6glT7aWmU8sGFTTWg3 +VCF/BVnrKtseniqwVrJ9cJpupjsnW0TlWx/zsgsrSM2s1OK6rHBM94GPXd+vPA9vVzf UMaihjYefWa2yhpHEsg7N07SkSlVOBeUCSbprUctuZHwFStkxfUDUWgKZYV7ZVWi/YJg 66L49C2dWOP45W53remGErqOWLwLp/68Xy6ZgmriqD9kSkJU2soNWhZkHzYB/rvHH3iz cvqWybnaCxasDtQe6krMqGOobs9IwUDO5YaChNwBH2JM31tOcKIk6myPmy3PgT7qL+km bR4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/oo9gHk"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4452-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 l5-20020a17090a850500b0029b77c1d3ecsi1487815pjn.16.2024.03.07.03.18.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 03:18:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4452-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="R/oo9gHk"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4452-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 DA39028362D for ; Thu, 7 Mar 2024 11:17:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F6068529C; Thu, 7 Mar 2024 11:17:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R/oo9gHk" 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 6BA945C8E3 for ; Thu, 7 Mar 2024 11:17:29 +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=1709810249; cv=none; b=V5ND37qMKzbU+IxnE+1ze38I+5IG4JpEb2xuW/79a2LMW3gEV6uQEewmUg9jTjSDRs0YhxaSFk/51FgEc1anxPp11uxJib+GJm0gAbTcnUW/tDN8ysWzqaWhrUNZurPHs52VhnhvOETxrGuQ7om4og7jJ3h4o/oDd/Fd/EIedPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709810249; c=relaxed/simple; bh=noVrTzADk5MLxl13sgvJBZuvtxPbZk2va39CKN/RpZg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iV/Tc9Ba1C4/MPIPfRU0FIrKYtZu4VLKDPd5A6l8uDjrHpPtcUJE2+2xczIwYJLbugWDTVEfY5L0lpY4l8p4Z+IDRXIReNx8fds3NbKO+GcubyTCysTrvoUffSdhkFNNHDfcGGoS0h+ESquAY93bkxIjGI/GmqyDO8fEt90zMfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R/oo9gHk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEAEC433F1; Thu, 7 Mar 2024 11:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709810249; bh=noVrTzADk5MLxl13sgvJBZuvtxPbZk2va39CKN/RpZg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R/oo9gHklGo8uO05iepe8rNIEo6T8MNgguU6igYntI+hs5KIYx9/NFYq36wjUQ/W3 Hw5cG941fglskyhsbU3QyiQ0qBeuM4Jy3/lhLV1uR8QfaSBlSP0Qug1L71FT+H32Ow x9Ym3YMZtpaBxhf5tgHHdn94An3bCVQyyyrrvWxuCVnHhG/ku8AsLhA8I9I259nn2o 6szOK62LOn0avmXglumCSJvfL960Q2K0Vv6MNohr8mZTVjArRG1icYodwsTDH9qzeI HoqR+dZVsfm4y6cp2YO8RtutMI+NCiH8wB7cX2qcfIHd2DGKndgQt+XsaGXi72/2fD pks4VSPTaGdmA== Date: Thu, 7 Mar 2024 12:17:25 +0100 From: Lorenzo Bianconi To: Mingyen Hsieh Cc: nbd@nbd.name, 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 Subject: Re: [PATCH] wifi: mt76: mt7925: ensure 4-byte alignment for suspend & wow command Message-ID: References: <20240307110815.527-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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hPK9O+BSXO6lyn26" Content-Disposition: inline In-Reply-To: <20240307110815.527-1-mingyen.hsieh@mediatek.com> --hPK9O+BSXO6lyn26 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > From: Ming Yen Hsieh >=20 > Before sending suspend & wow command to FW, its length should be > 4-bytes alignd. >=20 > 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(-) >=20 > 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]; mt76_connac_mcu_set_hif_suspend() is used even by other drv (e.g. mt7615). = Is this change backward compatible? Regards, Lorenzo > } __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; > =20 > static inline enum connac3_mcu_cipher_type > --=20 > 2.18.0 >=20 --hPK9O+BSXO6lyn26 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZemiRQAKCRA6cBh0uS2t rC3TAQD2nyW0jjKsA5ibpFk88RbBGpFj7M5IY6YKAUfYccBL7QEA+ACex8pWuzKC NG0ubBBlrg29kthxg6x65IyMhkSwHQY= =VuWY -----END PGP SIGNATURE----- --hPK9O+BSXO6lyn26--