Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1033939lqj; Mon, 3 Jun 2024 08:19:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRpQnBFLBGVNM/oRMGtcxQIAM0pE34JSMdqphn+FvJQAsX6TPq7RqCePvTQ31qSIKQmwkuclDNHpCrWUCui5sL2hyHUKNjl8va1p/Zpg== X-Google-Smtp-Source: AGHT+IHqHVJ2YNPG6s5Z3L/KUiI9IOpPYrwUdLGxI/HQmL8pWG6VifbPtRSKELJhRLzhohOXQ8nQ X-Received: by 2002:a05:6512:521:b0:51f:6a38:be0c with SMTP id 2adb3069b0e04-52b896abcfcmr6272837e87.22.1717427977105; Mon, 03 Jun 2024 08:19:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717427977; cv=pass; d=google.com; s=arc-20160816; b=W+lUxOv0Klf2OeiMaaijMjm/EASB7jiGNnyhyeW16874p0BwvyqO/T7Zi1R/hozpPY HIEF0bkU0JKEJnUgNN4qP5a0tkmgH5mOfjTb9gtMSG47SMvyamhDhM6t3Yf6AocmhR6N +tLyZybpX84p6sZM5HlgvPwnEFHG2v4g1q85w75jTLEVHKDTlx2RHaPFXfbKS9+3iZf/ TWL2KheL48om7Imjvs+m7ngx/r0FK/pL5YSBhmGZEnQ8aWvAX+PwhTjTpXd9VzHeugLC kPWnhYrphn4SiKUfM/qtQZYsoEX82uHI7S4CJUPwsw+9yEPpgcOLYvPWK+/WisfRocbT QIjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=hIRjh/1emiNXMJXAEyC8Dl3UwXUntJPIvus2EcZ/RsI=; fh=ZwwCWcXvEZbnsjffrOgaxb2NKROPXWYFb3Z62f/zOS8=; b=GYLQrTDTGqG9pfxeK66msuj0z86uKF/UWYq3SGunToad/AKSW5ALXquy53QyoqzuO/ OLmNtiT1AVIOKuplqyGWzaNn6cBh6MHAvAFd2hfzWkT2+T0ez3Ix1hiZuLHBVsMwtaai HZqh0mbXf7ZTAFAaXFQKSAmc0SV/KFc3pTzrdpXugJK3yEcrX8j68dhCbu5ZnBe64Pql v1kF7mWHWxFTci/Da5JXisF77PWJokpJ2GUBQxTmZV6oLnSziabyNKSU8ysKmUnkuYGz Kcdlq86gJZ2dO7Ius8y89AaIZTDMU7bXjCQmVx/Mkya2zbaCbCs1b5xQEEBo8VbiYyhM +fOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=T8nkxOrv; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-199351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67ea86b7cdsi390771666b.488.2024.06.03.08.19.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 08:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=T8nkxOrv; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-199351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 81FB21F23618 for ; Mon, 3 Jun 2024 15:19:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD3461304A2; Mon, 3 Jun 2024 15:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="T8nkxOrv" 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 C46186E619 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=1717427966; cv=none; b=nS8bfCHg2TG2wPZfCXkTTXIpxMj0Qx1Bn+gugtdIE1tpsy2c4Fnq7iehjsTx/Cj98iDJ18gxSWux1ReqLcPLCDnN3Rzzo5GRnt+SbtXViYJr2aWUtWaYChWl8Aq6pBfBdZzZ/sUYKwzhVhb2r8vGcvc/GmY3gGXkMijUIdcaFHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717427966; c=relaxed/simple; bh=kS9r+gzpzHwBEzwPOWdmykoQ+ynbPJPkD5FCG6vUcck=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bge1lpH0IPLFe6Um967mMtvA+1aVG7VXeD+GPbZZqCTQQDpTgdHeVwpNa/ceV53o1cxaLKtj7x3SeCPiaspsyfwnqRou181KNP4guaUnyS2Lx0wmS3/lCQtOwO6a0N4xq0hDNHwmelwWDtyFlpYM3GiUOkDrvVdn4BEoWRqbc6g= 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 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: linux-kernel@vger.kernel.org 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