From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 C466112C468 for ; Mon, 3 Jun 2024 15:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717427967; cv=none; b=fi/540cblsshC/ZDs3T4BbTsbHb8ABUwK0v/lF5E2QWpm6yk7PqwGQjvqaDibUsr6C92mouhtmhuLTQ6tPgoh93pzw7pVaypnFQ2/KPaDZK8yWx3Vj1BYNC0+wOF07X/GfuTQdJtinn4Yy1GvvhdrIf47JQmLkHObis5MR+9VBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717427967; c=relaxed/simple; bh=kS9r+gzpzHwBEzwPOWdmykoQ+ynbPJPkD5FCG6vUcck=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qnj3lZRbYH/fLMkQmF8JuEmEEKcqSwU1VW9cR6NJx/bmKsZY3ic4oKCGAhhOCfsTpgyZtI70yZygNRiIX63mhLSNlgln0IFompnGg08F+1qvtWqWjGXEM6EM8lVN+oDS505bSi/QCr0nradKswDX5PqwLnlSZmX9oReGB1clwdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=T8nkxOrv; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="T8nkxOrv" Received: by mail.gandi.net (Postfix) with ESMTPSA id CD51720004; Mon, 3 Jun 2024 15:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717427963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hIRjh/1emiNXMJXAEyC8Dl3UwXUntJPIvus2EcZ/RsI=; b=T8nkxOrvSFYQRPivRxw7V0hHYwWXyPBmBWQl4eQzx42OG3hdiCJG9oSpbbOeTZ9fH38l6C PM36RGn7PVI4L/oKdq1+o7ayd44NfXZEepfhNucDduLFGMPkPdgY9oCQekYxYQYJl3qXir 7WDMBQT0/UchmpWkAcko4PxIKG/QjNMga1K8Q3PK3Ccz2F7C42kSs/vmkWT8e367U5ILBo 5APTnQEpcOukQjV2BliwWuDV5aqmUsN2zgUirKo1PPffTDdYIIIWfBLtXPM4Qu3EPqIGy0 X6nBl1Mgrjldox+bbLdfRPu9cpBnv5hAPMx/rOBOaFSPKs7aiGP6ZVA3JTRJhg== Date: Mon, 3 Jun 2024 17:19:19 +0200 From: Miquel Raynal To: Frank Li Cc: alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] i3c: master: svc: fix IBIWON not set if IBI follow a hot join Message-ID: <20240603171919.02c70327@xps-13> In-Reply-To: <20240603151527.52235-1-Frank.Li@nxp.com> References: <20240603151527.52235-1-Frank.Li@nxp.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Frank, Frank.Li@nxp.com wrote on Mon, 3 Jun 2024 11:15:26 -0400: > When an In-Band Interrupt(IBI) occurs after svc_i3c_master_do_daa_locked(= ), > typically triggered during a Hot Join (HJ) event, the IBIWON flag fails to > be set when issuing an auto IBI command. >=20 > The issue stems from the omission of emitting STOP upon successful > execution of svc_i3c_master_do_daa_locked(). Consequently, the controller > interprets it as a repeat start when emitting the auto IBI command. Per t= he > I3C specification, an IBI should never occur during a repeat start, thus > preventing the IBIWON flag from being set. >=20 > Emit STOP regardless of the success or failure of > svc_i3c_master_do_daa_locked() to match I3C spec requirement. >=20 > Cc: > Fixes: 05b26c31a485 ("i3c: master: svc: add hot join support") > Signed-off-by: Frank Li Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l