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=1796391020; b=rOJazBmXuXt6IsxtY80g/O7/vxFtKlW7r64CUngnBNVOaqTdOJHMBdgb0A1rnaS7f/Gu I552oYQUCPx54I1EJ4VfOIRaKVQuHqoaVjlq3QvVoO5i+Y3bp5IcrqJGNZu/Q1ZZ2OQYg xFyD/Y/rahb4jbYNj7+2D0+E+Wow6sb4xlScfDe5hcQNDYgTali9DG84WxXEWuEmMGrrg Hjc8PjuNBwqKq4pM6BlaiY3x2gZLDQEj5+sanCu6KFYxbgtQnOxUgIMhIKwJnp9evuDu1 wpyHiewN/Qnchj9BDI/eHinnyQ/6OXWWXgeGJRwUw1k8N97BOhYS/fjHbAZW8B8paLw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796391020; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=fNuypNO3sQNk/S1CizrUCSiOjhtxzJvc6I5CvecASSw=; b=JjpUbqP+Q7rXbWeKDi1Xuwn0y+HpeaseZG0Ig5bciQO0/AC3GjicfFLfe+nWEPWLGaCl W12KmsF5escD9eHB65M79XEDTLm1ZgE4H5hsKkPSVD0WfIo6bVQFAHJLKS/Yw6AuuwzCU yAgNr5//D28jVmf7/kK/PoGDAzMz+fq32rFd5U/REyHT6W9PuKod9jb4fWzzS1GIBad/K NakG3XwnC4+ALdv730ezqwulEFmeksXddftM0DMy6f+8gHw3ImAS4HlE1O7UYreDiVYor /tlFdho/FAK841h5s0WM1BApjXIivdBtfGJkZ/34ut6MFOQfwjYlG4aizZNYMXEGrzw== 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=Q4PbFRZH; 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 AD7A6606A334 for ; Fri, 4 Dec 2026 13:30:20 +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=Q4PbFRZH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 112BA1F00931; Fri, 4 Dec 2026 13:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796391020; bh=fNuypNO3sQNk/S1CizrUCSiOjhtxzJvc6I5CvecASSw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Q4PbFRZHULpiCoDE/H9leGG2PLf+/KV0DxKinSho20iPqjsqeQu7OB98D6lGwskqi FJlAju202r5Pw3c2p0Vxj0T/wXsqAi94Clvht1OnT5lzVApqyM+PiuKVVNkFAfKVZj pm5i+BEQfaYQKenkSbqCSVbyubNmkQj3bSc5eRjzSnOdldOGtyrXQkqUS2UllCZ9Bs PhebvFJ3avmB5oAl74W7YiRHzA/ETdblkFP74YUVWDP7wCnOD9Q0cSz1JBHILqNNs+ B++MlHfxLuByHTRULxiIX6kRwrh4IB0Pg54+jQ/1Za3Ovwij1+g+VSeu4CuIorBYuy NUyseGk3F3hxw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 5/5] mailbox: convert RISC-V SBI MPXY to direct transmit Reply-To: sashiko-reviews@lists.linux.dev To: "Anup Patel" Cc: linux-clk@vger.kernel.org In-Reply-To: <20261204111504.3362889-6-anup.patel@oss.qualcomm.com> References: <20261204111504.3362889-1-anup.patel@oss.qualcomm.com> <20261204111504.3362889-6-anup.patel@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 13:30:19 +0000 X-Mailing-List: linux-clk@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: - [Low] mailbox: unreachable RPMI branch left in mpxy_mbox_send_data() -- commit 236cec5e09e977002a36822668bce1817d3838a1 Author: Jassi Brar mailbox: convert RISC-V SBI MPXY to direct transmit This commit converts RISC-V SBI MPXY RPMI channels from the queued mailbox transmit path to direct synchronous transmit via send_data_sync() and mbox_send_message_sync(), and drops the obsolete client flags from the RPMI drivers. > diff --git a/drivers/mailbox/riscv-sbi-mpxy-mbox.c b/drivers/mailbox/risc= v-sbi-mpxy-mbox.c > index 432972195e468..5134a88fa984c 100644 > --- a/drivers/mailbox/riscv-sbi-mpxy-mbox.c > +++ b/drivers/mailbox/riscv-sbi-mpxy-mbox.c [ ... ] > @@ -586,8 +605,14 @@ static int mpxy_mbox_probe(struct platform_device *p= dev) > mbox->channel_count); > if (!mbox->controller.chans) > return -ENOMEM; > - for (i =3D 0; i < mbox->channel_count; i++) > - mbox->controller.chans[i].con_priv =3D &mbox->channels[i]; > + for (i =3D 0; i < mbox->channel_count; i++) { > + struct mbox_chan *chan =3D &mbox->controller.chans[i]; > + struct mpxy_mbox_channel *mchan =3D &mbox->channels[i]; > + > + chan->con_priv =3D mchan; > + if (mchan->attrs.msg_proto_id =3D=3D SBI_MPXY_MSGPROTO_RPMI_ID) > + chan->sync_caps =3D MBOX_CHAN_CAP_SYNC_ATOMIC; > + } [Severity: Low] Can the SBI_MPXY_MSGPROTO_RPMI_ID branch in mpxy_mbox_send_data() be removed now? Every RPMI channel gets MBOX_CHAN_CAP_SYNC_ATOMIC here, so mbox_send_message() and the other queued-path entry points return early before msg_submit() can call ops->send_data(). Leaving that dead branch in place suggests RPMI channels can still take the queued path. Since mbox_controller_register() still requires a non-NULL .send_data for a= ny non-RPMI MPXY channel, mpxy_mbox_send_data() can simply return -EOPNOTSUPP. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204111504.3362= 889-1-anup.patel@oss.qualcomm.com?part=3D5