From mboxrd@z Thu Jan 1 00:00:00 1970 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 B859C2264AB; Sat, 12 Sep 2026 19:15:28 +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=1789240529; cv=none; b=oHun5Xx5LK6GjfSWhYMOUvttYNv6AEhqFUchEDn+EtWGzw8QJw2WkiSBY2x7UUakVwJKnM9NFl4C0AsyMYUnwUwgo+1rM59oABP50RO/j1YSd0sb7DsIsO5vPjHjCL2t1mr6mW7InydllDAwUY+c9phrE3WjmlxBYFXoR0BzYZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789240529; c=relaxed/simple; bh=apYHGj12PHSIwoC/7b16mH134t8HaV4aMYuczzXFgis=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=By7MoiFM9PRXrHYr1hBqJHLC3NUF98zaPUdYTYLpTEo0zPziKHbvHJhsOtC8NXVvv8Ol8oKwDni0GecxuLZC3HYxhB+5jkAt0qBE7DLj/uWfOed3cSZ4S9lsZV4QKEn3FiCGm+SIxhToaFycw4u46ggiTOPFoVC8hR5ePrTnr8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ozC2H6vq; 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="ozC2H6vq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74DF01F000FF; Sat, 12 Sep 2026 19:15:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789240528; bh=oNqODWSF7Ijs9aiQG+WrPl8or3ScBwQxxrZhh32tpag=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ozC2H6vq3lrvRzB3gxMCBOXUDlVfJsj4rq8GkHKWa+HruJxAGXtQndikAFYB2xui6 /CGTHVhO940USJdlfn9uq26SuIssOJDMMiYGnoY1k41X4WzqZ7oM2OfIeWMIjdd8JM T9pB+qb+owaDf+A3LLGgFVoFSViYxFkOMvMKZ1ZY= 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 5.15 860/935] i3c: mipi-i3c-hci: Fix missing STAT_IBI_STATUS_THLD in PIO mode Date: Sat, 12 Sep 2026 09:04:50 +0200 Message-ID: <20260912065546.550200048@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065526.833703348@linuxfoundation.org> References: <20260912065526.833703348@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 5.15-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