Message ID | 20231018205929.3435110-1-Frank.Li@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:8089:b0:164:83eb:24d7 with SMTP id re9csp5082403rwb; Wed, 18 Oct 2023 14:13:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmmVX5NArCJSt8w1oKzw5xam+fJJX1k+FPTEqPd8XUNPZqoK+H08ACfjjQQENmTZR8ZgcF X-Received: by 2002:a05:6a00:2daa:b0:68c:4e22:8f78 with SMTP id fb42-20020a056a002daa00b0068c4e228f78mr237606pfb.25.1697663587132; Wed, 18 Oct 2023 14:13:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697663587; cv=pass; d=google.com; s=arc-20160816; b=qcMBvScX1BE6g1+xUIyRLss/7z6yeIeuqGZ98qnc8Rx5avJK/94Uld8x0OUsPyWw+n +RoS6uNgkO09JL7nMj5rKk9HXFbnbiYCeK6oXZJUDX3Sxs6FjrtNdBno+PnOZeIe2xyB qIwzPX6F8RgJ/OkhExdwWkH3F9/vOP6RdrYwARo55XyNzRYNfmh/Oy4JZZnqJ/m8TKbf RERwXAt27/CRma6R65Im+V7WNe4/Ov8miP1xb2Ekw8h1KE11A7hyUjTl2yq93MXAFCS7 /ZuIGdHwMirS6F5lW3AKpsy5MraJpB+xjuxWBOWqhWkBhlwjPohU6taS3Ik6Yxs9W6qg 4dCg== 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=4A7TUodxO7AkkBqM03CJiYKQDrUpiaHEzapJqI1G5GI=; fh=sDe3TG6/b46JEOvF2xh0f1K4oYWCH8cpxTVfh1/w/G8=; b=CkuwZv2ay71qUBoTRefgpDpREaQDt6SYIg4lNI+Uk7hGUahaKFAp1zJdITMqI3onK8 L5Gl5x3RbOWlw2xsIh11ngVtGXZsiwlIYIXx4kpEJdBZIYKFyRgM1qhvlErffi3pkEL8 oc20mKxSkHpLP5iewgJE754fruSAiyzsRXtD3fw8ENEEYPQzX/38rg5jkMSb54QmLSgi bUItw8cBstfoC4upQMDGoJ7qqIHXSpd0/lbVXDyU4UN7N5kEPrmu3pWrLg7diq3DpV/7 5PcNRqVANRj235BB9Gf8f6lhBFIu8cuH+ODHrwm55y5jL9xY1Fl/m7OHObFwGc2Ss0BJ OqXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qYevKj7L; 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g2-20020aa796a2000000b006be329230ebsi4596300pfk.284.2023.10.18.14.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 14:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qYevKj7L; 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:2 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 agentk.vger.email (Postfix) with ESMTP id BCD268112AB2; Wed, 18 Oct 2023 14:13:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344764AbjJRVMu (ORCPT <rfc822;zwp10758@gmail.com> + 24 others); Wed, 18 Oct 2023 17:12:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235133AbjJRVMb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Oct 2023 17:12:31 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2087.outbound.protection.outlook.com [40.107.15.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4FF41FF5 for <linux-kernel@vger.kernel.org>; Wed, 18 Oct 2023 13:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G2NaRYjuHV1EvSHL/hw3hETlT00k1NS/6//zpDf7x/597P6m1QzoSrM6cRjB8ZIQj53xTRvR9RNQFrhaUxNKw8lm/+1hkPTe7QwisN0AcWoHuiDhLxD8osbxC66+CEMF2SbCFWxRBhvXmKHReFAI1AVArcwQH6YePgtVy8+LRsLPj3HatqnFk2dQW8jVK78jWLTpXnD5ovGR3mouKbcxyzhKDl0omR9qU8lIcLrHtvy53o6QCDGGeUzmDy37OUJGNKZExF05w0EpMj4WPUY/a2ZIdZKok5wd06oAPhKSgPv07Xpl/lOWSgC/nRFclY3FJCQzsSOf2CYjNqG7B3v57Q== 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=4A7TUodxO7AkkBqM03CJiYKQDrUpiaHEzapJqI1G5GI=; b=A2WR9CNnEoqmo4YwDAemC0TyRT9jRHwMabDgdLJSy/TrXg78X/U4rTx2fbvYwA2jit7Nn4KN07Vp6WVAguhrr8sgMz9XehiKvfsD0p8+exAkpzFzKNZR7Lsq7teUuy8R5cdhKGEpbTlR1Rb9xWnqWM4uJ9R3mAqbKHmM31p2ygku6HGQVB5Jtk/+NVvFF8JysUujiMIV5Vq+Bal9y1XnjBqzEwEEoX0+kcxwFrzsjwjGTpQvHD4wihSpjItqzsQYSgp5F7q7e3CjvibxVvj3u8lBxd0mfOr+ERV1/o8kCVekzYuMLI0xxfe/UlmRscF6iSwxRS6MbeD7eHnUWhjR0A== 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=4A7TUodxO7AkkBqM03CJiYKQDrUpiaHEzapJqI1G5GI=; b=qYevKj7LBUAd9OyGfZcamdFHtJBjLwbzRBrTz78iTGTMhi8I3TjjWiiTBNEFXncz0+MuhjQkKSotkvgFmVGW1DJC3UZGuy0W/9eEUd0YmKbufVhvelXTIymhHQhTF1barMW6VuTZnFHxtMHTuVy3kz6Tfz2tU1eF4wpCu4A4qmU= 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 PAXPR04MB8653.eurprd04.prod.outlook.com (2603:10a6:102:21c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Wed, 18 Oct 2023 20:59:45 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2%4]) with mapi id 15.20.6907.022; Wed, 18 Oct 2023 20:59:45 +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 Subject: [PATCH v2 0/6] i3c: master: some improvment for i3c master Date: Wed, 18 Oct 2023 16:59:23 -0400 Message-Id: <20231018205929.3435110-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: BY3PR10CA0027.namprd10.prod.outlook.com (2603:10b6:a03:255::32) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|PAXPR04MB8653:EE_ X-MS-Office365-Filtering-Correlation-Id: 47a15ac3-1438-4c2b-e7fd-08dbd01d2871 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zgviHGxxJg4ypZjgial0IdL6QpCvjZuVJRsnLkhMRdH06Et71Z+7sjY2LEjsVPWsepT9Bx8R30ZLqUmyddiRvRBfKTqRU2lqhk9QwlljmT5piu7c37WyIJ1GPS5SEJOr1sG2GQPGY5SemLbU6EW39OnpcP7L6mk9l57VMH6KkpvFUFHLYOuUZ/rZe/eIbO9sH0Q4FI+8O9N+nOkwROg/pFvEPTgsll5IQR8UYerDVk25lgPBRDyIpm1eAG4mus/JdT8DnwKSAHhHYWjUn5XPSrIb+h0R6taCWxr2lvJ8cy/c+qSURXBKVBMK1bSQW7cf2PQ41EwtyAv63DOtu0lvuQRzEk0xWljEayBNc8H26bZpE+p8K3BZSjA40jXmfkWVLfeAtdTGmep2BqqVpI9tALZe7RxgWvSaNTo/j411lg4szT9LFMkQq2XwJT3WyUKVL6e9buwV+0TOmxvWuxYqE4HcyAqntF57fUFnVJpz7nZj91QDtoEk/iQCF62w1dUV1LaEKO5HqEEqmdZRtLr5Xsrp91OCiAqvlbupxuYt8ycbMmlO1a4aIsjHwIzx5aXWzGfdQZiLS4d80xFFjNK3fqgj+8TqTOQiPUkTqYg/ue/QajkdYIJBDzHn4RSeP07q 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)(136003)(346002)(366004)(376002)(396003)(39860400002)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(6512007)(6666004)(6506007)(52116002)(2906002)(4326008)(41300700001)(478600001)(38350700005)(966005)(6486002)(1076003)(26005)(83380400001)(2616005)(36756003)(66476007)(66946007)(6916009)(316002)(66556008)(86362001)(8936002)(8676002)(38100700002)(5660300002)(42413004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lIdqjXKFZ99zQCwhEhQkmOTogZI/?= =?utf-8?q?ks+6r+/fVlJV2iWoDo5Db9QY1Xy5fcISjAdBgJpuHtQmZuf4QpCskkkFOG/9wCfMF?= =?utf-8?q?IW4OJApcBAeM44qMSXzAFC16EodJa1/7Epnkv9ebcQAitJ2IxSyiVqvAU9ME6hov/?= =?utf-8?q?WiUPDhXacAa/OCgs0ZbFJ6DYpC09GkWTkttKPtzI9IDVN2Xwi+xUWCLQSLMlYtoa0?= =?utf-8?q?QoDBq1VULL5dB5Tv9Bu02PW8FTKoBYy5XY7D1qY3vDQSwxyjngdL2dmbObUHYoPyp?= =?utf-8?q?e2LjUvVvukQ5YzYf38hhB3/Gfn1Mq94dYk2WYx+hs9PFUsifnalQ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442IZ/mJPdEmhmsVh?= =?utf-8?q?q4zlTNpI8/H31hJ4B+FPCQOhM6xHfCzlxeVHjFE+Mq9n3tbQYD9hZAVZyNfnYBEA1?= =?utf-8?q?AQIDT3FZXUX8MAlDF4xtTCPvEds8wLYV4nXPmZjPDw6TCIf3KPEc3UzS2XzNTCyVu?= =?utf-8?q?JDP9SMDIOndY8cY0P1h1U11XwLKDpFaDKPzR4yZVWuIp0Zf9A7/o0SHEN5MmsOK60?= =?utf-8?q?vnaYVA3RwPvpLYY30sn7uLu8tS2CD+faZO5sSFQh3kOnuuCf9tz1vdZbE/cFjSJHY?= =?utf-8?q?QaKNey9J4Yo+DcYHOFK7LiDnh72VPGrBnfLZZ0iaRVIbZmcQNwwBtulgMT4t4IURU?= =?utf-8?q?x9667HjoakAP?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47a15ac3-1438-4c2b-e7fd-08dbd01d2871 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 20:59:45.6348 (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: jSzJMD5uR9b0yB82a5XwVbHXQgGwVgyhkF17OPamT5hcUY4GGArU5vt0xl9XVj4iwA+Iu402wZ1SluGdVvm5cg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8653 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 14:13:02 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780129293495604819 X-GMAIL-MSGID: 1780129293495604819 |
Series |
i3c: master: some improvment for i3c master
|
|
Message
Frank Li
Oct. 18, 2023, 8:59 p.m. UTC
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 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 | 91 ++++++++++++++++++----- include/linux/i3c/device.h | 3 + include/linux/i3c/master.h | 5 ++ 6 files changed, 217 insertions(+), 17 deletions(-)