From patchwork Tue May 23 17:20:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 13252712 Return-Path: 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 8E4B9C77B75 for ; Tue, 23 May 2023 17:21:18 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Subject:From:To:References :In-Reply-To:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TxNHl0cemPfWg3CES4Vtv7AQZPwZ5wfprPZ3nFtx0x0=; b=LCNw0s3d0WcclV aK/FrF5tmSWQWZldKOuCJ7G+RmIZb79F8yJ/OKkKYmzbafd/xnbg3WRTIWjuTsgwfRz0fy293Sjt7 l67dr9TQ+nnE8OPMfseCOmysAiGr+ry1LASG5REPqlWBoCWKaA2ub/zPVb+HvGEE3pUPmsar5ytEX vKoc6j5gFFrygmSO6xrz+7aEuPfiLBJ4cICJVMcvat5KAV9Gjfg1hRR9KQFmYKa3onaDUwuCphtob P7pDMRS/VSYpzJzKWcV8i8YXsYq144/T2RLoNI+BzuGnyEDbJnzoazeGv8ZQ5HmHlZn+JRxje2B1F AGulAX0xQ5hJBlPoNLgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1Vgv-00AwI5-11; Tue, 23 May 2023 17:20:57 +0000 Received: from mail-db3eur04on0710.outbound.protection.outlook.com ([2a01:111:f400:fe0c::710] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1Vgs-00AwFm-14 for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 17:20:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lGibNfBMlyJxFXfQeUGuJQn4xZBv8tP64vHw8/ZgyskFQ2euJPf7831hTMe988aCyTERB8lHisg/3AhKrE8f7no91TZmC/t1sUblihGPRUiLnV4o0cd8r/Mj0H9gY5airzmK9rYqBjpNd1QELUJYztPtTCqfyM6LzH00DK7m/31tQgqA78KwA1HVluS2eIAl8cqQ1D5/eDcGGRXtrHYPKrg+2wVro8p2zt1AFtOyuR0PGi3gu+sHvzJ1ZOKlpagvSWfX5dYWBVR90+G+vrPY1D7sah/f0UDm3y+E/czuY28cfIcQOGKPpZvwJb2kb0SVG9PQ7dH+Mcxro1CWe5vtzA== 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=YCmZY9WSyKFATcL1f3tMKVhPsdg8Fa1x3+yva+emnp0=; b=QJopUsXoE0osc9iGD/8Cn6gLUxtGmUy2CS+isXsvUPLbriBHFuLVW98hOG5C2O765azLlN8jc+oSaZx4Wc3mNPKwfEe6aFc7A4+zplaV7U79V6ZdzegOnRR69t9QLj1ZOiAx+b+d4SixSh1FlvEU0W3IawLa/O5U4Y7LfflIjGXz9IeYBzjpa7DL7wN/EnOYVHtC9RFgRz3snVizq38NGOSamLkcNFmSc684GiV7MMVhiwFT4+3/3ttTg0MKfukSPKr6CKwOqS9bDJP7f7+KI7Bg/cfInl8gpHHjsy2uum8Hok0JBbnTjJcQOkPxZTMB/S3H7NapVWDZAU24/TdRbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axentia.se; dmarc=pass action=none header.from=axentia.se; dkim=pass header.d=axentia.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YCmZY9WSyKFATcL1f3tMKVhPsdg8Fa1x3+yva+emnp0=; b=DAU/DBB+Lg0rL5buaJx5Q745g+HwQhZcMEpNC3H8oms+oZsfTJACY+aaHeqUCY39+v+fUiQmx94jZJgKuYRa+kuvXS+TKqJfyPIpVqhfQdVqmf0Ib/FHbcnUa5fmukHfnAafdEHd7caHdtuIJlitjEe6QSIezPOAa1NBP00q/I4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se; Received: from AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) by PAVPR02MB9205.eurprd02.prod.outlook.com (2603:10a6:102:320::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Tue, 23 May 2023 17:20:49 +0000 Received: from AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::681f:7dcc:3f6c:3b36]) by AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::681f:7dcc:3f6c:3b36%5]) with mapi id 15.20.6411.028; Tue, 23 May 2023 17:20:49 +0000 Message-ID: Date: Tue, 23 May 2023 19:20:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: sv-SE In-Reply-To: <221d19e2-6b92-7f38-7d8a-a730f54c33ea@axentia.se> References: <221d19e2-6b92-7f38-7d8a-a730f54c33ea@axentia.se> To: LKML From: Peter Rosin Subject: [PATCH v2 2/2] dmaengine: at_hdmac: Extend the Flow Controller bitfield to three bits X-ClientProxiedBy: MM0P280CA0061.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:8::21) To AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR02MB4436:EE_|PAVPR02MB9205:EE_ X-MS-Office365-Filtering-Correlation-Id: a58cfb92-e745-420f-6730-08db5bb20dbe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6sb4k87muWCu7kOnzl1R4hzNkv1lAZJVj2kFyoIC1zaNzXJBMGm21js+7t2FMeoXG9K6xSj7bks6c5jD+Wy+yjERZkyrzTk4TYfR+d+FoL6P5zffwwH6b5EohBUm3ty2x5V1oT1e2eJmlMfIb7dljZ+Dw2mQnL/Nr/wMNSs00Ah1NTTJ7kT8F1d0tsAsVTuUfq3VYn7P2n9ATais5jpXljwtA76glyR+It2vuFpJSK4khtgHAJ75uoBr1BVfuhavx7j3f82t25p+bQQKkSYgdWW+h0IyDsZpZ01fii/nt+xlSKtTQDI33C1R0YKZV8+5BPQXAIoLM3cNohfZbpA8rguUf6AHs2IUvgWwA8sKojtU0PCGf5F0VzISob7siFcZzEpeUJY7Hp86vctW0SLMBuYNvE2hLNxCiX60snhdvkKS0EWSodDnigy2T9bwVEkx4CyjyUDelknHdTFDCFRNdOxFWGShMo2KIJQb66da32aFpgSR5vh7MDi1kHXDnIlqP2eI55+Ue5W2/AaeTXD4xckjlazNMKTyRlRO8RmiG8SVgVLw3aFNDk8hZeO8FctlEubORsIcm6L1lhBIwjF+2ZnoGJH+na8Yv0vobbOanvkNJpCQho96OrCXdS4bWA6yrKmby/wVFRq9+51vdYmD8g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR02MB4436.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(39840400004)(376002)(396003)(136003)(366004)(451199021)(8936002)(8676002)(5660300002)(186003)(83380400001)(26005)(6506007)(6512007)(86362001)(31696002)(2616005)(38100700002)(41300700001)(6486002)(66476007)(66556008)(66946007)(6916009)(4326008)(36756003)(478600001)(316002)(54906003)(2906002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LFhlrCjW99NPsDdfYunOPiOLTGhv?= =?utf-8?q?L5FLarEhoJnnpXE0KW9zS9/XQGJvO+q8vhKStsD6Gq7ZE5Li2m191u2+kxNamxuYx?= =?utf-8?q?eFxsHRIwCRBKG+e8m60FUAGc0OZkao2LMaWdsVL0NpP+b1fFizKNUrOIQ+WhcxJmm?= =?utf-8?q?aXlyfMSRvrXzA1PJx3L9L3sPXXecHgdE6pR4hNn49wnipdwPwD57ABwkiEQc/Vk/P?= =?utf-8?q?+MZATZ4ph7PkTfek/bWumIk7gq2QDtKckfxxVQZ/zNja5ELmY/oxONnd58zoNfGac?= =?utf-8?q?FQeOhyEAeVomhC8LmFIIKri4alWKeBZi7MhOiHx/q9QjmpZ9gzJLHB4RA9GtFOqvT?= =?utf-8?q?VxKoXsE7pD29IpEwpgpEQ/GD/L4h/gHBo7lJyjUIM1gC9x3Kht8x6DN5mWIFSAfN4?= =?utf-8?q?hgUgeGKSAUXNHARMiMR4qgtlqsFdJdF1CEFx8Bi/bMEwPUJDY87vtt/CB/nPBz49a?= =?utf-8?q?IwKCHTHxXZROc/DPsh7KMpw9X4thhjPeavjM3rRTOTlB4QCzvVJqrSnszYxzbZ4xd?= =?utf-8?q?+sqi+fDJyHBPBhdJ5DY55HJHYuPtmQXWLzJibsKcdLvlp+aDLzwAfh7wyu2bWueiR?= =?utf-8?q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F9k4LzXUMwzwKfBIpRlgnAHkiQLCq2ZgwutARTFaA/B7Ps4tHOQm7?= =?utf-8?q?99hF/kbPYycp?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: a58cfb92-e745-420f-6730-08db5bb20dbe X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 17:20:49.7370 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: J1BA0tFG7My1/71ZEjkzMT4wHFUr9BlRbPt2PZwN68X3CDdISx4h9TVCq6vQMRU+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR02MB9205 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_102054_370353_39211307 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tudor Ambarus , Ludovic Desroches , "stable@vger.kernel.org" , Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some chips have two bits (e.g SAMA5D3), and some have three (e.g. SAM9G45). A field width of three is compatible as long as valid values are used for the different chips. There is no current use of any value needing three bits, so the fixed bug is relatively benign. Fixes: d8840a7edcf0 ("dmaengine: at_hdmac: Use bitfield access macros") Cc: stable@vger.kernel.org Reviewed-by: Tudor Ambarus Signed-off-by: Peter Rosin --- drivers/dma/at_hdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index 6362013b90df..ee3a219e3a89 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -132,7 +132,7 @@ #define ATC_DST_PIP BIT(12) /* Destination Picture-in-Picture enabled */ #define ATC_SRC_DSCR_DIS BIT(16) /* Src Descriptor fetch disable */ #define ATC_DST_DSCR_DIS BIT(20) /* Dst Descriptor fetch disable */ -#define ATC_FC GENMASK(22, 21) /* Choose Flow Controller */ +#define ATC_FC GENMASK(23, 21) /* Choose Flow Controller */ #define ATC_FC_MEM2MEM 0x0 /* Mem-to-Mem (DMA) */ #define ATC_FC_MEM2PER 0x1 /* Mem-to-Periph (DMA) */ #define ATC_FC_PER2MEM 0x2 /* Periph-to-Mem (DMA) */