Message ID | 20231129221225.387952-1-Frank.Li@nxp.com (mailing list archive) |
---|---|
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 7518AC4167B for <linux-i3c@archiver.kernel.org>; Wed, 29 Nov 2023 22:12:54 +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: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:In-Reply-To:References: List-Owner; bh=SPm09314kSpU+MGBY/8wgJxw7w5Cpf+m7/Q8Ivi9SrY=; b=CprWPttTkET2Dy EtbA3msXxFJ3YnanJgFblKTR1fwiGbhVLMdmbqee8uSKpaSp+iEXE9XgKYIRd9XMHcjJoYUuZL78Z qvem1BU0LI9PgAlxDNPE1gTnj9ht+Qlb4t54bQWt7ul1Kf+DqcAEDJZ1HBDWVldkhLCOsTYlVYfXA 7GVQ1LuYooLbLe1AKTfFYbXlGps5nZR08ROk8v/5xVurwisaP2DN2S6eGVcl9Bl0pExlko0SLeyHa 9ZsvAlwHqFVnJ53XtmzPDN9HyBmZ9qei3xRVPkz8NSFYnbJj+bzSR0Abdno2fcdQypQmmjLGN3bM3 40O01KhDos8eUxyl5zcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8Snd-009PZ2-25; Wed, 29 Nov 2023 22:12:53 +0000 Received: from mail-am0eur02on20621.outbound.protection.outlook.com ([2a01:111:f400:fe13::621] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8Sna-009PYC-1K for linux-i3c@lists.infradead.org; Wed, 29 Nov 2023 22:12:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y5e8TWYKNMbv2ahkrBHef0dQzW8AjWbQuaZVLhBembS8xADfXNscwFFnSc5vmWXElVHyIaByGe+hME6Nlp7KNqhfpuz411s96Csq/HwRuE3PrcwHjA47UQwOT1stP50wp90SOnCJI6Gqu6mAEj18jNS7wRnGHp8+jHV+24aTNyzBdFPIoM0sPNjWSfLYck/9KBMkL9hA4cdstWO3eIoECcoxqhoN4/XqNpz1464GwwjH97YRe2YEZw5gPBHj/+2/TesmmrRTXOsKmRp6umXCm8prNJlpuLSYnhO6iW/fqrZo4dcL+KEIGacWU6ZOd0a0+X0g6XuMLZ6ow1n3WF+tjg== 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=zsrtkbPQEHdInV+W4Kar0OKs5ltKBaF5C8NTfcb2BEc=; b=FbaFuVYGXo9hKFbcdRvTEU9H4TrWkoA3nBrQZl8nhHUFFKLzS4BF3rsAkO4n9SjE+c6d021zvTuDDpwWPxOIGYJBI8Gy0+GmXnI6sxyASow8z+aeK7VPpwTXWb0tsY3iILxs7xmqS4m0Ggt9lA0yXmIcePZWk5yTlIDhdg+gPtAqWVZaMeZOubcosbN0Y7X/rlySepmfAVV+Wh3ed3sMczB8lJQ5K2AAzvUCpC/MP0Ea9ltILkZ34u2RHRHH9ltzdnxMyx5DSR5WdZPXb/VccaY7p8xE2f9u2FwRC6mD1rFwMMhulbKhZEMILwM05F7/c6kHwpcQCrqH+Ytnlmk/kQ== 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=zsrtkbPQEHdInV+W4Kar0OKs5ltKBaF5C8NTfcb2BEc=; b=GKg0xbIrvpbQ3Uks6VyOLwHFn8IN3TkNMaT6FVIWYw8RYc/Wc8ny8MwV9s/RaSnhq2sLiXcmcnaz1hUcfZAgROwlI61OnDyGh9jzOF3NUpA3IJMZ6ueCtqrokcHPTckm6mDWQlitnW2+FbfI5LD5wy9WkNEKqVe3c4iiumQoG6c= 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 DB9PR04MB9578.eurprd04.prod.outlook.com (2603:10a6:10:305::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.21; Wed, 29 Nov 2023 22:12:44 +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; Wed, 29 Nov 2023 22:12:44 +0000 From: Frank Li <Frank.Li@nxp.com> To: alexandre.belloni@bootlin.com Cc: Frank.li@nxp.com, conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, miquel.raynal@bootlin.com, zbigniew.lukwinski@linux.intel.com Subject: [PATCH v4 0/6] i3c: master: some improvment for i3c master Date: Wed, 29 Nov 2023 17:12:19 -0500 Message-Id: <20231129221225.387952-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR04CA0003.namprd04.prod.outlook.com (2603:10b6:a03:40::16) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DB9PR04MB9578:EE_ X-MS-Office365-Filtering-Correlation-Id: e535c1bc-a0fe-465a-c1aa-08dbf1284fea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VFSv/gYtgXqf7bEwJpx2EMiR5bQogNGWxbWFd7cYe8aE22r7pIRRP0JY81brsdza8EP9WKigcD+4j3YVVvnGvyS3vysob9zBZBO6FY4BcDaWVncIL3esphzRire9DXnxzGo2u6ian3MabVrLjCqqSFExGAVTgCTp4dVIP03LxU3ON859ppW5BVJRLbKTC31GIsWasRx0HZvyftmE3MSqBhDDbBOzJ1MQWDqdFLK3xwPYSxDavgmEbCd9uHwqs96Ff9qIv9wtBeIfAgbho8sbRHURusDCYnpAgJ2hIDtQI69juIWMANbbigiMOtOWthOS+hQPgb5IDkFbjqU3sg/wLTYmQXCJkELPdQaQZEv1rUL6CgaQRrfLZko9B6bLQdw7zXSzI5iN4NfmHkNQ+joe2OK1zw3IrXn2ws1vHfHfj+NM9EJecAGnNcqkSoQOEyv77Mlq15VVtnzLMMKR/scJnCpUG97hGp64OuqBvPqFKlcQ6MdSvOaOxjIDFCpFY/+MYCNy01gh1jJAd5YOnMaMlm7hd+lb68j14E1gXIF1Bcqc37/aXl4gm1w4BeekJ+agApN4xAeUDeYFkdXftstBbSyZ8MaItYUh50GfaGIz3p/o2uzhbGqbP2cNEqCMJohAIzVxY4b83Px14u+6HxeA9hwAPa1HY/o7RwR9BM1A93Jev6AHAV4cAp/KFCc9Y1z6R7JEQVXqYn/4yeLFaX0e5A== 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)(366004)(39860400002)(136003)(346002)(376002)(396003)(230273577357003)(230922051799003)(230173577357003)(451199024)(186009)(1800799012)(64100799003)(202311291699003)(38350700005)(36756003)(2906002)(41300700001)(5660300002)(86362001)(6666004)(6512007)(52116002)(83380400001)(2616005)(1076003)(38100700002)(6506007)(26005)(316002)(66476007)(478600001)(6486002)(8936002)(66946007)(8676002)(66556008)(4326008)(966005)(6916009)(42413004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rcitiUla+Uftrb0cahYhRURrl9PE?= =?utf-8?q?iO5OH/CiOu+fRuospwJwCVpxkrGd7prX18oIeXrO96IqYFtb6GP58ALBu6zSllx9/?= =?utf-8?q?Y5hC8r8bQasNZn5vBKvagRIDXaNnEtRXF8ebgPYr3l1RbavoCY1Z1gfxTmKhSwqY6?= =?utf-8?q?f17ErVzDMdQj59mTr2i1YSv2lNJd2QhLsgfYIPkjl9WsEIYHPe37oZrCHs0qKGCQ9?= =?utf-8?q?R3uJfxsw107J78tjILuz95X0UmnpfjcI3LOZzpRaIlgacTgbWY6ZEdO9uENjij/1Z?= =?utf-8?q?ut5G3omI/wlJElMtrVWTMadTE+h1vba3cePoDzcj5PVdCGGHrlufhSs8Vai1s0PiR?= =?utf-8?q?nvSJAHkHZm8bKe1cszaB1nlFsJaO0+gcANx0DuLYxzI0S3I3rF0kAPsEmJoUj6mTL?= =?utf-8?q?UlLEwxp68XbRxIqyIB/k05oucyvJEBMUrWd54nfq46doVA5iEo1CU52Voxm+gcxcm?= =?utf-8?q?Y+CA8SvEjWlblqtto0WNweQQlu9WLP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VyIG3nByEIp/WH6ySYTZ+mFJWWRH2hrQc1PnInm4e1?= =?utf-8?q?X/L/1STGsGUB6ygRqeBcDnR8F7ovkddVTjncvjzvrWPtK8+IcJKkVLkdZlBsXrzsD?= =?utf-8?q?MtYlPzIZ/0uNgEL+d8l+SOt696FeN/YihjP9nUYN5UYzqMgSlfBe24je0cVgKX30s?= =?utf-8?q?6vg6y0o9H9eQ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e535c1bc-a0fe-465a-c1aa-08dbf1284fea X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2023 22:12:44.6451 (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: VM/xjMeCH2yQBBrFxoZ9Sn95kHfD3JR06MvJdqI69Ixl7YGatkiqmts2WuScfJx8UXVRsOD6MVApLNDOKaU3/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9578 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231129_141250_470065_AA308966 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. 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 improvment for i3c master
|
expand
|
These are dependent on bugs fixed serial: https://lore.kernel.org/imx/20231016153232.2851095-1-Frank.Li@nxp.com/T/#t 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 enable hotjoin default Change from v2 to v3 -fix build warning All warnings (new ones prefixed by >>): drivers/i3c/master/svc-i3c-master.c:212: warning: Function parameter or member 'lock' not described in 'svc_i3c_master' >> drivers/i3c/master/svc-i3c-master.c:212: warning: Function parameter or member 'enabled_events' not described in 'svc_i3c_master' 2 warnings as Errors Change from v1 to v2. - Hotjoin control by sys entry, default enable hotjoin, which standard i3c feature, user can disable by echo 0 > /sys/bus/i3c/i3c-0/hotjoin - use actual_len, add document - using &xfers[i] - still keep check cmd->xfer because i2c and ccc transfer, xfer is NULL. - fixed issue found by checkpatch --strict 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: 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 | 110 ++++++++++++++++++++++++++++ drivers/i3c/master/svc-i3c-master.c | 92 ++++++++++++++++++----- include/linux/i3c/device.h | 3 + include/linux/i3c/master.h | 5 ++ 6 files changed, 218 insertions(+), 17 deletions(-)