From patchwork Fri Dec 1 22:25:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 17427 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1451753vqy; Fri, 1 Dec 2023 14:26:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBoeU8e3PEaagW9v3NuzrjSrGn+xtTmj8Yqzw81iI6x4NhaGhZaS9J2noJnMp8BsFDPga2 X-Received: by 2002:a17:90a:fa14:b0:286:6cd8:ef03 with SMTP id cm20-20020a17090afa1400b002866cd8ef03mr189994pjb.27.1701469616869; 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=Y86JhO60FHgnHy40WTc/8XeTvr42Kk5tSBDakv/eP2R3xU0VYC/GKe5AHC/FUnauNn VpwblACyQ9Wb6t4ci6WPsEkfSnoCCiUrvw3wxoL4KyCspm+CWeB52aGEOvYP2sB/BvVE ybrZl73HIuqwJdX9P/QyeLrxtr75oCGSKRr8aDWefBj4Vbh3OZfIYJ9BRzYN2rUZWG3X rXg5PmcTaxnbQKZthU52HMSB4Cr89Hg1kymgUjKhTGseUxLD1jih7HHzjvOj1ZOrKs9f L48Wbd/29V9PiS8eIrFqWrk1pPBaEFXo70W7ffYy0bXNyARxvmDNWg38Oo+IBojWRU71 P8YA== 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 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bn21-20020a056a02031500b005bd0728aeccsi4081097pgb.407.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 23.128.96.36 as permitted sender) client-ip=23.128.96.36; 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 23.128.96.36 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 F328F80AE54B; Fri, 1 Dec 2023 14:26:04 -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 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?q?e9r9XTxEyf6sGxTTd8p8yKhp4szd?= =?utf-8?q?E/h/NJI58QBqsIrjM1gGHEvMt8XuYtFDKLIdl4nZczlSBKBHo4RzkJ03h8h5UrsWQ?= =?utf-8?q?e0gWxn/qvenadx9ns/Or2NRLtwV3VR4sDBU+BM/woV4SeABR6o7gdr/38h6GsgIEN?= =?utf-8?q?Cx21B7HDjSVQ67JhT9MpWMLOPptOHFzAsaelL7cT8HNOiuNzjUPSrWXAkB1t20TXR?= =?utf-8?q?cWZ8mg1U9tpJN+jZo+BjIvmbnFIqmnoW8P5AXHme5URICsBklTANuj3HgMEnBSZlO?= =?utf-8?q?299pMpCnqY2V/lyFYSn7UOVLdVe/3d0+bt2uaV/xknxpRwiyyLsXGAM3Lud6YRBXy?= =?utf-8?q?8FXiakEnkG1/1x3leL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ndQXExia+E7fAPiJu2yx8zKPXmdvFhk7NS8StMGpHbn7ZUvDPeqh/9s?= =?utf-8?q?0eYqms3mPs4CfA73E7Lsjq4sfPMAkVtliotO1cu+17HW4rjKoGYAgaiKJCSmeq6Wz?= =?utf-8?q?7PHlhD8z0f9PChVD4ihMiY0c1jDSYt6bvw7FkEMQIpF+91sIyMMNAi/cN/Qbw/eXf?= =?utf-8?q?oU0cD4yUJXlz9fLa131Tnx4LBCsHdtq5R8CYqY5f3Th8Cz34YD7ay3/B6fekd/JxJ?= =?utf-8?q?DXuMe/gMwDJmFiApPwL1ipQl86VSJ5Utty+Ic/RvOhzIL40Mn3uORsYIk1q7Oz0ro?= =?utf-8?q?MXr6/q6QvpZo?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-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:05 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784120204879978667 X-GMAIL-MSGID: 1784120204879978667 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(-)