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=1796083043; b=IVuUWTwGSKGjCT5N12viYCD8z1sGc2RsAs0JunzuY6UV9L8A/XP/ww9I1BAf7CGGxw7v r+5UqQu8BYr6PYGc9kVlxWW2qSWAlCKhCfurPFHcg8BEcQnKRJ9W1Ct3cUdrrtBZ35GWx Kx5q+PEeqiPOAS0WDWN9Cdb7me1etzQ97Swmt/SBUS+NvYt9s2oXAaJ1EYvJfil+teONI GI4p5pME6GSBiBQypo1xef7q0+mP79fZx/jPwxJwo4TCR3hyAX1rNB/Vlp27ENAzH6Lle Y2YIEzfXgDg4r7zxe+6rB/vpOSbQ1TRQ1saolA2bVyDt1qYzET7D96ccSoaJG6v1RgQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796083043; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=vDxCjFmOTwFlanOFMcQ97kWbulVdS16otQxrUHCEV4U=; b=s4Ed2fgmGCsFoCbSQPCIejwbQpqBOAPeOwzkaIHdNmiQ81ibFb9XDPvTG/l8pRlUiTS2 UmxBk5qkVzzWZbrSTx/nEHTsC/6A27s7rooA2PjxXDZPnkJbs5+VFhxAOG484YEbdZyUC 0y4ocmsOZT1ecFwCCwCaLRH5svGS/Lwvu8pnNp31z4Et0F3i2m6uB8Qpkf3m6stPG3UVF i3UXxUm7BvLS26JSnp1A2fr0nrld7sfpHkl7wyGM1m3nMbUeJrKK4LVea9U6j7lbxVLwG Bo9PmZyu7K6zl8WkAaPnxxt3T8kzC8TH2T/eS8c9sZbhIcROGt9Lz43ROMzAH0idhFg== 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=NGtMeY47; 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 7B11F606A31A; Mon, 30 Nov 2026 23:57:23 +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=NGtMeY47 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCEC41F00896; Mon, 30 Nov 2026 23:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796083043; bh=vDxCjFmOTwFlanOFMcQ97kWbulVdS16otQxrUHCEV4U=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=NGtMeY47XS2ubsWmJid1MUbfPy0BA/IvOMhmxTZv5J/AiySjTD/BNYuflFf0YoEpS gxlR35OxMQXqTQtIPbSD3zYvUXcRKSYDQXRA+1FfGFkjuvrbV6OTjq9tNM/JfT1tFw pD/Q0RbHQewBNcTwbUnb3J6vBWHYvg1q1YViNsjPTVJ1DPoeHRertTTOgQNuQP1Ckx HHptPvtCP7asdDnAsx1NaGxrh4t/oGkwRU1gM1oy4LDoiIB0Ccl11msU72BPI+x0mZ FdA3J2jCEGpMT1Zzgrm4UL15VnipxW0dM6Ikl9+7otuRMAFxzvBoRIvK59j+ZxZECL k9Np/MgKiMOaA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/2] ASoC: codecs: aw88461: add the Awinic AW88461 speaker amplifier driver Reply-To: sashiko-reviews@lists.linux.dev To: "Qianhui Xu" Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261130234745.1063224-3-xiaqinghuan@mail.ustc.edu.cn> References: <20261130234745.1063224-1-xiaqinghuan@mail.ustc.edu.cn> <20261130234745.1063224-3-xiaqinghuan@mail.ustc.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 23:57:22 +0000 X-Mailing-List: linux-sound@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] ASoC: aw88461: incomplete TXEN and volume reset in aw88461_down() -- commit 914e755a0639c9d9a327147970c1f3e4b660cca3 Author: Qianhui Xu ASoC: codecs: aw88461: add the Awinic AW88461 speaker amplifier driver This commit adds an ASoC codec driver for the Awinic AW88461 (PID 0x2308) I2S speaker amplifier, reusing the AW88395 library for ACF firmware parsing and profile loading. > diff --git a/sound/soc/codecs/aw88461.c b/sound/soc/codecs/aw88461.c > new file mode 100644 > index 0000000000000..e5fb31f318caf > --- /dev/null > +++ b/sound/soc/codecs/aw88461.c > @@ -0,0 +1,645 @@ [ ... ] > +/* > + * Park the chip in a silent, powered-down state. The driver deliberate= ly does > + * not latch an error (and does not touch the profile loaded into the ch= ip), so > + * that the DAPM power-up event of the next playback can retry. > + */ > +static int aw88461_down(struct aw88461 *amp, int error) > +{ > + struct regmap *map =3D amp->aw_dev.regmap; > + > + amp->powered =3D false; > + if (regmap_update_bits(map, AW88461_SYSCTRL, > + AW88461_HMUTE | AW88461_ULS_HMUTE, > + AW88461_HMUTE | AW88461_ULS_HMUTE)) > + dev_err(amp->aw_dev.dev, "failed to mute the amplifier\n"); > + if (regmap_update_bits(map, AW88461_SYSCTRL, > + AW88461_AMPPD | AW88461_PWDN, > + AW88461_AMPPD | AW88461_PWDN)) > + dev_err(amp->aw_dev.dev, "failed to power down the amplifier\n"); > + return error; > +} [Severity: Medium] Should aw88461_down() also clear AW88461_TXEN in AW88461_SYSCTRL and restore AW88461_VOLUME to 1023 in AW88461_SYSCTRL2? If a regmap write fails after the amplifier is running (for example, in aw88461_volume_put() or aw88461_stop()), aw88461_down() leaves AW88461_TXEN enabled and AW88461_VOLUME at the active attenuation level. On the next playback retry, aw88461_start() then brings the chip out of AW88461_PWDN and AW88461_AMPPD with AW88461_TXEN already asserted instead of following PWDN -> PLL lock -> AMPPD -> TXEN, and clears AW88461_HMUTE | AW88461_ULS_HMUTE before aw88461_fade() resets the volume to 1023. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130234745.1063= 224-1-xiaqinghuan@mail.ustc.edu.cn?part=3D2