From nobody Sun Dec 14 19:27:53 2025 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (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 A719435942; Mon, 21 Apr 2025 02:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745201078; cv=none; b=LFSBj63T0caOGhXRR8Z49hPdnXZchCvRSxjImuJcTMzW7P2VD1yNcXQg/VF820ahL3R0exPuzL3vSxOhsRilcaeHZX/VH9/yyYN9mc6jwspcbum3wg1PID9nS+67tVPfC5u19LPXtrkPcZEv+MG045kWERsXWGI2JAkbIIuWYOs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745201078; c=relaxed/simple; bh=JfWcuV9DGUjdXLu19kbjpWbEo5f5WqID1wROTv7KPqw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lRIH5Ryt0QZ9RUwYynoU2FXyL9u8t/cNeHLxP7kB85qGmnvbLlAp3b2lBfTAxViga084xMGbu8jgyrTsqTjDxOBT+Rzoj95P6KMrOCSNtluYc8bTlpXZ8YHcAVTFYxob5JbNflLdfsPMDMr34jodiDviStXSswFyx67R6bVRd5I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=F2WdwLLO; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="F2WdwLLO" Received: from [192.168.183.162] (254C255A.nat.pool.telekom.hu [37.76.37.90]) by mail.mainlining.org (Postfix) with ESMTPSA id 9F2EFBBB01; Mon, 21 Apr 2025 02:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1745201069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y2epY80Snc/7euU+ALpiYDu7MBIbiNWiG22ibp//GlM=; b=F2WdwLLOTLiLDF7/3p24/03iyyth9vOTzIJziZF/kxjSM8FvhAzOmL+5l9UHb8rx1N0LkE cA2kK8DzXK3dRZBkzP+TG6YYuQqzbMn9uO4DdGdA+lMJmHZkT3o6U7Gp9aTriITGypHkBc 1VEEOL5SEVOxCFglRY28B07AN5hfUmyO4EpcrvtSJgySyX3Ih853oFRQiUUiJ8JkYYlAE/ vR/VEI7Gyed3Zm9FRB50ioPWsUVZUHjfX9d6lmFplagMMn62Ymb2SfdGTgNuFSDPAGjXF2 AjZ5fdrcrmhZl8BwP5/oTDku4Nlzt7B/SYWDa7YsqFU+TkGESLDiZcmfSzsQig== From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Mon, 21 Apr 2025 04:04:16 +0200 Subject: [PATCH 1/2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250421-fix-qcom-smd-v1-1-574d071d3f27@mainlining.org> References: <20250421-fix-qcom-smd-v1-0-574d071d3f27@mainlining.org> In-Reply-To: <20250421-fix-qcom-smd-v1-0-574d071d3f27@mainlining.org> To: Bjorn Andersson , Mathieu Poirier , Tudor Ambarus , Jassi Brar , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1745201067; l=1069; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=JfWcuV9DGUjdXLu19kbjpWbEo5f5WqID1wROTv7KPqw=; b=pmSi6b7M88j3sFcfVoGVGfUfhbQZuHNTaI1IVYRQiIgEERmAujpsAfUwKsyeGe11E2PvhZPip Cq8oUKicfniDhS30hM49n+DbF13oeLnOOsgDHHZr3uM7XU+4D64F2LI X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= mbox_request_channel() returning value was changed in case of error. It uses returning value of of_parse_phandle_with_args(). It is returning with -ENOENT instead of -ENODEV when no mboxes property exists. Fixes: 24fdd5074b20 ("mailbox: use error ret code of of_parse_phandle_with_= args()") Signed-off-by: Barnab=C3=A1s Cz=C3=A9m=C3=A1n Reviewed-by: Dmitry Baryshkov Reviewed-by: Stephan Gerhold Tested-by: Nayeemahmed Badebade #msm8916 Tested-by: Stephan Gerhold # msm8939 --- drivers/rpmsg/qcom_smd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c index 40d386809d6b78e209861c23d934e1b9fd743606..e552a9af578e48cfd854a228a4d= 91e4fa04bf29d 100644 --- a/drivers/rpmsg/qcom_smd.c +++ b/drivers/rpmsg/qcom_smd.c @@ -1368,7 +1368,7 @@ static int qcom_smd_parse_edge(struct device *dev, edge->mbox_client.knows_txdone =3D true; edge->mbox_chan =3D mbox_request_channel(&edge->mbox_client, 0); if (IS_ERR(edge->mbox_chan)) { - if (PTR_ERR(edge->mbox_chan) !=3D -ENODEV) { + if (PTR_ERR(edge->mbox_chan) !=3D -ENOENT) { ret =3D PTR_ERR(edge->mbox_chan); goto put_node; } --=20 2.49.0 From nobody Sun Dec 14 19:27:53 2025 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (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 8F1AD255E32; Mon, 21 Apr 2025 02:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745201079; cv=none; b=Y+Wod9rRhtQ5Yh3e9k7gIsmTvjYw1sLpWJJK3aEdnyxdWu63BQ4rghTkvXMZ0lt8dFdZNj+GEHfCP6uPUZeGjNPDSWMEDnouGt32ru9s0NJQfR/D3vKHV+2rQXthLDKcBCMT9Pp2huMlKKa7rrj8nPDfjC4hWmDB2pjEVrkqpW4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745201079; c=relaxed/simple; bh=U6I+PwKCmy7pG4WA1RVuzIfpWgFlxP9eCznMIyTUuro=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Gd7YAO9RBhcbEtFZDZtFwBXH6/JEKaVmC/q+VTiLPn2cm40CpufPPBa2clmGx3JDUt7ms+orliKAHnnIKQwUYBWAQCsPcsMR9J7fxkCaa7Jy52JXa5YQm05lMFKbItC3DdDBuOx5gt4219JGR6Z36YWXPG66BXf3BLD7Unw6SsA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=qh9DH6Gu; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="qh9DH6Gu" Received: from [192.168.183.162] (254C255A.nat.pool.telekom.hu [37.76.37.90]) by mail.mainlining.org (Postfix) with ESMTPSA id A46CBBBB02; Mon, 21 Apr 2025 02:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1745201070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l8aCnYJYVZSR3rbwBCwfDLTUp0VBv3iMT57/14xiRX4=; b=qh9DH6Guik594JtJd8dZxFrFRRZe9h+IA9qQ46M4tl0pRd7yX9Y1OVjh9wRv7pLNmQhH+y Ybn37xShMEz0T/N/fwvSi5JyKry1eRiMKSj3S7cA+Iy4i4iq12IQp4rPrah+Rxn5dESdfq WuNIcZdvHdSjEcV/h1uzxUL5JhvHzEbzHwQLpDVULbGGl7U/KgvjqIqnzrkJ/uMg6V/UMJ KYGTD6MvPtfouggH+QpjGIrPMG3rZI0SpnENuSmBuk3EjVo9Y/zEH8G7moVxCBNkf5z1sj FPfqwCjwkbSdf8FabrDxPtjrKZj1hjYcQVRbgPkQ4Vjl18WeQwH8MkqgYpVGmw== From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Mon, 21 Apr 2025 04:04:17 +0200 Subject: [PATCH 2/2] soc: qcom: smp2p: Fix fallback to qcom,ipc parse Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250421-fix-qcom-smd-v1-2-574d071d3f27@mainlining.org> References: <20250421-fix-qcom-smd-v1-0-574d071d3f27@mainlining.org> In-Reply-To: <20250421-fix-qcom-smd-v1-0-574d071d3f27@mainlining.org> To: Bjorn Andersson , Mathieu Poirier , Tudor Ambarus , Jassi Brar , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1745201067; l=1084; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=U6I+PwKCmy7pG4WA1RVuzIfpWgFlxP9eCznMIyTUuro=; b=apfZxy3ONleNAqMDaQFSwnqwAN7RD3hcXNbyGo6P53JWqnqFQbdEKCXzexHp3+ru/JkDvxtcJ EjbVyV2LALrAv9XJ2GlEOgXsIKsU0UakD5GyPdr9b5OcNU8K2pxapod X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= mbox_request_channel() returning value was changed in case of error. It uses returning value of of_parse_phandle_with_args(). It is returning with -ENOENT instead of -ENODEV when no mboxes property exists. Fixes: 24fdd5074b20 ("mailbox: use error ret code of of_parse_phandle_with_= args()") Signed-off-by: Barnab=C3=A1s Cz=C3=A9m=C3=A1n Reviewed-by: Stephan Gerhold Tested-by: Nayeemahmed Badebade #msm8916 Tested-by: Stephan Gerhold # msm8939 --- drivers/soc/qcom/smp2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c index a3e88ced328a91f1eb9dbaaaeb12fc901838bdaa..c9199d6fbe26ecc5ce941cfd608= ebf1381be0935 100644 --- a/drivers/soc/qcom/smp2p.c +++ b/drivers/soc/qcom/smp2p.c @@ -575,7 +575,7 @@ static int qcom_smp2p_probe(struct platform_device *pde= v) smp2p->mbox_client.knows_txdone =3D true; smp2p->mbox_chan =3D mbox_request_channel(&smp2p->mbox_client, 0); if (IS_ERR(smp2p->mbox_chan)) { - if (PTR_ERR(smp2p->mbox_chan) !=3D -ENODEV) + if (PTR_ERR(smp2p->mbox_chan) !=3D -ENOENT) return PTR_ERR(smp2p->mbox_chan); =20 smp2p->mbox_chan =3D NULL; --=20 2.49.0