Message ID | 20240724-i3c_fix-v1-7-bfa500b023d6@nxp.com (mailing list archive) |
---|---|
State | Superseded |
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 4A2F5C3DA63 for <linux-i3c@archiver.kernel.org>; Wed, 24 Jul 2024 15:46:36 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ZztEYNS9U6GEs1Nf7be9Hazl0JzcwfPBXX3dRIfYkHU=; b=Jf77Eo72OXfrj5VL/cnlmY/laj cGnEF1vHHNBXdkMSOvyO6po47d4kid861ttBW8cDvca0SDwMpb/WH8o+0OKVvj5O6p2Cr7u8FcHEB hvGjPQRG9NI/L2dlpO/5j8Nv3Uk+43GAlHCPdO0ApU7EhgJkWoa3Ki86DZ3uPnHGADKCtVWFaoMZR 1HOxL/uzs0lF2DTC97cGhsnqIa5Y323ScuhZvJbOo2505mjLOSsgpXUKTWHcVyLIfbx+y1GRDRwXR Ow4nke2qPn0q5N24GhTLf5UbQSk8gTKJLfXu48iQiag6HOMwS8f1zXzXejuq/9Ye9QJPh2kBC50Ec nt5Mnpcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWeCK-0000000Fp2A-05fs; Wed, 24 Jul 2024 15:46:36 +0000 Received: from mail-am7eur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260e::601] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWeCH-0000000Foyc-1pm1 for linux-i3c@lists.infradead.org; Wed, 24 Jul 2024 15:46:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=A5eKVmHUDVhl9/BUz0qqvhhXz6099jSlA00Y+qW/KrCfnA8GbdHKe8lRPkz4CVmSDbwC4I2exWKsmqoYhZ2IznHkJUcsD1wj9n+SFKPmc1eEExU60w0UToX1UYmaDufu5A8kqPaLQoFujsodcNIBY1YQ/3LH1XaQN9LombJQ4/ZMBfEJ5OoNkP9jJn8CCTCvB1i9hRJGoK254uCIr7zVCBh+81FVMDCS/IVBEbjTNgzTUJuA5Ek3PxO6+9AUXqVMH/aJZEybSrchT5hyybMsNxRRhaYzrChpfhUi4guM7dJcJibrj6DSIB2D/mHsGWLZERiTzkoQeRFWlaNAAXJukg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=v4JXtZRVQMARG9qMgKwkntLShr3lq15YWhLhU+kDbuA=; b=q3fvJMfno1+ven8LgqtwIzTua7vjX1+93EjwHocXR4Mu8RsEwaXFjxUSlRwZ+cr+wFdI2MQHRMYYf1S1mm8iupFtLnwKV0FZ7rp7VdUupKwU0cUI+2ORM/QB8gMu9dR1TpASNlY1S2HlQOr6oTH/jTl3lY7EM1KGoFQUBvUgAGbIAErlg9yQVUp6tkQiNI+D+pZZKAJYHOOtPZBHLKcL+ZDeUMEavrqVxzOzCI/eo/aBhxa8fzuR67GLyf10flynBAQOXQemfTlNkXUT/mlY2rL3EB4mBPMOMpV8sV7xjUxMsJHaT6Hx5rpdp1KZhZ45X4mHLh6z1AA7BWIt0VDJ6w== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v4JXtZRVQMARG9qMgKwkntLShr3lq15YWhLhU+kDbuA=; b=kAxJ7STBo6rnxGtDfqQThzNbEBHICtfj7kNiq8N7mWaaDOL4ipEhajZrcfUYwNZu12WSrTELCytJdkSs2CG53ATWZLPFm7cF1r5f4hed+iOiroakSevWagcuQ2TpfwQLkewKvt25ApG2VWqZI+bGvGJOKZNzISuGEx3XNmRUUiTjwnlfYSetKcvVEa7efCp8N7li3T1eQbUR7pY1rdhJAK4LHN62OXNZ9dTfGu6FxX+f22dBzhdIfhs0L3fDyriM+X/OgvqXHsAnwkHaMbYlBLEkujXFOqwZVezxjATZUXvAHAn5/SJEG8E7e348YNx3oNb32g13ocb9AJ3rrquICw== 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 AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Wed, 24 Jul 2024 15:46:27 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.7784.017; Wed, 24 Jul 2024 15:46:27 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Wed, 24 Jul 2024 11:45:52 -0400 Subject: [PATCH 7/7] i3c: master: svc: manually emit NACK/ACK for hotjoin Message-Id: <20240724-i3c_fix-v1-7-bfa500b023d6@nxp.com> References: <20240724-i3c_fix-v1-0-bfa500b023d6@nxp.com> In-Reply-To: <20240724-i3c_fix-v1-0-bfa500b023d6@nxp.com> To: Alexandre Belloni <alexandre.belloni@bootlin.com>, Boris Brezillon <boris.brezillon@collabora.com>, Parshuram Thombare <pthombar@cadence.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Boris Brezillon <bbrezillon@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Miquel Raynal <miquel.raynal@bootlin.com>, Conor Culhane <conor.culhane@silvaco.com> Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1721835962; l=1155; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=8AD6/oyw5maO8G3UDbDr2ZOWPiM7trJt/A903JRssEo=; b=NVQR/STY999tK82BWZmJWzz48Ldla2y+1bpy7jeCH5M3rNEXgYj2Hd3ufwIsSx2iMb2vJ3Eoo oEcZmcGFtm5CQfNO/tnsG6nnlQLD+owSo3uRPyE0hHniUOyiHRovvLi X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY5PR17CA0008.namprd17.prod.outlook.com (2603:10b6:a03:1b8::21) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB8963:EE_ X-MS-Office365-Filtering-Correlation-Id: d4e6e549-5d11-4031-ffa9-08dcabf7c77c X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?W/Q0BNTRkm2JclEAPBy86ZCTpXzJKf5?= =?utf-8?q?Memh9zOtQ26YUsSJoAXS5I2fJOS/lAd4idZ4b1vLaQJ/FeIZqOipIe25gTleI0BzJ?= =?utf-8?q?fD3t5LxlVku+S2NHY5lRUnoGSD03I3qOUywUlKhXyaMZQFU3ocqB2zj0ekFmRbUOe?= =?utf-8?q?mqA5r1co0TNpL8OLIzcIBmW6g0v7u1NFvbaIpHzth48EGeMIX3LISNuX6VMCqcrzR?= =?utf-8?q?pMOaD/EVZ2y20bMweL+vjRtz6GWZLp533w4CeIO70SG2JNYqeasDAM6zR/wj0GSB7?= =?utf-8?q?XYZ5H/04KhaALrgrKoyk30viLBt0WOfp7Jcpczk4S2HD0RSjNq5AQksMgU7Vgn283?= =?utf-8?q?Cw+7BnJjxVP1v+WFt1IertNAD5hrjDgAgW5gL9zvNz8eR0kuZlECrMtI9ogmEs9ar?= =?utf-8?q?rafUEjb3M91Lm8EzgxjMdbBz295bMPDTxNwlwrgePTpwR+tHiMt12H4D32n2xPflx?= =?utf-8?q?PbW+uHUAD29Ywwv7ndesFf2KqGS8nB0t0Oqn6occLoMG9kN9IeZUTDi0asELaJqz+?= =?utf-8?q?YWgKfUKPfxxQNwp7gpwDU+L5POwT1XnLR9225VDIIxSkOfPeNwPoMEybv4DWnViSS?= =?utf-8?q?YIT+1klTcByaIK7qV0M0C08bc/scMgM8hR8P66OogydgkzFbgAQBTFZXX4BbcYNdG?= =?utf-8?q?W0VeNl60FLOauIt8nNThnnuKe8Fzai7HWUvNdeztPJ50fypXehK1uXyFEratkcr08?= =?utf-8?q?7/QzuxanCPLhivjFHDNNxTOoNzXzM5imaeYw5xf8J26pyEo2rVQbFr70QB+9vdFyJ?= =?utf-8?q?iVHOER0VWvhNsFNA9hldVbd5S6D+NM0uQzw9TjzL4geOvl26Z/1Vbe3tkT5++1yM6?= =?utf-8?q?HmHcUJxDsEJhTzgWFh1vbnWGwlOmj7KPN7GYTP0qT+LkdUJIKA79j3h6Q9p+6X49T?= =?utf-8?q?Bcm2VxfWHpTELCJLAxrSksgndTBn7HeMhiyQPCErJTFsoU6MybTMEWksq1ZNhyUFi?= =?utf-8?q?7cSTeay3ydnqqB5lLMAgv/7z0nGK4hGcyVXZMQtq+sQD3vwhPOjSI6s2Ja44hQ+0c?= =?utf-8?q?M1gigyRVp6of191IJRlTJ4FnYY8yY7cvHOGxWEgrKTBJLGOI7ERcdSreU4RCJ/V4B?= =?utf-8?q?J5KNuoGeaCCTWw7YzpLY/9iF8s6WU8th1H4gnbz87XvJ1L6mWNX65PQvdxnlXOxu+?= =?utf-8?q?ewAZhRLERrjNnZFNp/O+cRPa7eQplED4iTzqYYzIcCxKmKBpZQck0DZ+DEFNvM5y5?= =?utf-8?q?RbXC+V4bnn4EnyAhgUMI3m2RcAk9Jg2Xgv4zjkLwqT74WkRRjg5IGAHq9a7FuqHqO?= =?utf-8?q?MRVN2Q8IAUec2jhP1lL+yAx4dNsfo4lkLzviw5JhvqRhJ6U9pnDqJvuLGrcgDaeW+?= =?utf-8?q?U0AzSfJnmk148EKzG4cT5r75yMcHWUYrSw=3D=3D?= 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:(13230040)(376014)(7416014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?c21YE322mVyXm7JmmBn/E9cu8Wlx?= =?utf-8?q?rlfuC3gFq55ARDAu3jL+W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SN7EJBv3DDbU8xdjlbGYERHl/Xmg9ugR8gNusWc7?= =?utf-8?q?9uM8tTIssOVMVGFg4PiESnd3rsjldts3CzswyKEz4yiANBkTENNaIi12cdN9zRbuj?= =?utf-8?q?CwGWVtB9q+wvdQuxzCfLkuAGNGEZX7+h4M2c3pzlRimCSbLB+wj0E+b7HdUjvoHeQ?= =?utf-8?q?3czJsqkDNsrPhdyzq5lNVmpfWIRepAnz4B9bmQQ6WSwa7BMcQjw6roFEH4rxZqWTf?= =?utf-8?q?iNJXBmnkVeohDWVg2EVB3Ncr9LLLuGmy5NFCMMTio/c56YcNdvI+SyEBUUA2pZM+D?= =?utf-8?q?hvyVlODZU+sFLv0MIzZxIVq0sCjyu2YSEShwV9j1cs+spqpZwQxR+L9TOfJSrcY82?= =?utf-8?q?nO2SoPlDTa9AdDQOlwTU005t1fEI3FmyY1l0NEOijO4QoFUnl7/SU0J36nw+46JBT?= =?utf-8?q?FIDkAJAQRY6LB9GBgj0RpUhVXb6fbVbQ88tQB8oCXjN0wHmu0bbjB2d96Ch18+RsA?= =?utf-8?q?HDjNFuAxqvfRPHUQkhRqfntqUqmSnOGAxLuUXWzmN1slkZtTpFKcEdgU8IJzBCfer?= =?utf-8?q?cBb1NLCMTmvUx01XIYUaR3y5cHDr3DEdsH/04eKRlOshMb6dz9QGlUPJ3ONH5Ac/7?= =?utf-8?q?VarRx+Q5od5X?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4e6e549-5d11-4031-ffa9-08dcabf7c77c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 15:46:27.2991 (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: 4PlNxrwA3uqt9pkxnGLUkZQp7NmCZMLJIPQkV8RG3k+N+Be3hipRJOGuHnUhn65xzp0KGLEnSdWysdyiPHYIRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8963 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240724_084633_550528_9C79C3DE 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 |
i3c: master: some fix and improvemnt for hotjoin
|
expand
|
diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index 5d19251238ff8..36e01d0430747 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -1113,7 +1113,15 @@ static int svc_i3c_master_xfer(struct svc_i3c_master *master, * start. */ if (SVC_I3C_MSTATUS_IBIWON(reg)) { + int ibitype = SVC_I3C_MSTATUS_IBITYPE(reg); + writel(SVC_I3C_MINT_IBIWON, master->regs + SVC_I3C_MSTATUS); + + /* Hardware can't auto emit NACK for hot join and master request */ + if (ibitype == SVC_I3C_MSTATUS_IBITYPE_HOT_JOIN || + ibitype == SVC_I3C_MSTATUS_IBITYPE_MASTER_REQUEST) + svc_i3c_master_nack_ibi(master); + continue; }
When the address is arbitrated at send address, the hardware can auto-send NACK if it is an IBI. However, manual emission of NACK/ACK is needed for hot join or controller request events. Add an event type check to send out NACK if the event is not an IBI. Signed-off-by: Frank Li <Frank.Li@nxp.com> --- drivers/i3c/master/svc-i3c-master.c | 8 ++++++++ 1 file changed, 8 insertions(+)