From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6F968223DEF; Mon, 23 Jun 2025 22:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750716708; cv=none; b=dq125FlCkY22uCJn5R1qov+WMPok97WVV7metKTO9cGovm+f5/cBsoqtXJH6kh5iUP/KS1KzPiKww23SKz3KOwmBf+x6tuoVQzjKYamp4h+sO3B8gEbYnNyzSfKZPJkA37cGO/zXqLCf5xPKFb8xfslWeTJZuBTnhq3AX6zjUgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750716708; c=relaxed/simple; bh=0LrUr+uDBP5SlRBDlmtX04TpCvl73fyHPLURAGTx+38=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L+cgoJdFs+ijVjv9GaNjAEHpYTUGjrbLJFfAEUkTY1iUAj6rEETwW1Fk7fERFdYYMgxfIQjtNj3G4tXdg0orcxtQoiAsmPwQSVDzZWAuUqtQn4w6cDvF2uR8+nDgdnDM4vihykiKGjUNUba5xPbIeiDwdq/H282C6kH7jiDDtio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XQBI0QP5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XQBI0QP5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07544C4CEED; Mon, 23 Jun 2025 22:11:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750716708; bh=0LrUr+uDBP5SlRBDlmtX04TpCvl73fyHPLURAGTx+38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XQBI0QP5gWEWgyjtciQsw3j3hAYIGbDU6cfSzC4UmwTQI0mmQcMh3aEFQxIg+jlLI vXKDm5FobCcD7oHn3xBK0R7aH7gGnU1B0DjmJ53ywZ+iNT18xYI/D8Z/Y8zCBYVFA2 QgumpClj/e1eFtiu6MQ6NSloTQ153JlYlnQYhp/U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Laurentiu Tudor , Ioana Ciornei , Christophe Leroy , Sasha Levin Subject: [PATCH 5.15 338/411] bus: fsl-mc: increase MC_CMD_COMPLETION_TIMEOUT_MS value Date: Mon, 23 Jun 2025 15:08:02 +0200 Message-ID: <20250623130642.155979876@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130632.993849527@linuxfoundation.org> References: <20250623130632.993849527@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Laurentiu Tudor [ Upstream commit 23d060136841c58c2f9ee8c08ad945d1879ead4b ] In case the MC firmware runs in debug mode with extensive prints pushed to the console, the current timeout of 500ms is not enough. Increase the timeout value so that we don't have any chance of wrongly assuming that the firmware is not responding when it's just taking more time. Signed-off-by: Laurentiu Tudor Signed-off-by: Ioana Ciornei Link: https://lore.kernel.org/r/20250408105814.2837951-7-ioana.ciornei@nxp.com Signed-off-by: Christophe Leroy Signed-off-by: Sasha Levin --- drivers/bus/fsl-mc/mc-sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/fsl-mc/mc-sys.c b/drivers/bus/fsl-mc/mc-sys.c index f2052cd0a0517..b22c59d57c8f0 100644 --- a/drivers/bus/fsl-mc/mc-sys.c +++ b/drivers/bus/fsl-mc/mc-sys.c @@ -19,7 +19,7 @@ /* * Timeout in milliseconds to wait for the completion of an MC command */ -#define MC_CMD_COMPLETION_TIMEOUT_MS 500 +#define MC_CMD_COMPLETION_TIMEOUT_MS 15000 /* * usleep_range() min and max values used to throttle down polling -- 2.39.5