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 338B02F531B; Sat, 12 Sep 2026 15:12:52 +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=1789225973; cv=none; b=Cya1w6deVWVtyAJGdjZ+OY2AcF7nMoyKKrKfu75+TJ7wFgGJgDHeCsG1g2++fkmJYMHKj0D4pWC8VQWJcnwsDr1waNZ+AqxyNpeprTsj80KGkSohaDiiBZ/UjHDsFrFlZwmiNTMqI6BQcTKzRGHBgG13DvlHn+bw/WiUkA6u81o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789225973; c=relaxed/simple; bh=KLXGbCULu1sBkFL0qW0QTBRDGBsR5ABLs8gAEAauSz8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FhOZtaXzyuzYbd5//1NjRCY8e4N8MR3BR1hBlrpvYSSALg5rZ6NNVPFBeOE47zEasoiYK0TZyIjCb82VBszYiOkBtp6MRABTiOwDxEGc2OavKlCpYuCtWarDBncR07xuoJJc/UAFeUCFFAOHCYNeSi0UEVVzDW6lO5wAdH9VVug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tCbBf5Y1; 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="tCbBf5Y1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 075BB1F000FF; Sat, 12 Sep 2026 15:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789225972; bh=nNRHTUF/XZMnDUXxqWMzrmEfcXK/BGc9a96RFYEDAtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tCbBf5Y1eAnRq7Xs5X2PK1D5C2XaFacmfUi9KcZM2qypRsY6HMiiZGtsWqVTKv/pb l600MTqLagpjeiIOECfk9cUyEAqLP2ioWzMPbrLSIRlYtla654M1RS+XxjgV7TqmAE L3c+Hs2MWhVSnGJWN/70u64YlbWQVyTDb90rgcGY= 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.6 1306/1424] i3c: mipi-i3c-hci: Fix missing STAT_IBI_STATUS_THLD in PIO mode Date: Sat, 12 Sep 2026 09:02:18 +0200 Message-ID: <20260912065636.512292995@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.279695368@linuxfoundation.org> References: <20260912065607.279695368@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.6-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