Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1258211lqh; Mon, 6 May 2024 01:55:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpNi+cmg0sdbpfpCDtEirmIVrX14CIjjDwzF6EVNYXiXEsDqRp3bZ2SHupMnQxNk5nJ8rklnzvt03ORuo4Ke3sui70wRA5XkrvwbhPfA== X-Google-Smtp-Source: AGHT+IG1VzmkF8uWnGI24YAlWK5Yeu72oKzq20RVAYBuIoLFqf2TaquVnx4DCX78XG0/M6XQDNHu X-Received: by 2002:a05:620a:4009:b0:790:f047:ea5 with SMTP id h9-20020a05620a400900b00790f0470ea5mr19705747qko.23.1714985703253; Mon, 06 May 2024 01:55:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714985703; cv=pass; d=google.com; s=arc-20160816; b=KF3y0Ffb1jlupgIWdu4sEwu/s5eQgQffnE1tN+p+0zahvhZPPV03cVP+9I/sEIqo/2 MWF7OpqA2ve+VphlXWm8vpu1eF4y/S7uhJtveNUi4GdbvydO+kqmxn+vay1JTb3jxpVG TRtKFSsEoE0o89gtSaUwKn5p76nZ5mq0ViRjXDHKSQbwYtyj/GvAFXNc8Cw3+pTfZPUk kUT2AqHLZqxo5VttWYquHNa4tS6t/3d6S9g4cgbS8uBOZHvZ3pJK7PGoIFdi4YqKJvd7 9YuitD7PwksTcObr/mxOqA+M9WCBJjfeNiyHJckeMGxT0KHm9s/MwY+p5+OROUv+2kGK pNcA== 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=YXrjSateGikcCPRPsOAFErk3+6M1AzwYZKnymVg6nJw=; fh=f3l8WvnxvQ6LavwK0qXcigy5nFgnPaY1Je4dIKntvlA=; b=lQNFD0RkdzpRQ3P4lBjANnJdb6J8O7gXhDWFCJoIDeBsuISuZ+5TeTtzjciGnTv/fa OC21EqLF79/tDKP8GTI+ylbziCY4L0nGPPM8kO0YZFjdEYg/fbwQ1H2GDyVa/oBHN+TZ F4DDIObRsUrxqAqOAh0bYsc5YfGO7QfFF3GVcnEHE+HmvewgjQ1PrhwT40bXd0nIY7y/ hobzZYzOeiY6yTHEHivf4zgdxl3ljePxNXGujCBGaj4ES5S+Da5TuyHgPfiLVpG+8jp+ sO4UltncUWQnH/beNfubrhzqAZIH2Z/4Vy9OSQb72qHcMU22dxK5DWlGnuTG23yvjgIG HnYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ApPpNERI; 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-169537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t10-20020a05620a450a00b00790db0e8aafsi9633516qkp.130.2024.05.06.01.55.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 01:55:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ApPpNERI; 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-169537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169537-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BC23E1C20CF5 for ; Mon, 6 May 2024 08:55:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64FEB1420DA; Mon, 6 May 2024 08:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ApPpNERI" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 D31BA13774B for ; Mon, 6 May 2024 08:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714985696; cv=none; b=bfTGPR/NOPKYsfOZXpCYpXq88peujPhC4WNPW21uVIioqx0HBLsVn3GzhxuoO3G31fmTL6QfoGaAgvDhtq3KQfcditbF64brNFprhc7MaejaNNfEFVFi2/8BF2t5ldiKrAf2MHFXvOOwd9MDxiRfi9MH/aw5uWJe8A03ctTtkdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714985696; c=relaxed/simple; bh=fD2iXQIxQO1O7t0yL8276/zUtOXwPZze/133iLrLiNk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rYI8v69U2w6MsauRPwKJTYxBhMDYAP35vHjnr/rqXScw16aoZZshnCJgzhhGjJ1vpE4GoiEOPxWt3iN3O/zxd4DrAb8jF8/Ml1yTsGw0wDXDRsB9t2pbH9i6nC705PP9vBMCr1uiZWNSqKgLFHlyd01iyTp7G9zC/dud5F5zC/M= 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=ApPpNERI; arc=none smtp.client-ip=217.70.183.198 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 80946C0015; Mon, 6 May 2024 08:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714985693; 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=YXrjSateGikcCPRPsOAFErk3+6M1AzwYZKnymVg6nJw=; b=ApPpNERIDYb7v5HNNv2O3UmGLL3XrVpcmUG/KTbGeWUn0nSwFZ7Y1fOQG4eLDDMMLFXZjN IVNxqKtITNEsAIsD+5l1wCshGzNAszAec+sJVNetqbe/zDkUoR95xvspSzimcIBmE4AVX9 bzBlCLmqpedbcg9BRsSLQ9G378ogtXYUTGg74IcaE5nsk/XIaDocF1jbTL+pwkbORC0/cB ci8mGZazK+SLG7XWnZsEMQarqfKQyNXGd3kHgCboKm/B0FNlxkSN37jt0vCU+qJnvfYCDC wVSkUHiUciz9ceslcnbEnu6PJanl0Int2TrGEnpGVpyqO+akReJJY/OyNKpSyQ== Date: Mon, 6 May 2024 10:54:51 +0200 From: Miquel Raynal To: Frank Li Cc: Conor Culhane , Alexandre Belloni , linux-i3c@lists.infradead.org (moderated list:SILVACO I3C DUAL-ROLE MASTER), linux-kernel@vger.kernel.org (open list), imx@lists.linux.dev Subject: Re: [PATCH 1/2] i3c: master: svc: change ENXIO to EAGAIN when IBI occurs during start frame Message-ID: <20240506105451.26e40778@xps-13> In-Reply-To: <20240424190030.857632-1-Frank.Li@nxp.com> References: <20240424190030.857632-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 Wed, 24 Apr 2024 15:00:29 -0400: > svc_i3c_master_xfer() returns error ENXIO if an In-Band Interrupt (IBI) > occurs when the host starts the frame. >=20 > Change error code to EAGAIN to inform the client driver that this > situation has occurred and to try again sometime later. This changes slightly the user API, but feels legitimate at the same time. Maybe a comment somewhere in the i3c headers to clarify this possibility might be welcome? > Fixes: 5e5e3c92e748 ("i3c: master: svc: fix wrong data return when IBI ha= ppen during start frame") > Signed-off-by: Frank Li > --- > drivers/i3c/master/svc-i3c-master.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc= -i3c-master.c > index 5ee4db68988e2..a2298ab460a37 100644 > --- a/drivers/i3c/master/svc-i3c-master.c > +++ b/drivers/i3c/master/svc-i3c-master.c > @@ -1080,7 +1080,7 @@ static int svc_i3c_master_xfer(struct svc_i3c_maste= r *master, > * and yield the above events handler. > */ > if (SVC_I3C_MSTATUS_IBIWON(reg)) { > - ret =3D -ENXIO; > + ret =3D -EAGAIN; > *actual_len =3D 0; > goto emit_stop; > } Thanks, Miqu=C3=A8l