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 A9B2C3D7D72; Fri, 22 May 2026 10:18:48 +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=1779445129; cv=none; b=IkKm+8u0N3kwErQmttJMEZpkY+GCABW+bNsj6nK4YKzGlz00PlmkAszGrF3LKZAsWVb8MSEq32XtFHwNm6zD59I19hhHDIDylMGUaQoZoebf8oHoIfCr8bsYKTP6aA6gj4t1RhbSqR0wqf5pSGxvkTMg5cGSekutnlwoDLV5+hA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779445129; c=relaxed/simple; bh=2iSupFAJn6WtJHhPNlyOKraCP+YkbuT+aBwKAfdYoO4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rqBmStDtnELNgMoxKh5SAena3/WmfV72PF+ayhZNB1FTvntjzw89Dkl8uFe1ngjDh4Z6PKHR9eGMFY3mWT1G9i6RgJbr1SdjeOM99z2o9LY3jMpjKjnYmwsuVPM5gVRYSaT9bmVrt2D2HPnOVtiGlxEgM8mqJ5iHSjRyg/DePmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kL2sobK5; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kL2sobK5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AAD01F00A3F; Fri, 22 May 2026 10:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779445128; bh=gzq0ouywBIfZI5tPxbNKr6btyYhJQupzX9OFQUpjMEA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kL2sobK5lJAlo1wLEv7GhhZOjTum5UKgAf4kPF2BqNxNkVJBNNf73k5ZRQfeEKwhB x48WIGgCgUJOyyDf9J8xHNVhnuzwr/LpZcItr1gso0FSw5/DVfavBsgsffYMYdo708 3G1y25zKZtwZXig/VtT0BPwxRJGEMslArTaPCFmTVmMkyCAH0qjJPEUMwkQjCuTHjo aDNDqNRR1Uhdya6+fRYXaB2Hite02GC5JksBNTE8R0lE8tcQ7+tojEn1M+zgeP1AB3 uR1L2/FLa5i+X3F0qInxYRCqUeSu71m6Rj4Odrtr46auHH/OqGEPI13dn8FJ6eVah6 E0a/zDvzOBWzg== From: Claudiu Beznea To: wsa+renesas@sang-engineering.com, tommaso.merciai.xr@bp.renesas.com, alexandre.belloni@bootlin.com, Frank.Li@nxp.com, p.zabel@pengutronix.de Cc: claudiu.beznea@kernel.org, claudiu.beznea@tuxon.dev, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Claudiu Beznea , stable@vger.kernel.org Subject: [PATCH 08/17] i3c: renesas: Clean DATBAS register on detach Date: Fri, 22 May 2026 13:18:06 +0300 Message-ID: <20260522101815.1722909-9-claudiu.beznea@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260522101815.1722909-1-claudiu.beznea@kernel.org> References: <20260522101815.1722909-1-claudiu.beznea@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Claudiu Beznea The controller uses DATBAS registers on TX/RX logic. Clean the DATBAS register for the detached I3C device to avoid issues. Fixes: d028219a9f14 ("i3c: master: Add basic driver for the Renesas I3C controller") Cc: stable@vger.kernel.org Signed-off-by: Claudiu Beznea --- drivers/i3c/master/renesas-i3c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i3c/master/renesas-i3c.c b/drivers/i3c/master/renesas-i3c.c index c009d0de6a2b..d32646deb69f 100644 --- a/drivers/i3c/master/renesas-i3c.c +++ b/drivers/i3c/master/renesas-i3c.c @@ -922,6 +922,8 @@ static void renesas_i3c_detach_i3c_dev(struct i3c_dev_desc *dev) struct i3c_master_controller *m = i3c_dev_get_master(dev); struct renesas_i3c *i3c = to_renesas_i3c(m); + renesas_writel(i3c->regs, DATBAS(data->index), 0); + i3c_dev_set_master_data(dev, NULL); i3c->addrs[data->index] = 0; i3c->free_pos |= BIT(data->index); -- 2.43.0