From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796295420; b=rOVuuCh1rtHbBf4ROvyls+Km+/AgugMZ7fScINGLR+BoIsoaoP9FaHmlAwzzHX8lnPYP rZ0t86e8k0w5VNT/mADSZSj39lrP4Y7hJdEL/7sEdAAoAR+LRlr/M5vVRvD8x+BfptZBP BqwkjSX3fNjLY7J5fgARNRA5aFqjTqYjThoqUQWrWByPMcrboSsWfesy4TniWn+z2EIao byzD5lAtQZ5VvgtMaQFgnF3qQhhENd2V0TRhk/b4/sW+i94UIHiOosdE7vk3/GO7MaI4r ZFyfxWQ6J6MO4COmNKGKw/1wFfu0p/KGEHNzt7nfCqlXS10OI/+h+mud0TvnrvykNNQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796295420; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=4imv+c5spovGlU+zhuyiZ1p07Dd2XUWRerqpqXA6ebE=; b=KlEYsBa4LpjwwY4g26HIRtmL3aeC/a75AOys732bxgugelM9tg+OkTb/95bke1Wd/Ton kblprv4JsEQSZ8Ddl3GWcD5fZexKyueZ33D02y1mllYUwaf6v7JTTuknyVXrGqYN8k4kA oNRSwxNoRM+R0wrW15DrTphyPhiFYt/j3VYsYVVq8o0AtfYuYS1+zLEtMhLlIpxU2OQW/ 8c/b3IMsE3DNhXAfLYMdmF5BdgN4DgVkqHiQ1ZlFtnUC2yNHtFFW1oSHW8xnPSObkAEVF 8sVNBy7Xhlsif+7qlfOritqZQHxR3q3wcVFwanio2Fh6pfGWsZgcY2B4mFOAShBug1A== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=B3eSjNBv; arc=pass header.oldest-pass=0 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 D9D78606A330; Thu, 3 Dec 2026 10:57:00 +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=B3eSjNBv Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796295420; b=G/JS6dljXQbcC7Ta9kDSZns2KbbwIQ7cDNSgABTt4v0snZDLRGDUf9pV9f8dGOCrIN0K 4v8dM+vq/20o7MLrjiccDpVPQlpFTAmUtw58jM6gcQgkiXniRTc1npKcc5QaWcXzWYqTV HBxqm2MIiExbz1TC+Zfk9dk1C483OcYcYJZpzyqM+xup2y6j+iZMgtB64TaV6YfMxwpCk idxu9+tDVjz7Ksq56m+mc6jQg4t/OCSGeOQTxXJBeSYxEHGzAIGh5mz7ebiJ/SrzQ7DfJ lZ6nwaxih+i4W1UueqtGZmQpEAF96cO+Lq6+ITKXKMvGo87TfI6ybwF0sO82O/JkxhA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796295420; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=4imv+c5spovGlU+zhuyiZ1p07Dd2XUWRerqpqXA6ebE=; b=PQXJEbxRmS/FFVIxfDiZGvCFCjwMOfk7/ZLb6th111pOVmRz4Dha07Y3SjbOSwHls3Lu Ulj8px68rjI+FoShZSl1zhu77ZEt2P/3qmPZ/IutbHSSIVvcGfqC6098NeIFJGQ/Iaizr OihfyYvNWuahwO/JJccEcNubdnpKD6G884xVcUOMEYShIjEe5fcNHTj/N0xhXfHNc+A6L nsY6EgXitCS7D1iEXLr6iqswf7FyJY70pWf/xS7hcUUUe9cE82FubAaNnDkNn6n/b4cDA wX9AhkOq6h6L8y9vTTG++rZ5bRmyor4M+0DcS6GR+k9bIxoppQnqJ8jKFtL35sUnQXg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 1AFB91F00898; Thu, 3 Dec 2026 10:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796295420; bh=4imv+c5spovGlU+zhuyiZ1p07Dd2XUWRerqpqXA6ebE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=B3eSjNBvLpJbg4jsnkiufS3oZ3ss2aC1q9MMU0tXb5fRvaLEBXHmcaZfUYrTtUikH izEiknwabSugT3xZlOc48DhXu3vXbufOwBWGZ06HKp435mITQeJkG/FvDWCkyjcERt Lvqsd9zCQH+Vopa22l56zG9YyAESlpq9g79n0F6a+8+sW3PbuYp9dL6vwiRkuV+cFk VftFT1gy4eGTeyUZSlCQDwxkS2N0pBr2qLZH0whu8mSZEnzYC/8LE5KnZBR7hHIkTH 0CYYQZKc7EiJQb+5Br+/u1lEjMGmayEthnznur9p0R9iNAxFeOfZjeDbIpf22R/RLV QN8BCEFNl+GSA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 9C1624F912; Thu, 3 Dec 2026 10:56:59 +0000 (UTC) From: Alexandre Rapaille via B4 Relay Date: Thu, 03 Dec 2026 11:57:01 +0100 Subject: [PATCH v2 2/2] soc: qcom: smsm: Don't log an error for hosts without a mailbox X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261203-smsm-null-mbox-v2-2-b4b6e224b127@atlr-engineering.com> References: <20261203-smsm-null-mbox-v2-0-b4b6e224b127@atlr-engineering.com> In-Reply-To: <20261203-smsm-null-mbox-v2-0-b4b6e224b127@atlr-engineering.com> To: Jassi Brar , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Rapaille X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796295420; l=1476; i=arapaille@atlr-engineering.com; s=20261118; h=from:subject:message-id; bh=dMQvAYGPe3c+sp28INvEQm88cBGejZbJz3Oo8QhUS98=; b=FaFHrVObPUaYz6foiAmHV7QsYETk282LUbY40pjlhDwex2n3hvrnAiLliJjz9yDFaiwiW/z40 bKyLzsT48YtD22D246gWLrJ6KzEOWXlTvpG12l1NZCqsBPFbU3wmtmN X-Developer-Key: i=arapaille@atlr-engineering.com; a=ed25519; pk=xskH/sIiNU/aZCeGeBB1TK/AuiG3MXlX0m2wMlbMl08= X-Endpoint-Received: by B4 Relay for arapaille@atlr-engineering.com/20261118 with auth_id=1560 X-Original-From: Alexandre Rapaille Reply-To: arapaille@atlr-engineering.com Content-Transfer-Encoding: 7bit From: Alexandre Rapaille smsm_parse_mbox() calls mbox_request_channel() for every host, so the mailbox core logs an error for each host that has no mailbox before smsm falls back to qcom,ipc. On msm8974 SMEM reports 5 hosts while mboxes has 4 entries, the first a null placeholder for the local host, so every boot prints twice: qcom-smsm smsm: mbox_request_channel: can't parse "mboxes" property Use mbox_request_channel_optional() and fall back quietly when the entry is null or missing. Tested on a Fairphone 2 with next-20261127: both lines are gone, hosts 1-3 still get their mailbox channel, and the modem comes back after forced restarts. Signed-off-by: Alexandre Rapaille --- drivers/soc/qcom/smsm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/smsm.c b/drivers/soc/qcom/smsm.c index f6b7266a5af0..9623146da8c7 100644 --- a/drivers/soc/qcom/smsm.c +++ b/drivers/soc/qcom/smsm.c @@ -370,10 +370,12 @@ static int smsm_parse_mbox(struct qcom_smsm *smsm, unsigned int host_id) struct smsm_host *host = &smsm->hosts[host_id]; int ret = 0; - host->mbox_chan = mbox_request_channel(&smsm->mbox_client, host_id); + host->mbox_chan = mbox_request_channel_optional(&smsm->mbox_client, host_id); if (IS_ERR(host->mbox_chan)) { ret = PTR_ERR(host->mbox_chan); host->mbox_chan = NULL; + } else if (!host->mbox_chan) { + ret = -ENOENT; } return ret; -- 2.43.0