Message ID | 20240329-sdma_upstream-v4-2-daeb3067dea7@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 288109387becd8abadca5c063c70a07ae0dd7716 |
Headers | show
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2110.outbound.protection.outlook.com [40.107.15.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6361313B5A0; Fri, 29 Mar 2024 14:35:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.15.110 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711722923; cv=fail; b=JxTX/0ZGIMMeccD5B15nFWg7TSKF9lHqlnLKw7+A+oEhgzDu8duBWPHJ5h2Ku4StfiSOw6GzFuNJFre1GZX49L9ZApkC6eWLleSaNNl8il+yUG0EcAm8VG6/E7/XkMlGhH/UKACVGzIoB9+ufcuxruWZfJhhhdO0iD0Sgzu8rt4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711722923; c=relaxed/simple; bh=aq2/ULP0Acqkl5nMyq60djlyfH/8ofMH5hwkVDWJ9JM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=N3ZUl5PevSj1QW9EfEuqijQKnX3JhPcga/REzmC1zqmnRLn4VwD0ZTZqrm4gl1bsBwFc4+nng0VpcEx3bMNAiZeqyDBq6ouxCHdfule4zQpHwNFp5vRvQvUSZH9KZVbGHOLO3qehUoS00ziYtw0gDkYebP7dSb+jus9fiFxNQag= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=TtkPcUQL; arc=fail smtp.client-ip=40.107.15.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="TtkPcUQL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K6zRcafX6rrPiht7K1OkBpgt/w+sodXPsTkNckLHfw7DsGy1FHJ9JrIuRGhdX5rrfsYcMEWRfOXOLYRApmKyebEL4hRVSSK92N2/Keeu3XLyi2RCgN9HhmTCBfFxoBULKO0BZfR0hWK1v6uGPRKF4A/i1x+/JTSXLdFeD1/TIITUDu8k23chVaWtn4ECHHRaw0OSm8MKdkkRkQV1dQR4IAOeQpdnqRU95zvk1eKrDv3ecFZUheWviRfpCs0y9XFRRe2lCvMM/Ryipv+VLgnjQhh/Hqp7Rxz7QbZNnfsFqjayBqfLKkU0zCziTUvrI2DUNozBffPmmIuhxWJmj1VwQw== 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=GroNJye/Yehgv2tou8mx9qaw1VtXSIYv09vStwtBzqQ=; b=IDES9FX1R20mVytGvnWbdbgGnzBmLVYHcGMcGdaWmsrXUbTUSAAXrVFeJBj5SqsxF1fejP9/zfNOHGjZhEMlHmGynVTOnudTyLRrHn8TabPXctiZdJRlh6qkK4MOEDK3JBvEdMCEDJYnV4G77iHhgXMmUBNUnTsEBpTl2MLBTln4hJ/Al2x49z404hZZmVt8lidGmEnaYPGiQxgpxFi2D82d173JAzZvdB4uCbZE/t/AguVOpnnDWP4Asfp9TSzMbzGWs6LBk4MRd96iJAg1EXJqyROPBjjzv0AUYYg0JC4tbZb8j7P9fGEsxcKEbJru+Z+RrmqOHaPD/Ia6kkQe4A== 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=GroNJye/Yehgv2tou8mx9qaw1VtXSIYv09vStwtBzqQ=; b=TtkPcUQL1veWKuxdniYAguVRtTpAKyma7R76k48vkLG3G8UB5txbrUciWUS5dj/CBGlGFZjaCcw2ZrIQDsfZhP3Sr1uAl4lcMZDXVAYR86EC4VaWgZT/WJHs3zqYumzVu5xyGU7z23E16L2C+/IZchoPEjs++GVsrtTOSWkcy1E= Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AM0PR04MB6897.eurprd04.prod.outlook.com (2603:10a6:208:184::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.32; Fri, 29 Mar 2024 14:35:19 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6%3]) with mapi id 15.20.7409.039; Fri, 29 Mar 2024 14:35:18 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Fri, 29 Mar 2024 10:34:42 -0400 Subject: [PATCH v4 2/5] dmaengine: imx-sdma: Support 24bit/3bytes for sg mode Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240329-sdma_upstream-v4-2-daeb3067dea7@nxp.com> References: <20240329-sdma_upstream-v4-0-daeb3067dea7@nxp.com> In-Reply-To: <20240329-sdma_upstream-v4-0-daeb3067dea7@nxp.com> To: Vinod Koul <vkoul@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Joy Zou <joy.zou@nxp.com> Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li <Frank.Li@nxp.com>, Shengjiu Wang <shengjiu.wang@nxp.com>, Vipul Kumar <vipul_kumar@mentor.com>, Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>, Robin Gong <yibin.gong@nxp.com>, Daniel Baluta <daniel.baluta@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1711722904; l=1279; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=/ve4814/ESKVFolOyuQukJbgmItKlbc7RUUIpEOw+Jo=; b=HEzkP7vjvFd5k47Tb+Q/FAf71G5RoPOUA8UVQTzqIh3pZaGL1Ttn/VayrpQalPCwYr2bT7rX3 YGswr1AvKJlBqJ8Tljq90Z1g/bi1auQwyvzdK7AJkmzFRUv4bLiIL7G X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0153.namprd13.prod.outlook.com (2603:10b6:a03:2c7::8) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: <dmaengine.vger.kernel.org> List-Subscribe: <mailto:dmaengine+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:dmaengine+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM0PR04MB6897:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5JvrSbEpcqmPVeb6W3k2Fqh/0yl2N5KvY5HvgZUUSvckYWgUkQT8RjTvNEXqkXrvG47KdVokPPDKRGbcwDbirp2oEhUBhTg5Cn0cBesCUFGnGH7PdBnsvp2UnP/v7btPar9wzda/rUUEerwBUX7lj222oeTe4e19DxOnzLq/DHB5LUWSbLwswU4A/X7f2y63BLwUNNa84QctvksiBRuwNGq91yI7ENOIylCejf7xGFV2O+TrcJ6cIQ1ppUMQfyuH6Ork/K5F+EkvP8hqyEEd7TIY2WAQJKyjPgfWBUq4uKE4uz7goF0Mzqz5d+KvQjD1wiPvRdbG3Thyno6zRXwkCeigfLAXlxQO/c22wAWiBGH+hi+yhBoqAqEylHMOq4yEy540GVRGqtNEuZvJbMNWLt+kcg88lWyHgZ7qZ7qg+h+DgKUwRPujfTPGzSJkhu4MG5piT2QFBX3InuIGMFHYmFYhvllibijuzaTjQ7GoU8CKzrIHOtAyvngRs2vO0gR/WWqsnxqDGWPbCw4Qs3zrnwbAZ16lf4EtmtLyTf14OtsN1lVJFik57Vg4uqhNVrNGzmw6d25daLdQwknUNPecJzXXD/ghI2lF+Cf6M0Lua5fDMIVsiQjWJfGRxJYK2Y6Pkdnjh2s150tqDenxBe/i+OwLN7+R7V4/KEFtIuKEWT9Kw2sbsQfBkUIw3RWUZopOwEyXXcUzT189GcGi4I/jVH5Fy1tj3n573OSDkOo8RY0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(7416005)(52116005)(376005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiS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?WCiNddlW+x525E0ppYWE2UmZ/g5XToPZu8OgCKw4c0nedGc52N/K5MVjkONCfwB8c?= =?utf-8?q?8iKfXGKUX74Jal5BRDiFtd6H3yWtMbD2UpG9/ywtSbWwLp/g75IMSd12ZDBMp3CCd?= =?utf-8?q?3IOvDktT5HWTJooaMM2SpJsVVf/XYyZsQhiCuwpaovd/eYuSjScki0jPap64etieR?= =?utf-8?q?h/zAdrh8/WmYG/fJWNDNg5PJMv2bKo0/AUn8mOy80N5DU7YCW0kP6zzS6hf4qXHAK?= =?utf-8?q?cfvW3fNEo5QYkGZfrTeDz5YcRvdgtzavMZJI21K+10n0I+YPo75DEkF7uImFv3OlV?= =?utf-8?q?KbQbvo8LzHC0F51sqklTIa+Py0rqUvp/xGZkWh+BFsnbh/OWJY5SUCRPmGYzQ/3hj?= =?utf-8?q?SK42tnMZS8wXJwh5wnqxJ0Xe5k6fCqeI+9RPZmvRui5qZcyfwr8KA7sE6CLKtzNnX?= =?utf-8?q?F08Omjjb5umOwAvYoa7Hv+xmhkv46Pf9oQbJWooswJ2wUWBK/gu49EIQeGWKt9UU2?= =?utf-8?q?WsdWmTtT63gfKFntjW6yP1SOlWt3FkyHf9qKR1B1Wl4Dev+DTqyvmPZ7jM9fMWqKE?= =?utf-8?q?KEDbv0vQfrfNz3Bi0szDqA6p4rPEzEj9uW3C+HA3rfNEivlBVU6oeuUEJvffhr2zv?= =?utf-8?q?O7h8JaQ9NR6g5dK6bBW2fIXKmB1uA30FI09SsH4Vf8MObAvdkDdgVkvnh+FkpKdr3?= =?utf-8?q?VegXT8DTQn2Y?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b831f83-d668-4a06-c29c-08dc4ffd74ff X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2024 14:35:18.8758 (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: Srn4DMht1ATElsRjX0wNl3Khdu1c/ED9Ma8Vcmx1YvuUEoJVgSAN23DV6tJabFW6rPBFJfYlUZlWo6pfo43CrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6897 |
Series |
dmaengine: fsl-sdma: Some improvement for fsl-sdma
|
expand
|
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 4f1a9d1b152d6..6be4c1e441266 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -176,6 +176,7 @@ #define SDMA_DMA_BUSWIDTHS (BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | \ BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) | \ + BIT(DMA_SLAVE_BUSWIDTH_3_BYTES) | \ BIT(DMA_SLAVE_BUSWIDTH_4_BYTES)) #define SDMA_DMA_DIRECTIONS (BIT(DMA_DEV_TO_MEM) | \ @@ -1658,6 +1659,9 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg( if (count & 3 || sg->dma_address & 3) goto err_bd_out; break; + case DMA_SLAVE_BUSWIDTH_3_BYTES: + bd->mode.command = 3; + break; case DMA_SLAVE_BUSWIDTH_2_BYTES: bd->mode.command = 2; if (count & 1 || sg->dma_address & 1)