Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E49B142586B; Sat, 12 Sep 2026 13:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789218836; cv=none; b=dhpsmi9WAzCM7TkV2qmF2TkyzxxbXWawGCbnYVF2l+C3KqREbLi2XJYg2CHCESD2Q77jsvI/SBYumEFdtzxt1Yo1MPqyTzmi88699ldvkGWVkUZIe3gzZjgbMASuPxq4Q7sB9FRDsUuVKJTY05/Zug5sbSaGEjC2+LruIpc/hfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789218836; c=relaxed/simple; bh=czyJiv9+DWwGa5c9QsG9TOoNk+SpPr/W/WjKLWR29DY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oEY2J4yLhnHGk8rDdxnD2IGWGg+6PSz2XzI/iyIUpnois+9yjxUYRiEDUSjnvNMV7GSY5o0rQdFYyFMgZkAvhPSnXC/ANSdThUoidEKRFG6IevVfCV6jo1IINyOSTNZDN1+XLypjlD3aDlk5nEB8pMyiHmyFSMQVrv4uySPH0MI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A2ZC7O9Y; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="A2ZC7O9Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FB201F000FF; Sat, 12 Sep 2026 13:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789218834; bh=6MegaC4SEFOF6Q8ub6ClccuK/Qt42LhAYJgqokFzRYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=A2ZC7O9YhNNjcZo2M5LZITOmzzcm15gRKDtTTcqKAsZ0xVH7lOn6/I/9ulT+wCnTD Mc99KKSs3p+ra1o9xWstIKY6DgHWqrStVXR0uIoDfIW2z/3z6hruaHJvlJouryrKZZ sCacRKO4VpaIUBTpXoPslToDnK4M+jtPoeO6qhkE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Patrick Yen , Jian-Ming Liao , Frank Li , Alexandre Belloni , Sasha Levin Subject: [PATCH 6.12 1227/1376] i3c: mipi-i3c-hci: Fix missing STAT_IBI_STATUS_THLD in PIO mode Date: Sat, 12 Sep 2026 09:00:53 +0200 Message-ID: <20260912065634.892938281@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.535295758@linuxfoundation.org> References: <20260912065607.535295758@linuxfoundation.org> User-Agent: quilt/0.69 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 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jian-Ming Liao [ Upstream commit 308ecb824db329a8e22dd0b10f2a3411a6fbbde3 ] In PIO mode initialization, STAT_IBI_STATUS_THLD was missing from pio->enabled_irqs. As a result, the host controller interrupt signal for IBI threshold was never enabled when transfer starts, preventing IBI status descriptors from being properly processed in PIO mode. Include STAT_IBI_STATUS_THLD in pio->enabled_irqs so that the IBI threshold interrupt is activated alongside error interrupts upon the first transfer. Fixes: 9ad9a52cce28 ("i3c/master: introduce the mipi-i3c-hci driver") Co-developed-by: Patrick Yen Signed-off-by: Patrick Yen Signed-off-by: Jian-Ming Liao Reviewed-by: Frank Li Link: https://patch.msgid.link/20260818104106.763772-2-Jm_Liao@asmedia.com.tw Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/i3c/master/mipi-i3c-hci/pio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/i3c/master/mipi-i3c-hci/pio.c b/drivers/i3c/master/mipi-i3c-hci/pio.c index da28934a63286..d8ef51cea6e2b 100644 --- a/drivers/i3c/master/mipi-i3c-hci/pio.c +++ b/drivers/i3c/master/mipi-i3c-hci/pio.c @@ -187,8 +187,11 @@ static void __hci_pio_init(struct i3c_hci *hci, u32 *size_val_ptr) pio_reg_write(INTR_SIGNAL_ENABLE, 0x0); pio_reg_write(INTR_STATUS_ENABLE, 0xffffffff); - /* Always accept error interrupts (will be activated on first xfer) */ - pio->enabled_irqs = STAT_ALL_ERRORS; + /* + * Always accept error interrupts and IBI threshold interrupt + * (will be activated on first xfer). + */ + pio->enabled_irqs = STAT_ALL_ERRORS | STAT_IBI_STATUS_THLD; } static int hci_pio_init(struct i3c_hci *hci) -- 2.53.0