From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796283790; b=gekBaBKuydRTS3dgec4Odd+ZcBbuUg5h8OatYTmR4IfuV/jKpGa2o8igzwtYpEW3oItM BFN59pg4gD7/2zg5ECbbCj1jDryp3hEv0qda5H/iUVkJHDF0HBEloOmdyyTXR8yVd65/X SVAi3yJ6Wv2VB5VOD7kXIXvNpSHmKWDjEj/2IlBkFyoturk4pje1yA4tqZNbg+ADnEy1F tHisl6F41VdFXUoKPggTnEFtGODA0jfiaTDNkCXjXK8cfkHphrLUKrv+mbSLZdkn39Yi1 r5GqqqMOcVXNGzMRHJ2ztYNSWG5dejfuRjuJ+ldRC7F6yU45b4Qkmxur4elHb+KLTkw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796283790; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=9+VnAwHvIiZqtgy9BlLWg2rev1ivB+8ymAcRM2RfJGE=; b=uVYyA21uNtmYO1X2ara63N6cguMMBUgmh3eW0kh+FaluqCeFWWUkGYeWFWb9uBIPu9lL t51zmBUdN37zJ/yIchLYRjSkOWhH7ASaG21oaWFcL5lSJA1A/t62ERiQ6JHi8temj3j3W xeHRyvep8yVxVICFpfgAF+5EmtEJ8H/n9r8CiRCdwRKD/d44LZgwEp2S1VnQxTdlLvV7V ahGnvxw1vIJHc8xe3GbxOXkEF99dH9RBaWKmWYsHh3uErjeJUZ8IzpSngFQ0G129LJFk3 c4IWDX+rQo3PRu5xL6JP5M3Hg/ZQ+0s+B+VwmPUajhOlmgFBdm9kK5CwxRdk/00Stkw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NOfZzpGA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EB2B606A322 for ; Thu, 3 Dec 2026 07:43:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NOfZzpGA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93A741F00893; Thu, 3 Dec 2026 07:43:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796283789; bh=9+VnAwHvIiZqtgy9BlLWg2rev1ivB+8ymAcRM2RfJGE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=NOfZzpGAwnT+RRQERtwpi8AuUsMF5Ee7oCZdWG8+UGejyg+UEcAV2h9jUBTvWxXyW stL6jmEcMnLRvZPt16sDllxLDaTUcyGxQVNV9XNwBMRvAawam+rIZiMmcuhaDWs+s9 ligokKYDto+PBDnbuvbR/MJWNj/3Uc3GxjtBC8VQOfmFn1XGTDKYwdtyKM9ASCxORy leH1UtXhyKO85bfzAstYPJPZp0LJommk7qq057oKQHehkWtvldl/FI5azYgfD3yg7g JCJ2oC7fxOnKH/MoQgg+5G+Vv10YV2XWbUJvWZHogM6LRzolpSHVSbcQrLMv6Suo8E Y5Lp74Gy4d2yg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 15/17] wifi: cc33xx: Add ps.c, ps.h Reply-To: sashiko-reviews@lists.linux.dev To: "Ramesh Ramalingam" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203070906.1294171-16-r-ramalingam@ti.com> References: <20261203070906.1294171-1-r-ramalingam@ti.com> <20261203070906.1294171-16-r-ramalingam@ti.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 07:43:09 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] wifi: cc33xx: cc33xx_ps_set_mode() is a silent hardware no-op -- commit b6e32d633963d12afa6bfcf6372448d5ccf79991 Author: Michael Nemanov wifi: cc33xx: Add ps.c, ps.h This commit adds ps.c and ps.h implementing cc33xx_ps_set_mode() to configu= re 802.11 power-save modes for the cc33xx driver. > diff --git a/drivers/net/wireless/ti/cc33xx/ps.c b/drivers/net/wireless/t= i/cc33xx/ps.c > new file mode 100644 > index 0000000000000..f2ed1678edb95 > --- /dev/null > +++ b/drivers/net/wireless/ti/cc33xx/ps.c > @@ -0,0 +1,39 @@ [ ... ] > +int cc33xx_ps_set_mode(struct cc33xx *cc, struct cc33xx_vif *wlvif, > + enum cc33xx_cmd_ps_mode_e mode) > +{ > + int ret; > + u16 timeout =3D cc->conf.host_conf.conn.dynamic_ps_timeout; > + > + switch (mode) { > + case STATION_AUTO_PS_MODE: > + case STATION_POWER_SAVE_MODE: > + ret =3D cc33xx_cmd_ps_mode(cc, wlvif, mode, timeout); > + if (ret < 0) > + return ret; > + > + set_bit(WLVIF_FLAG_IN_PS, &wlvif->flags); > + break; > + > + case STATION_ACTIVE_MODE: > + ret =3D cc33xx_cmd_ps_mode(cc, wlvif, mode, 0); > + if (ret < 0) > + return ret; > + > + clear_bit(WLVIF_FLAG_IN_PS, &wlvif->flags); > + break; [Severity: Medium] Does cc33xx_ps_set_mode() actually change the hardware power-save state? cc33xx_cmd_ps_mode() submits CMD_SET_PS_MODE to cc33xx_cmd_send(), but CMD_SET_PS_MODE is defined after CMD_LAST_SUPPORTED_COMMAND in cmd.h. cc33xx_cmd_send() checks for id >=3D CMD_LAST_SUPPORTED_COMMAND and returns= 0 immediately without sending anything to firmware. As a result, BSS_CHANGED_PS transitions in cc33xx_bss_info_changed_sta() toggle WLVIF_FLAG_IN_PS and report success to mac80211 even though cc33xx_init_ieee80211() advertises SUPPORTS_PS and SUPPORTS_DYNAMIC_PS, leaving the firmware power-save mode unchanged. Should this use a supported firmware command to override power-save mode, or drop the non-functional override path and advertised power-save flags? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203070906.1294= 171-1-r-ramalingam@ti.com?part=3D15