Message ID | 20231130224408.3591288-4-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | Superseded |
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 635C5C4167B for <linux-i3c@archiver.kernel.org>; Thu, 30 Nov 2023 22:44:45 +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:References:In-Reply-To: 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: List-Owner; bh=U2HQF1ozGghvNdfQdj6B80eDZHnJ+J3IKECpwbOenY4=; b=06Llf5qAlUGYeq ElWNtHgMz0Zzhi9m0oPmlobpvwdwjaoDZ44s16APRsgKfuMGl+opedPctIjQs5zRLnPQf/3G2jDNK RdD1nFnRjFkCqzMF8ToHHo7RU8ctSToRbdG6cFHQwq2wTaE/XU2m57KVrotmMxeqP3ucgE0p4kKw4 ss5mLkQd1u2euoKlvx8kdHX6UAU0Up+Gv0s63ADXfhbOfpiq2MMOZFkaniU1xL8fI6gaH1V+DBhs2 FjhfUf9N6RlGG3HYtRNVmMEWoK1B8VJomDFS8vxFF9v1bzGOXJU/WHuDq/RQ59nGRJVXcLt5k7Nq4 PJVA2XXid1y2v0rdQfOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8pm1-00C5fr-0P; Thu, 30 Nov 2023 22:44:45 +0000 Received: from mail-dbaeur03on2062f.outbound.protection.outlook.com ([2a01:111:f400:fe1a::62f] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8ply-00C5as-2R for linux-i3c@lists.infradead.org; Thu, 30 Nov 2023 22:44:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b31855fq2DvhCsl7NpVg12bHH30hpTixRmJBUT4mO7dmdCJTHM8iW6D3K8Kr+PnJRct2qYg9e5A/y36dFpa1ro768zfYD0PgPoBPL5It2TLgc77IrCVuUEHi8+c9Nke/ug/Zak1eggcLvIkxQlVkqzGDHccvgDvGMH92fHPo0QfpIVsZ5js4aLUFWX/KwDWaE0PLe6juiX4iI1NVuoUaAz28vxK4mUgK9sNHMstgrBskIINdIea8YSD4nlNzNzJAlyGXXsEDOq2oZAirev1xUJGrw25NCtV78FfUMdKQ/m7uJNUGY4hoUlLo1bduxtllCiMEZl71MLbXF8GorIr+OA== 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=ytSmslj5oOfXj/kvlZ0mw3AYP7VbssW1sje4uneG+bA=; b=T4ft1KON8E+FmzSaq36MA5X64Ewq96fOrmSTR6+M1JTORTTR23j20GCCaV7AhR61BrTu5YMlzCW5kWTp91ELSIhZC//0wl6JDl4ix4CZLtwtFucK9qwfHIl90d/j1v4M9BiCuCcFQl/1XapuTlboX8fcM1vALsI5xjlBOTRSQ9dqDXpl+2DUB3kuWBzCEkVqJ62kiy2L5VuuIoY3KB6viBQgM6tnp/y2cNEa2jqbRvvcdXBwmc61g9XnfkxgdA8FVuzKewAFWQ1zTyTv9Ftj5+WhOgTTexjj2hKBfjsYTmCl9Ph0+A9gAizCUQHF7I0A5FtOY5VXXYM1ex0XDafQEw== 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=ytSmslj5oOfXj/kvlZ0mw3AYP7VbssW1sje4uneG+bA=; b=a5rZPENe55RfhynvToaK9m3o/vTHvm4SU2zUyvcXjY4aOy4iqKGMdm1Ww6VlKeXlZen8kKO/33+7OwvjNsz+7grmMHY37EoTQHoRsspTUtMxe1Zcya07o9UjXASAkcIqNkR+yN49dK7AbRAKhF+gNV5pTBqlF4cAHh830FxRBzU= 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:37 +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:37 +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 3/7] i3c: add actual_len in i3c_priv_xfer Date: Thu, 30 Nov 2023 17:44:04 -0500 Message-Id: <20231130224408.3591288-4-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231130224408.3591288-1-Frank.Li@nxp.com> References: <20231130224408.3591288-1-Frank.Li@nxp.com> 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: a6686b44-0440-4b23-d94d-08dbf1f5eeb1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qiv9MqFZ9gLTCRgG9b74Ttz5boNTt2Nd043CFehMppwf3xNAqPiUl1dG65gwQ+N614AH8kzBk8ZCaCdvohu1tix/0rsJgH4ojVUtXcSbCRkfR5AyaIIrSRJJhz5l+tzIu05enlELfut5dh6yP59/JKyf6MgXMtQmn57TGefpTjbfy16/9zQktXJlPAVZ8ITWVwQN1OryH6aaLyruD9eTaEBEt4nJNHf+M0Pnqk82f0N3yFb54LY1BTV+Z0BD4Q0xRd0Q2Gel36hUBFyP3SaFGaDeVrzw9b1C/ZT7X+WeIPAdF7WBGRZ15DomIgmtzaTljsf/kNwEdhNB0W7KFhJpi/BHLM88MS+46lFR7tRxwwQZeWcC+iAh7Km7BypnHXvO0qVg45IXG3a8tcKAc7B1gMgLRuaGOyX3MHuZnFTGGBjZByGvrxVsXs/f9w+uSP21krzabn0qGOiQQPW+Q/xbgezjqbtEz9tlArw8UcgwkGlUuYmWs60mwhtaRy3/GGqBKX2uClOZqd99+3Yh/FpEwrsLXFllwkDWi5cWWqU0ZfZR0fwumun9jLaZI3KsVq0mL5Q97T4n/m5bsyHxhgToGAUGra4WekZoCmMx1QE7dtpgS9TxrX+G4R2jVhqXTpFUsY1eWunirYTFeRmdY2BAwWaaTSZg9TyhQUx1bXgzET8= 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)(7416002)(2616005)(1076003)(4326008)(8936002)(66946007)(6916009)(66476007)(66556008)(38100700002)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?QCE2BPLZF5JgK8OS2f1biehj2YY1?= =?utf-8?q?m1i3rKlhUlhKxh9zFGf1xqEeoRTKCFDtZDeYu5MDXqpsieKCeuVNt0S6nDZKVaRIr?= =?utf-8?q?982yikrwlpl5rdddIuhyk7vQ97HREuwykJOc2FP4ek4C3qdbSxUPye/qqzZgBTWih?= =?utf-8?q?3HhgJM8MCaExf8u2Fp3IqpHdnEYRLGx0xNK+Ga16WMFGZ/TUcJs2OnEljeasMYae0?= =?utf-8?q?TErIDA4rvHXC0Y9OdKSUMOj5bzhELgH0Q+e4Xg9Qn5yxFILQK0C/hptNQkD8kWH4J?= =?utf-8?q?JjxylWfFVmXxrsYQI6mhp3/oXsxcROuZzPNVUYjXLvMd5zxqvHbKtpn7EgXmHqzJ7?= =?utf-8?q?NUF4fvlxoWfG5LcMjfsrwGwOBucXBHI77FmSgdEYBZdcaqVrK/rZQWpeL7djPo5m3?= =?utf-8?q?g3NbOqeGEAmkLZGEJ8tMx0k2qhAiSf6eInjR3QliF6aAxq/VT/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LXfr0GH?= =?utf-8?q?PkyTUZO0wTVUKtTHB8B96nSUcEdsbATs76EPNHu9RKyrVFNM6gY/4HLpWdS7uwJuD?= =?utf-8?q?d+i9QA6Is2AFpup3K5h9NfSZoiIq603ownYgE8gyuvIY/PJAV4vJzWfXy6GDO+Xgg?= =?utf-8?q?3N+a8PXK6mEwbRVw+vnYVsAz+6YJHNyg5ZpSKUxmt3a+zRMUJBOnjbcecTDIHotFZ?= =?utf-8?q?8Rqk0plJ40DW?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6686b44-0440-4b23-d94d-08dbf1f5eeb1 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:37.8398 (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: 02zHrarsbY50WRY9tGSu6K1IcsU/y9tsdreY89HtyGwwLAlzO5UFOpJGOwg5pXTGuskEcSi7Wrnv0tQR4nc8eQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8851 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231130_144442_800119_D9E1530F X-CRM114-Status: GOOD ( 11.02 ) 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="utf-8" Content-Transfer-Encoding: base64 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
|
diff --git a/include/linux/i3c/device.h b/include/linux/i3c/device.h index 90fa83464f003..ef6217da8253b 100644 --- a/include/linux/i3c/device.h +++ b/include/linux/i3c/device.h @@ -54,6 +54,7 @@ enum i3c_hdr_mode { * struct i3c_priv_xfer - I3C SDR private transfer * @rnw: encodes the transfer direction. true for a read, false for a write * @len: transfer length in bytes of the transfer + * @actual_len: actual length in bytes are transferred by the controller * @data: input/output buffer * @data.in: input buffer. Must point to a DMA-able buffer * @data.out: output buffer. Must point to a DMA-able buffer @@ -62,6 +63,7 @@ enum i3c_hdr_mode { struct i3c_priv_xfer { u8 rnw; u16 len; + u16 actual_len; union { void *in; const void *out;