Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1364005rdb; Fri, 1 Dec 2023 14:26:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQy3VooUeCjAF4+jLVUB/qGFQX7ylRUldEoexHlbVj+8KMn1+K0gTIAWuGJVqyAnusFSKa X-Received: by 2002:a17:90b:4b05:b0:285:ba0e:4c33 with SMTP id lx5-20020a17090b4b0500b00285ba0e4c33mr328551pjb.11.1701469616994; Fri, 01 Dec 2023 14:26:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701469616; cv=pass; d=google.com; s=arc-20160816; b=TUKZEQdMUEeA2orUMFwMteW16yZLaPCB8WkShBoRCsDm2TGf5D9O7+R74Wy5Eq9+2D cemex4cLpMqCB/235q7gINF6DRs0KdMCQG2DoZHqUaJ+LmVwL65s8DvBj4cNeW5sP+QM o0YXmpiV7DGI0uhf8Ri7ZqE5S/lm7CY8LZoWaM/XFbkM4ENjMYGSC8UiEC6kpTrLv42J O4AFczGKgiILd1M6EpbAMkCL4qaHas30YNIF+SG/GDX0p7xCLJrKyOpEYAOYATrk6anF j2QS2PhZv+5Vx/WxTLf6rk4UcNX9cNZVo+1C3p/h9S25YGdMI9sBlxOACwTMbkK4ZTQ9 RgTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=6eFgQTzhXUgBBMD7TmRCXQdDklufsd2YTdrjcL195Qw=; fh=8vb2sIoRRli+I3w8E7N4FdlSO9YGnQodShlscRtis2o=; b=kGHhG1vQ9u8vwm9i8yiHfMzzivxiPfj+Ol9Q/9HXSFHWrPoxtzYLUlqQn5RkLgfsoQ 4qozRbVvVKGIYQo197MGpzPAcresg0Z/Svq/mBkVsWVQKPnp23CMVFdJtNprLSO6ioV8 e598qdyKv6hFBRNRARLc6JDKFhCXJ4T7Rqt1+Bx+89SS9OMv/BMwK3Ic/e0q8JlmY7Q+ 4yY++b/2vu1BuLcpyZRlTSUpRyTLNrFe8asDPpMJle8Kkz6Xx0f7KXfyjYPsgLgp33TL TWbkYuxO4kkSTnTVZ5U9Ve6eEhuXTS9TdTK6jh5zirbyQtklOniMx7IAD9AwuJL0Gj+k oJkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=myCeoR6u; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id mv5-20020a17090b198500b002864fceae0esi2747772pjb.162.2023.12.01.14.26.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 14:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=myCeoR6u; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C36B0809BE53; Fri, 1 Dec 2023 14:26:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbjLAWZx (ORCPT + 99 others); Fri, 1 Dec 2023 17:25:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441836AbjLAWZw (ORCPT ); Fri, 1 Dec 2023 17:25:52 -0500 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2063.outbound.protection.outlook.com [40.107.22.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0649B12A for ; Fri, 1 Dec 2023 14:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NqGgZTTdb24LBybG1Lwmgxngz0YLE9O6+1XnH/tD4Qfv5oiQMmgxreDIU359A8/+9SIpE6+Ik7drvlK4/ScRH+BjXa0PkxP90NsyIP4dUnOxLUWVXXpg8loK0eNGUfL12lP/zv8IpCd5N3mKLpLsJmIIwGH5NXkU5wB69Trqx6bom9lpobKPrepVUSvfSDWbSzY9otcSuKEG/OeGwz6BzBJ6BrijWjnDKCATt3XyY0n4rKke8CgE0KjKjwsEuzgFIFsk3NRsElUCzO4WSPhIzMfPMSd9ONoVGI42Ez6oIj5cNqP3noRGoygYgJ8PG1KGWKA6Y0t6fuENUaCSZwl+SQ== 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=6eFgQTzhXUgBBMD7TmRCXQdDklufsd2YTdrjcL195Qw=; b=kPNJwKuoeBpgguohAuUB3E+gjdNGRTEMn3q00rdp1vPAdeEbvhKJdJQH//HptrUcclDeMP+13/mC8lhZ7UdvGUYPoM9MyZMRk1IY41Fn5gTR1ONYFKiQs/yrIWTnPbI+r5IgmoTT7Dw6QpheKpssLD9o9EkWBTa8SNv1/YCsx0/Tusn354s5OHHsUu21On6o7yR1OSpqLunJO9OiSH2LBhGtTjQnLIKkfTGmXmDoTytIKB3tf/bTnWa7gTv9v8XEjsqpeU07CbJbnKGqAj/M3XkxMMZFS0/61/yrcp9gVxJmVxnE2UGnH1zgENgghI7lMS+r7yRdL+OkDHJ9Dsd8Vg== 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=6eFgQTzhXUgBBMD7TmRCXQdDklufsd2YTdrjcL195Qw=; b=myCeoR6u0iP2kKCxLeCYwgD1I+OFCfzhgxjgq50qLrNTxbUDxmqeIJAkDUFJdqS66H8IscKwx+B4WDBiu8QBQfsGgDlbx1pt6ryTN8yaLg9wGJq1XggSjWHn4KJNbCPJf1uch6xmRpTSUzdZuy7uTaPiQDTN06M7tG0NGk6GIv8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AS4PR04MB9573.eurprd04.prod.outlook.com (2603:10a6:20b:4fb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.13; Fri, 1 Dec 2023 22:25:54 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%6]) with mapi id 15.20.7068.016; Fri, 1 Dec 2023 22:25:54 +0000 From: Frank Li To: miquel.raynal@bootlin.com Cc: Frank.li@nxp.com, 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, zbigniew.lukwinski@linux.intel.com Subject: [v5 resend 0/6] i3c: master: some improvment for i3c master Date: Fri, 1 Dec 2023 17:25:26 -0500 Message-Id: <20231201222532.2431484-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BY5PR17CA0022.namprd17.prod.outlook.com (2603:10b6:a03:1b8::35) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS4PR04MB9573:EE_ X-MS-Office365-Filtering-Correlation-Id: 63e91613-960f-4baf-3a31-08dbf2bc7b6d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: stj4D0qR14wXPU0eYxG2PA4aQbLEX0oIP/sMnPALSQqDMSrOMheiz3ZnuzY1c7f+ECn8Og7PNHVBHW1/NYc0lqpgj2t3RrJYRGdaTuyDwL40P76TVC2wXXWUxLrJKAKYfugw/ZD9xnK6+dDydENwKjTzLRyKtsmHdy3B3dSPjMYjrrah1rC7WVy7AbaP02K2zy6uljXX3VtgRbMckmMx+zZssMv+rkQtLfMaqaNEea83kousypflPA6sFx4hPjFzfSMCKh0InmYZXJZjfC1jQ4Rwyhj57kfKgwUBLeXZ7sBd9Eoa5PrTpmn8Z+BIdyTTj88mzw66fOQonZnAPoJiVbfyg6kDYVLBFRQiFBJyM1JaGVVvxC+7uihmfm+Qei8BxHKNZ9jqIGoMvuDUsA/qWk55RFjsNTtk5Sod0MGYegxI2iQ8+esXoIaNZY+VzG0l3HVfMsLiJDNnfK/uJDOPoA1pC6c4DNWkuiRPIzD/8U3vgJ3e8E/BMtIKGzEocgxMkL+xscsXXJp1CSy4owoX1riaXY0qD5GlVc1tO2AVMO7wueWJiAYnU9hpBkoNMGUFC036ymFl6JCHzY4j+XQ3QdteeAB/IvyFLq/r2PVsZ/jaz+T+R/6CVFzG8boc0avNFxCSRScfwO46VK/Ud+I26Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(346002)(376002)(136003)(396003)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(83380400001)(86362001)(6506007)(26005)(1076003)(6666004)(52116002)(2616005)(6512007)(41300700001)(5660300002)(8936002)(8676002)(6486002)(478600001)(4744005)(2906002)(4326008)(316002)(66556008)(6916009)(66476007)(36756003)(38100700002)(66946007)(38350700005)(42413004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZTlyOVhUeEV5ZjZzR3hUVGQ4cDh5S2hwNHN6ZEUvaC9OSkk1OFFCcXNJcmpN?= =?utf-8?B?MWdHSEV2TXQ4WHVZdEZES0xJZGw0blpjemxTQktCSG80UnprSjAzaDhoNVVy?= =?utf-8?B?c1dRZTBnV3huL3F2ZW5hZHg5bnMvT3IyTlJMdHdWM1ZSNHNEQlUrQk0vd29W?= =?utf-8?B?NFNlQUJSNm83Z2RyLzM4aDZHc2dJRU5DeDIxQjdIRGpTVlE2N0poVDlNcFdN?= =?utf-8?B?TE9QcHRPSEZ6QXNhZWxMN2NUOEhOT2l1TnpqVVBTcldYQWtCMXQyMFRYUmNX?= =?utf-8?B?WjhtZzFVOXRwSk4ralpvK0JqSXZtYm5GSXFtbm9XOFA1QVhIbWU1VVJJQ3NC?= =?utf-8?B?a2xUQU51ajNIZ01FbkJTWmxPMjk5cE1wQ25xWTJWL2x5RllTbjdVT1ZMZFZl?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message-Id: 63e91613-960f-4baf-3a31-08dbf2bc7b6d X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2023 22:25:54.5257 (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: /BpkKVtYVRtY1FvNhFawj3bGEqDxXpPE2QzIjxb9WTnB7DbpNIP5mhcd9gb0u6xgtWmW1D6qVUDBxApYv9bmYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9573 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 14:26:11 -0800 (PST) There are three major improvement 1. Add actual size in i3c_transfer because i3c allow target early termiate transfer. 2. Add API for i3c_dev_gettstatus_format1 for i3c comand GET_STATUS. 3. svc master support hotjoin Change log see each patches Frank Li (6): i3c: master: add enable(disable) hot join in sys entry i3c: master: svc: add hot join support i3c: add actual_len in i3c_priv_xfer i3c: master: svc: rename read_len as actual_len i3c: master: svc: return actual transfer data len i3c: add API i3c_dev_gettstatus_format1() to get target device status drivers/i3c/device.c | 24 ++++++ drivers/i3c/internals.h | 1 + drivers/i3c/master.c | 109 ++++++++++++++++++++++++++++ drivers/i3c/master/svc-i3c-master.c | 95 +++++++++++++++++++----- include/linux/i3c/device.h | 3 + include/linux/i3c/master.h | 5 ++ 6 files changed, 220 insertions(+), 17 deletions(-) -- 2.34.1