Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp155863rdb; Wed, 18 Oct 2023 23:32:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYZnONtuSLzHOur0hv9a5mnE7Q3uKUze7VVoEgmaK+/ooN85GCs1zp95KsJULBZKfk+duq X-Received: by 2002:a17:90b:2388:b0:27d:dc9:c67d with SMTP id mr8-20020a17090b238800b0027d0dc9c67dmr1162630pjb.36.1697697139836; Wed, 18 Oct 2023 23:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697697139; cv=none; d=google.com; s=arc-20160816; b=IZ8gv6BnU/ZXpxVoJoe6APjHn9nVN2fEcaRdz27BGoMsuC+U6UabslZLWvHXE8iibL 8GRYvlmxIh9Xvc4W/ZvZgCAR7e09gZLfPxvEtvdJH9wkgDm0G8NrYn8X6e6H7qrSrMRg Z+O6cEolZEXoM2KH5tDfQl+zvmYschgL50HVVqcMLfTZb4Ggm/MTfphd59sUofwClLKX 69B18ZUPeMbEhqlFjsVsx0BkdEL8Eix9/qCF/EQhVYfGhVAz6fO4NUVh9CTRlpmaHGm4 9jAR7duRP01y8DBHMU4DZ+kNOBILJW0RHQJHL7rCTgqQ5fCGTuCScdwTCM32ozbQa7CI kGpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=PxEr3Vdk9ayXK9kV3+O24G8W+TiMjxVEUmGPMuzDVM4=; fh=2xI9wzEGy998P8XI6mhOllPkUHQsxCfN9aU+/WmuZw0=; b=KxxcnOlfk7buF3/6f8ZjxC25mMxPiAwotluAGhFM7gI5+od0NM5MfcCWyIOb9Yipp/ ZQtHocmD1sxqk6LBT4hggb8SSZAQQUEr7M+GzGKr6+6Z0AB70x1qyRCNFL1OwYxd272X Pge4ORc5tC/YA60UBli2q7BDy1xAJUDfbvGQtjz9HjbRZzg0M65aEPp+BP573xKj0VLX KMyZwBj3xMYwT8vAjNYj4GHenHqhhYVwzmlMod7RORS32pNSab8WP1bXwN/IS38kR+Ya Hf1xg3QqXqAx8eoKBthLqU2MT1rm3NDLA+gp1iF5NSGLDrN4SIXtTkrWDdQQRLPvc/zL WiUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fuvTJqA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h19-20020a17090aea9300b002777081181fsi1427015pjz.51.2023.10.18.23.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:32:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fuvTJqA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 26561810AF77; Wed, 18 Oct 2023 23:32:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232670AbjJSGb7 (ORCPT + 99 others); Thu, 19 Oct 2023 02:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232383AbjJSGb5 (ORCPT ); Thu, 19 Oct 2023 02:31:57 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDBEFE for ; Wed, 18 Oct 2023 23:31:55 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4651E1BF203; Thu, 19 Oct 2023 06:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697697113; 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=PxEr3Vdk9ayXK9kV3+O24G8W+TiMjxVEUmGPMuzDVM4=; b=fuvTJqA3k5kxHNR5Hvihjvm6FlelgtmEY6TTMUTffRAflGVS+zjkrIiabIpCjn/0tChyNq Y3LdIQFSBOgJJraBcairiwgN9ZDgz7oo4hgOAIT6BFP3Z2yRC2hLfm6T7xf6ElbOUR/bxh IbCACnyE4gCKt0Zb6bAh4j2I/ZmjM8GzpBrZkDBPz/yMJrK87u+3cHpSX53SpoAGGz7jcJ ZVtC8dCQPt4p3jdZdpnsz1X6CFq90vpe7biGKzn5uLPyT/QLdWrbDCXRNibBhnKXzokm/s XL0Ljm5IZflwaKHHEDB8H7VngAdR6Dv/31jz5wfqrzxfYsStUq2uzV6xLNLorg== Date: Thu, 19 Oct 2023 08:31:51 +0200 From: Miquel Raynal To: Frank Li Cc: alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 Resent 5/6] i3c: master: svc: fix SDA keep low when polling IBIWON timeout happen Message-ID: <20231019083151.3bd10536@xps-13> In-Reply-To: <20231018155926.3305476-6-Frank.Li@nxp.com> References: <20231018155926.3305476-1-Frank.Li@nxp.com> <20231018155926.3305476-6-Frank.Li@nxp.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:32:16 -0700 (PDT) X-Spam-Level: * Hi Frank, Frank.Li@nxp.com wrote on Wed, 18 Oct 2023 11:59:25 -0400: > If IBIWON timeout happen, SDA line will always keep low because miss emit > stop. " Upon IBIWON timeout, the SDA line will always be kept low if we don't emit a stop. Calling svc_i3c_master_emit_stop() there will let the bus return to idle state. " With this commit log, Reviewed-by: Miquel Raynal >=20 > Call svc_i3c_master_emit_stop() to let i3c bus come back to idle statue > when IBIWON timeout happen. >=20 > Fixes: dd3c52846d59 ("i3c: master: svc: Add Silvaco I3C master driver") > Cc: stable@vger.kernel.org > Signed-off-by: Frank Li > --- >=20 > Notes: > Change from v1 to v2 > - Update commite message >=20 > drivers/i3c/master/svc-i3c-master.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc= -i3c-master.c > index b113460f059c3..1a57fdebaa26d 100644 > --- a/drivers/i3c/master/svc-i3c-master.c > +++ b/drivers/i3c/master/svc-i3c-master.c > @@ -404,6 +404,7 @@ static void svc_i3c_master_ibi_work(struct work_struc= t *work) > SVC_I3C_MSTATUS_IBIWON(val), 0, 1000); > if (ret) { > dev_err(master->dev, "Timeout when polling for IBIWON\n"); > + svc_i3c_master_emit_stop(master); > goto reenable_ibis; > } > =20 Thanks, Miqu=C3=A8l