Message ID | 20240506164009.21375-2-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A30DDC25B4F for <linux-i3c@archiver.kernel.org>; Mon, 6 May 2024 16:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=To8uj0MvQ/cRmPNmuEEmCuZoRBF2WtG3jLLPflxTPeI=; b=M5quIrCnbEB84B /N0Y2ke9ITGWOZ3wS0/F0TY7zouiSkmiPcgM6Ef4DkM/wGB9S1L+d1Hq/FqKGDCp/NIfxASqg9Aki XesjrKFRvsFRPp8xgFnD4+7l4UlA623VhTLHOEDF7A5DRp6DAXPsPjIb3FFbmFvMSs+SZcHs0FSwA pP/LCBFaGQZXOAa8rfe7oYCgAdSoAQxOZvCzYatukns+4kFKspAQ3P7+bLNHUTEacrmk3JZjj/fC1 jPtPHygE2gk55j6bm5Nr+csMG2Y8mRH6O3qv+emoXnZqqcxy5BDldTce2KUd4+Ggk7AScXq+1JDPx kK45UFCr90J+zkXqRuag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s41OO-0000000873e-1Cyb; Mon, 06 May 2024 16:40:44 +0000 Received: from mail-db3eur04on0618.outbound.protection.outlook.com ([2a01:111:f400:fe0c::618] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s41OK-000000086xi-3LYa for linux-i3c@lists.infradead.org; Mon, 06 May 2024 16:40:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KPRbGu+2PLXIbo+b+afT92opVe0JhYE7dsM8ZxVfo9e9NlDxusWpM/3lLw/PTTSrEgatQGUdDklaK7RWE+AdoBaA4lL4vswAlrcdKmajKO9RXKjj5D2XG/aWwm0r7D2QpcEXtYmhCQqnAqyN8oZ8+8guQvZ6J6fhgvHAwpD8laPdnvbJOa3YNwdq+AHpiLjXhXHHxiXZLBlfF/MnHGmZkVBn6ozkYmWX0Yz8mnxJuRJ1px5ZDbgdhlLslBEaXz10o52XLtuUPtQuQdQnkTNJIPm/oxwBUpYz+F3SeU22HSocS53kUhMZ0d1eYq0kBj7ZphuXdTF90qD5ZR5zFV71xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RZa3Ui22bl0O+Rohjhbh5GVtdNA8CI3VASFPs59f3Xs=; b=DMcBMOt7T9AwXerGTR+yQekyOdXGehLgYFKyQBtxYiiEIffUfrV9+aaiyFpB7fHK25MTnx6itOoyQXzqoY78o/40bHZPqQ4pIhpzc78aAhp2ILjZRhA6STXK07N4HSDkxB2c9bgCc8ZFP1IA5E9POaLve6+g0S4Nq0f5VOVjbU++4EbR+Ze8kvDV088BwQMl3t0rcuFhLn6h08ATwiOVeVeL03MOalMtY0k1cfO4XxSSFdrWZL2gnX1M6wOgz5RGJnkijk4gnwWnm3XFQAY3NZeeEQPp+KThuyNavOUMe5VIzqfxnZMUDSavwrp1hgF/aubgdiEYwmKkHUfvyV8RTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RZa3Ui22bl0O+Rohjhbh5GVtdNA8CI3VASFPs59f3Xs=; b=aMOuE3eLtkFy6iRLqP6IHrpoYILrz3mV5ff66uK1V1ertfaf0HZ+v+iPlv5KkJaqe7TGEKz3mh0Gr1pjesfVK+GmYiyY7FAc8lWq520oj/L7RrkKcBubsiuvvBMDkC7yuV+nOHT2IUpqMPLLS25e+Lm/QjAoDxD2vpnRx9tVT2I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB9049.eurprd04.prod.outlook.com (2603:10a6:10:2e4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 16:40:28 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7544.039; Mon, 6 May 2024 16:40:28 +0000 From: Frank Li <Frank.Li@nxp.com> To: miquel.raynal@bootlin.com Cc: Frank.Li@nxp.com, alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] i3c: master: svc: change ENXIO to EAGAIN when IBI occurs during start frame Date: Mon, 6 May 2024 12:40:08 -0400 Message-Id: <20240506164009.21375-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240506164009.21375-1-Frank.Li@nxp.com> References: <20240506164009.21375-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0296.namprd03.prod.outlook.com (2603:10b6:a03:39e::31) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB9049:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ca8e3ef-70fb-45ca-4c32-08dc6deb3cbe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|52116005|376005|366007|38350700005; X-Microsoft-Antispam-Message-Info: caXBGyI0hsfDtUD08pnPfAfozW94zQnHmy7012Fs5n4AHkqeQcTgjkBxB7oi+NnM6A8QAhkSxOGVs/ydYFkwAT/ZyS9+rIFj54g9AfbhunaXp8QXaDWhvNDV5Jw5UG1U6u1xEJkUqYEtPcH3OMvcG+d1p6mpmDjEBN36PI7BY8P5j83GhKRViCwA3TW4GxfHlgFykHvEqr5P+deXysrhZ3kyILIzr0JwFBS5NWecytnvfa/YoyeTiz7eucGqRzZxH2UMDnOkSl84Qoi+b36IDDVThA4oQa2m3XjzaaCQrk31BrxfJvV3tRxpgk5wwB6RpijQxxb/pV9IwBkwRSlfbrNfnTT4BIB1tzJ4TfkGM0eT4mOe1+APT5opbVmYkjw/Z8/tao0neJLt5GsB5kKvZKYjjaIJs7anGipr93NAZv93URapKjV6yEvecJILM1W2nrSxhRO7AF4QFgFEq06tKtMNnyJg/TrvKsDf8PZFLRioUgKcJcPrm7AC3G7o/R7inrMTbKoC1P0Yx4D0q8Ujpl/P6Fm0k4pgCcJ7w+A2m+jeKUB3NnhczLvZ+NNsgUjbl42P6CLVshGs24PLZTFOtyHG8ewHp4g8/tqXA4Je1gKk80U35wF3GsOjJtR3oICOv1HtwVpK8belXbJ5HNLb7xiB0xY+Fc1POZF0NlxpwcztxSUYPZQcrb8a+lY4HeA1AJNxpRhxhntgizF1j18P1G6Et1uajlwlsZdTMQxKsNF9Nk+XmLLkM9ZiAWOzYBszvbe+5id3fewVd+V0Zv2llYMAy9NLn7qDuf1k63qrQJcYuUIhUJ+kU62Rh89VVXGAmZI8LFT9e+aYY04C61M57nVYecIbjrPsFZvJdPoijXrGvBovncLRrUHFZsPiCoyKrsdlBFnBODmheurANELVWALDeR++bzMq2l14NlqKAyrGhNLYVaYB7edXCHQHMeScOkL4vSn1egX1IujkY4vhqGsdcJe/ogzM265HM+W4KOW8c7UF/eo3qSDmTQJ2Y2CKz1JsHy2Uy8Bp5/c5mmsxPPiEmjsJRMCf5DSbFB/m1Xi0vi1iBUf1fLiWTYNti95wKXvc/fuh8xFwFyO75cUMlFLQoGjKTE/1sSFw2zadecH7I8+D5CPgiJDjsxm9Fp0m0Y8qIq31GMQma9XUc8a/qmz6rL97x4f+ajmtzlWmmG9uWgKQKpYeSgSuz3Qfhq/GMPMJnkLE2s/P51c65WmNpyaUETLEwEHH0wgHMqCm0B7tDqCTLGqKOJsQNkl/jZG5oBvnxX9/sILd5G9nAwE9Xo8/mvGD5lMDYSl7w7Yy1k4VCkuf6qDqSyXNakPF645SCsfob8kyok5LM+EsUToapQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(376005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +5w89qb59irigpgcgafwVjYHSsS1CMp6BayCPQumfBt5Dc1crZsUj0oS15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edox0YOtZKuQxCJXK4RxThTORS/miZSYU5pg9SfWUsvl1LC/40KbmuKdJ0K7QcdEy5zjfEnQWJsjcJndwJcqe6kAWOiZQaJzUpiZizlbyyIqHiSWz8/+3F71HfXlsgfBjPGHRUuf1VEc5D9Gk3IFB1M9QbdJQ8fiU8AyIOw1byjCXT9svQaJrhBsXUHFFnwYd0ettnyLVBmF573s/MVnybbeCNtlKQ/ZHQmDbPiIb7qvZfteD4hgLerzOVpHQ5Y8+PukwfD3cQAMwlYpRM0RbQGtHSpZGNzIC6Xle523u20w6u0eAY5JlPuezkIR3ugcTkYaRf4ue1OGLAkgut8uNcJGeOBcZx26gf3UyswHi6sI0lotCVyyOokxZE3y18hH1K9Z7sdt0OkBJBm1JhhigzfsH3zTnra7PlGlnhKRFiaKVpwV4vy6fMNGl1JmxEs= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ca8e3ef-70fb-45ca-4c32-08dc6deb3cbe X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 16:40:28.6499 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ONRGNs81xPviuHXw2IOpy3vjszL1+nsQAHD0kErRpCAskRE0FasWl9RGM/VU5ed8NHp0C/5TMAKoT9szWoGyww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9049 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_094040_886583_C39A6C5A X-CRM114-Status: GOOD ( 11.40 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-i3c.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-i3c>, <mailto:linux-i3c-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-i3c/> List-Post: <mailto:linux-i3c@lists.infradead.org> List-Help: <mailto:linux-i3c-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-i3c>, <mailto:linux-i3c-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-i3c" <linux-i3c-bounces@lists.infradead.org> Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org |
Series |
[v2,1/3] i3c: Add comment for -EAGAIN in i3c_device_do_priv_xfers()
|
expand
|
Hi Frank, Frank.Li@nxp.com wrote on Mon, 6 May 2024 12:40:08 -0400: > svc_i3c_master_xfer() returns error ENXIO if an In-Band Interrupt (IBI) > occurs when the host starts the frame. > > Change error code to EAGAIN to inform the client driver that this > situation has occurred and to try again sometime later. > > Fixes: 5e5e3c92e748 ("i3c: master: svc: fix wrong data return when IBI happen during start frame") > Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Thanks, Miquèl
diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index fd8de54b13667..94e4954509558 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_master *master, * and yield the above events handler. */ if (SVC_I3C_MSTATUS_IBIWON(reg)) { - ret = -ENXIO; + ret = -EAGAIN; *actual_len = 0; goto emit_stop; }
svc_i3c_master_xfer() returns error ENXIO if an In-Band Interrupt (IBI) occurs when the host starts the frame. Change error code to EAGAIN to inform the client driver that this situation has occurred and to try again sometime later. Fixes: 5e5e3c92e748 ("i3c: master: svc: fix wrong data return when IBI happen during start frame") Signed-off-by: Frank Li <Frank.Li@nxp.com> --- Notes: change from v1 to v2 - none drivers/i3c/master/svc-i3c-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)