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 C61C3421222; Sat, 12 Sep 2026 08:45: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=1789202756; cv=none; b=i46Y6FX/xsAZJX8Qx3xFR2dS+9llFN4oVyx8GCDJI/+JWi9q7CDfLM0DIb0fLKZkhayMyZ7uaj93MeXQ6KMECl5RpYE9GP8OCh8Jl02xNvAqJ/vYrDxm4IAKLSjJNZGh5N73ecl1d85/esBRhCA4uhTAPGmvVojmf89V4FdXEI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789202756; c=relaxed/simple; bh=Vo5Y3RYO33iWETmwDp+kXhm3/lvfTuMiT2VxsAZDUoI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UNcE0lfWxWsR86HqSoklqALO68W1JCUeWUXLb3DYjMIQZyAbThkf7wqYYVjm6Zwh6B3Y/4GLfnkexKlZxAquqGl/NeVWY46u8NB03y7El437wSY+5ztZI1NSRIUkpWEfc0H7wTI3rCYr39rjic1earErfz3oEggNL646vlXhyWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d6lmfOvt; 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="d6lmfOvt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C17C21F000FF; Sat, 12 Sep 2026 08:45:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789202752; bh=pc0PA616DZkrbKGMXLjT9s+idzn28nrsiGTGHYk93fU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=d6lmfOvtyeEHvN3bPxyh+GX8D1p0lLIf8h/29Ju5ud+WQng+G35pJfG0Efuzw8o+i LTK8cfAkENtVMNT7HbclhTl+R9ycZPK1eRbwAgKgY+HKDRKwXNQB1rBXyyqEqFpsz+ Y1aaaM78t5Dl7XfZDOBT5Ts+laOylk0AfR6/KbgY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tommaso Merciai , Claudiu Beznea , Frank Li , Alexandre Belloni , Sasha Levin Subject: [PATCH 7.2 1267/1815] i3c: renesas: Dont register devices when ENTDAA times out Date: Sat, 12 Sep 2026 08:50:17 +0200 Message-ID: <20260912065718.760821492@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065648.999753832@linuxfoundation.org> References: <20260912065648.999753832@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 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tommaso Merciai [ Upstream commit b6e56fd8c8a8ac7992868a28702192372ab04015 ] renesas_i3c_daa() derives the number of newly assigned dynamic addresses from cmd->rx_count, which the response ISR sets to the number of address slots ENTDAA left unassigned. It starts out as zero, which already means "every address was assigned", so a timed out transfer leaves that value in place and it gets used as a result. On a bus with no target connected the ENTDAA times out and the driver registers RENESAS_I3C_MAX_DEVS devices that are not there, each costing the core two seconds on a GETPID that can only time out: i3c i3c-0: Failed to add I3C device at address 9, error -110 ... i3c i3c-0: Failed to add I3C device at address 16, error -110 Start from maxdevs instead: no address is assigned before ENTDAA runs, and the existing rx_count >= maxdevs check then reports an empty bus. Fixes: d028219a9f14 ("i3c: master: Add basic driver for the Renesas I3C controller") Signed-off-by: Tommaso Merciai Reviewed-by: Claudiu Beznea Tested-by: Claudiu Beznea # on RZ/G3S Reviewed-by: Frank Li Link: https://patch.msgid.link/20260731070150.2519825-1-tommaso.merciai.xr@bp.renesas.com Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/i3c/master/renesas-i3c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master/renesas-i3c.c b/drivers/i3c/master/renesas-i3c.c index d219900bb33af..6b403c3e58e9f 100644 --- a/drivers/i3c/master/renesas-i3c.c +++ b/drivers/i3c/master/renesas-i3c.c @@ -665,7 +665,7 @@ static int renesas_i3c_daa(struct i3c_master_controller *m) init_completion(&xfer->comp); cmd = xfer->cmds; - cmd->rx_count = 0; + cmd->rx_count = i3c->maxdevs; /* Enable I3C bus. */ renesas_i3c_bus_enable(m, true); -- 2.53.0