Message ID | 20231130224408.3591288-1-Frank.Li@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp731818vqy; Thu, 30 Nov 2023 14:44:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTKTH5ug44/D4BJibPNvXIFbnijrXiIkoQP3UNTTLPMMqm3H+sMxsVEG4JW9Kx9JP/QWOU X-Received: by 2002:a17:902:cec3:b0:1d0:68a:4a46 with SMTP id d3-20020a170902cec300b001d0068a4a46mr10687489plg.3.1701384277461; Thu, 30 Nov 2023 14:44:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701384277; cv=pass; d=google.com; s=arc-20160816; b=0dG6YRyVPHJkVlyosnjfwfa+S9ZT606TOjXzzWeqU5qYL5M6VwWKEJNVplBLM81EzM 5s63fZ3wTSCUmX//HK+8FXPCd4ydShk3Ry/MOBURnrIMEMSwj10BnAboQ/1DADW0cD+c nAY/OsnRVE1PKAQUeqdmI7MrK18ZpA4Sh/4hyC03VP9zkLAe7HMJeMXUufl+xmg39apD qGiRnJ2paCRe/U+vqd2VnddcKolsZ+qmt62EkmKvjbVbYkNd9dVW8+Sd88FRYEncLJpg u26vrSj7Hep1mc81VH5ga99Hr9x2pVZEIXeLk5c3r250Y+tVEJQKXLtJTdo6wnshR6cn WLsA== 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=auhEZvg2cwSUCUZ37pMz5e1rjA0vnD1O945l29ni3DI=; fh=QvVwebdT3bZrKTDGKDPwLZCEAMRt3rGnWnj1XEkRwgM=; b=OOAXETLLbSfgIu/fbfD1E1GXH1KcPjlZvzpbtdZkkBq6VJz85fa204pEyRZ7uKlfeM VFiP3gyTtHYx3QsZYEgzW1ih2/sgfQLvCkga+OiwGQZf4Ud9KpwhLgfesn31puTDUXau g5FfSByLPiwfsmbCxfD0Rc0mj1NvYRZOiRWXEIQlMvldmxmrK+I8jeJX1HVDTnhB0pwC UHuJWPJmhItoX+pvG91rw/Ay0904PToEn2Ptiihe45UZpib+TQbz2+L0CdN4Jj6dlYhR ioSHlKDiKHiqDZI+tlnfqC/HERoLDb3MnvKwCL2745M7y+GKdp5kgPVGJwTF+/if2laf YocA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Hzn/b4xQ"; 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.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f6-20020a170902e98600b001cffe1e01aesi59974plb.603.2023.11.30.14.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 14:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Hzn/b4xQ"; 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.37 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 snail.vger.email (Postfix) with ESMTP id ACFDA80D6E74; Thu, 30 Nov 2023 14:44:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231511AbjK3WoZ (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Thu, 30 Nov 2023 17:44:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbjK3WoY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Nov 2023 17:44:24 -0500 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2077.outbound.protection.outlook.com [40.107.104.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9349133; Thu, 30 Nov 2023 14:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eKYnUGV5bFWYmO4cny2IUagZliHJ+W6weCz6ekDevp7SsynRze60mmc3ROfeRw37F6e+YRjfI/U0r/yN5fmQlr+32oKM1u6FVVmgfO6dVRbl+sRw6hjFS3rnNUQNNa6Ym44bbIACw9f6tWZzWtUfslsB2ZYgHsm87DSQISH6Loz/tgOQa+14iCNsXRAQi/x+GvczZBoPcwl3AEuNG6htTqQ86vG0N8/8WUyAAEclEr7q96XmqvnAH4E4fkHzZfBCKy1Sb4+sYjo+9TsyAWXuubJJB4w6m1ab8AdnFmY9RceOQNM4dyh2yZSYQF8Ya9161T1VjdCgHkNqnOEWehKZWg== 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=auhEZvg2cwSUCUZ37pMz5e1rjA0vnD1O945l29ni3DI=; b=NN6DjVDIXtW0TC2qdld7IC28Tc7klZqsidk+3XDfBHw/x/tGSTRJqEQQwkr5g4lYfF+EYF5HkQ3REpcuJcOnhzCSVqkRoqrrE1MKtz98JaBWAr22JPXK00Yd9Ht9GWp+JorvrKBP0BAwPAC+lXAxtF23LjPvduLffrU5rUb0EJ/5j2KVIo8XkMgzzmPMCuuH9Ls3vmAk+n/Z/CctqAyYObmYSnR5+QD2Awg83DkC1fpQGjeOtE1Na/uuZRaEGL49vvAf3LXc3cBAM9WnRXUZ7tOYsm5Ip2G8/AGK9GdmbY5de1XhunsCSmQH099i/NBRMzXl12hgTGgWoWvjqgrZnQ== 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=auhEZvg2cwSUCUZ37pMz5e1rjA0vnD1O945l29ni3DI=; b=Hzn/b4xQow/TWb1MawUY4koqOkyRNPbRvvIU1unYIQh5tr42DIoEFHyaIBhF12Zbk2DU1t/RLrH09bd/ZFvc2BvE2NDvPO4YUSJjyVlO4vgwXvw5FWDOWWN5EvB4j0/8SEAF8Esnz2TafxW3NqfYCJXtGJUdC2L2paSRahkVVdk= 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 AS8PR04MB8851.eurprd04.prod.outlook.com (2603:10a6:20b:42e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.13; Thu, 30 Nov 2023 22:44:28 +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.7046.015; Thu, 30 Nov 2023 22:44: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, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, zbigniew.lukwinski@linux.intel.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v5 0/7] i3c: master: some improvment for i3c master Date: Thu, 30 Nov 2023 17:44:01 -0500 Message-Id: <20231130224408.3591288-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: SJ0PR03CA0212.namprd03.prod.outlook.com (2603:10b6:a03:39f::7) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS8PR04MB8851:EE_ X-MS-Office365-Filtering-Correlation-Id: 149b4219-11b3-41cd-9354-08dbf1f5e916 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VspzinlyJNj8oyTcqQgimLwNv9muQLujhUQUHHIpwRc6lc0BI+bYhWX0GWeGPe30cHrDlpMt9afvEQuw7n9UzjpNwsAHRd2LydN21jxf8tL/3l5Ut+fYzCaB+O7ByTpM4vGJAy/9zbSIKEV1UKbtfuI3asQx3i0kxk5zgk4rgLhpIWejx/TwqmoLrWYfEss5sTf9Geqxu1Ru2XJ9nQaaMbD/yc+kVn4Csfx+Henu2axHgNV3W4vQ8lkUN6Iq3jYTAoxMHqm4YTH2UaLBGnVCz6gTSqF1dDQrPeFz0kjVyH8V+ZncraIOR5veccxAK6eMOmRlA7f/yFkO+zuX3LH33qgze/Pm5LVXwk1nM/Rgj+YYGT0unJ36qLCCBdu11tFfpnm18BCjz6teO7Ml7B86n8AOr7QvCRHGOc4mrzUs82dN79bTp/kDR6SlrX4/VaD3CZUtMX4TCnY6L75/TjUbGn/eSw8U9VImHOmhY6ogYgtbxKh+uluigCi2Bghgjp13S0o4gJMDrJN2jS/Zjm3WEfqJ6AHAAjYBgq4KXH02IS1PPTuJNdL8Sk0hEeVuyFi4LWNOjZCW4aLbxYXDCQz0tSz31WLOjk6cCOwmkZpM0L26Bk7tQtLPGB9cH1if1sCkzLSym7l4IlhEjrjaXjn96NIdqXCyQCjDKc4V0W/Hlr4qZIXvLswQy49XzOwi55Cr 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)(346002)(39860400002)(396003)(136003)(366004)(376002)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(86362001)(6512007)(5660300002)(36756003)(41300700001)(6506007)(38350700005)(8676002)(52116002)(478600001)(2906002)(6486002)(6666004)(26005)(83380400001)(7416002)(2616005)(1076003)(4326008)(8936002)(66946007)(6916009)(66476007)(66556008)(38100700002)(316002)(42413004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?F9cjjejqQzNGLJTY8fs1sRsXyPao?= =?utf-8?q?fwxPCgjIsSjxjLztDc52cBW0w74nuqaftbmu/ctVBtl0RFxLfcukpKJR41DaWOr8M?= =?utf-8?q?fsARt+kEzcxze+u2oKz5/GGBNGk92jNkdkwUkbqg7sRyTC6NjIKpis+w0bem6/hni?= =?utf-8?q?c3+mIK386jj3wG1rBCUNrKSGGuEuAE/dHxXsWiB27ucs0UVBbsE58UY+QeWDtJHxx?= =?utf-8?q?KPOVCz5UYXinzTTgRrhvwGSDVGymOVbReHcypHzFaiwDCiYxofwrfNxsObPd7L5wb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= =?utf-8?q?bU0pIV/fMSLQBBljsq8x434QkIp5bYsYplVwgtA56nBkZ9YbSWD1SMzOKNJflnhDm?= =?utf-8?q?a33d8vU0mOKK9nUUaBn6niS7yMKFivDdfw8q9SPYMO7xwb/WUV+UxhC1ZnhULo6Yh?= =?utf-8?q?XuqOduu8lt6wnIa8EES5ACy6ngZoOLSPtK9slb3P4Xr+syAb/5Px19BVpsLCVY34I?= =?utf-8?q?uoOvteL7wwwSQEnINzQgvyQlFiwfspBEDoKA/Q+Xw7uBs22DjhtmCVrpri9DfASj9?= =?utf-8?q?I9p22EMZ6fziTe8DP/K0YE20aRDKKpsELBBNswlmGilpxREnQMtPfQ73vqtyShjzE?= =?utf-8?q?Sf6XXtbw+AG/9q0WBPbU73HE7mO9X0DO9gng4NA4R9w1bgHlqfZtoW4w8TZ0GOqIX?= =?utf-8?q?Ivq67YHarT3S?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 149b4219-11b3-41cd-9354-08dbf1f5e916 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2023 22:44:28.5323 (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: 2yH9YLZA1ZWg+446iSxw/o+Z7LMlU+Dkb3OudbAwaHg9ZryTq3b6ASrpFpogJ9JrD8DLojlZG10XGxDQ9aW71w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8851 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 14:44:34 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784030719972395687 X-GMAIL-MSGID: 1784030719972395687 |
Series |
i3c: master: some improvment for i3c master
|
|
Message
Frank Li
Nov. 30, 2023, 10:44 p.m. UTC
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 add hotjoin support. 4. Add tty over i3c support. change log see each patches. Frank Li (7): 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 tty: i3c: add TTY over I3C master support drivers/i3c/device.c | 24 ++ drivers/i3c/internals.h | 1 + drivers/i3c/master.c | 109 +++++++ drivers/i3c/master/svc-i3c-master.c | 95 ++++-- drivers/tty/Kconfig | 13 + drivers/tty/Makefile | 1 + drivers/tty/i3c_tty.c | 443 ++++++++++++++++++++++++++++ include/linux/i3c/device.h | 3 + include/linux/i3c/master.h | 5 + 9 files changed, 677 insertions(+), 17 deletions(-) create mode 100644 drivers/tty/i3c_tty.c