From patchwork Tue May 23 12:42:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 13252212 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 6BE3EC7EE23 for ; Tue, 23 May 2023 12:42: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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Subject:From:To:Date: Message-ID: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=rlQ0yFe+E3hxa9Btsf9BwaAAIII+j2XLnnQVAVyMxk8=; b=ncsDEfvjWCInPb PjllWmvh90jFXLggKVj8GLgDLD+XGsHyXQfxhrtYzdhwz51/kWuDSDl+90auwvaUwfbDcmBgS91bF DFkxCmJb6ZnK772+TWTRqkjNHqHGn4pcu1SnITqpmx3gvlSQ/8aJ+L2E6QTuYFPbvviZewkkR7r3M O6LTyf0Mb0IWPltoPgUCgcKwnqf81x9k/BXNTKXTnFvfRI2AZ3XAb8ESGciz0KfqguuobwiTBYkhf ++zdsqXQ2XaFW7WRFXhakhQjqQiVcdBKjO2yDit6b6Ja1QdqY9ecwf2xCOnD98yv+Wz1a8CeEHXnl jEYuvl55dI5xmrSLPQxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1RLH-00AGyK-1y; Tue, 23 May 2023 12:42:19 +0000 Received: from mail-vi1eur05on20728.outbound.protection.outlook.com ([2a01:111:f400:7d00::728] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1RLF-00AGxf-2G for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 12:42:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gU1lQ0x1VrUdo/flxO4BLUcaMtzocqDsZTI3hojJk/TsOF6v7t8yFPMvH45VTCkLNmVU5SE21VKXLLDAwX7q5a2qS0Vi9pdMFVu10NzyfTh6twe/Vj+5Lv4x0hKHQKQ+xKgZsrS0VvgJ2CFAOvaEJiiTe1GBkaSZ2mm0FNkwBRCcF3i/t1V1Sk0CeaG3afYJFtf2vXMaT+uin3yjPKwiUuwMbZ9Bw9tRU+cL7S31UjlNwDrvC/hAyvye/Do5uchJ7m4H1ch2a6Bz4oS0KV1C9tiptquiEaKKkycvNvidI5bksyayIJ+h/0xbB+hAmT2Hu/PhQAoJ7MJRaBfTkl5u9A== 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=DqeCf/iIf6i/tilrnKpuYORCOLVx6BpLYngvmHACq9A=; b=SSlJyOIqYuznauBjr0LCtef4LQ68OwmDFZRc+XeO8aAxQ/wZGZeYmve4XdaTBrBEHc+41pDLz4fib1kzshFW1uESNUpJ4Gywbfb0GlTUiZ5Ex2JuyO+lrkpc0RJwk3i01X+eodS1fMIDFOYAFAPf5FcFqMsuscl+QL51JtgmUjXWGGVnGQAt83AYSzFOzCbQcLD83FoNOVYY2vGBiWWxxYWT/3gpFua98w4JtcZm8c+wj4n0txCFIN1AL9Sm7K9dfo03eFgIopfrh4TinLedcixB8xs2Q4v6BuSRKNvM9OXbNcJBHSQPiI6GE7LlRaNiKiCL5uHjhj36IEHhxogH4A== 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=DqeCf/iIf6i/tilrnKpuYORCOLVx6BpLYngvmHACq9A=; b=FlcjXGZznxc5aub8ZC11xG+OHlwWCkUq202m5TznQvbyotxMsxWHmUPd/oXO7o2vjvEF87S+o3n3agYwTMOVioyr5dVo6lv42gOPlViau+BRtCgnfYXUSkm7OLBJcSDM1VN+rBnfOWYGLHbigLVRJTnyURka6uC+DveNbnORnM0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se; Received: from VI1PR02MB4445.eurprd02.prod.outlook.com (2603:10a6:803:ab::28) by DB4PR02MB8560.eurprd02.prod.outlook.com (2603:10a6:10:388::16) 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 12:42:12 +0000 Received: from VI1PR02MB4445.eurprd02.prod.outlook.com ([fe80::b703:24c6:975a:bf84]) by VI1PR02MB4445.eurprd02.prod.outlook.com ([fe80::b703:24c6:975a:bf84%4]) with mapi id 15.20.6411.028; Tue, 23 May 2023 12:42:11 +0000 Message-ID: Date: Tue, 23 May 2023 14:42:08 +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 To: LKML From: Peter Rosin Subject: [PATCH 0/2] dmaengine: at_hdmac: Regression fix and cleanup X-ClientProxiedBy: MM0P280CA0089.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:8::32) To VI1PR02MB4445.eurprd02.prod.outlook.com (2603:10a6:803:ab::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR02MB4445:EE_|DB4PR02MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: 8925d2df-67b3-4bd0-ae22-08db5b8b2108 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ruaF24+dxqlk7kArsk5sbb6G6uw4+WFm4vIxK7tKZ9nN0tluW6Zl4Rd3tyXENQ6GdwrBW79KCAyZrGe+Uy1p81SMqaffRxj1DNGE/5Gcvs9S4cF9I6e159zea3ICFZTeV/ibC7fMUq/ksKVHr4VYDkEcdtKizanggYbFvbsvujuAo8uiJdcPyYuvb8fe7WcD/4rYHxvUVxZEFb2flv5D06rNSfYTm2YH9756OBK+S6AlSJiLETZZTu2007vLJ2k4tlwnMjgMTiMUquGbnPs5LnmrFluqqxmhII4+vcn8yk9d0FCOdGwgZkRbdOC0SLw0aAX1/7eRgZvZPM2qazmGFPN7rgb9v2zx0wNq0r2yx6mGNjzD5wiqMEeFm94KctzhHP71jtvr7PaEw2CksEBXNMGTMLbDtnfckJfY1SHQv7hVZWy23fUHdgzF9121OvxqwLusC/QyfKkQbEMyMrCQJrcnm3eZXLiByo27dyJcKZ3HLIVB5Cgh5r00gnPO8idSJXt02u8yqhfw3dkYdwtHUMesJJ1rfXdVwjH3CT+30cefWkqAokZZzYKXm+V2mM2B1Q5L8uwYAYVib25TNJol1H70X+32Jyjmu0jefxAei0phKUh1V9E5ojS5h74uHHi0SPpJ1xsqn79NjHfNfSmwnQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR02MB4445.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(39830400003)(346002)(396003)(366004)(136003)(451199021)(186003)(4744005)(26005)(6512007)(6506007)(38100700002)(2906002)(2616005)(36756003)(83380400001)(316002)(6666004)(86362001)(66946007)(66556008)(66476007)(4326008)(6916009)(41300700001)(6486002)(54906003)(31686004)(478600001)(31696002)(8936002)(8676002)(5660300002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/bdHeMWxc/S4ogDmA5wE5Fqzwu4B?= =?utf-8?q?FJhl2sFEvM2rjD28Ntz5cQ3fIbB9ZvaAwb+JYLQWTNwEARmVAOOsctnuiYSTvQBEw?= =?utf-8?q?rURLw3zvucQivXAF+4qW66N9UhEBfPNe8b2svn+8sXPch1Q3cJKLV5jvA0g8/1ebD?= =?utf-8?q?/oO5ocleIryHm6X6lePGAtxtahTlxz+KXBjPVw9GdftjMq7sdLw9M4aG5Y8o0UVd+?= =?utf-8?q?dNik4PzpFovsj0b+ExDvm+Q4Y/AskFR6TV+vF9dxC82lLacSaakTOXtg55h4gVKkM?= =?utf-8?q?tR47VdH9gx1vxW2gs6+O7vW4hH0U9nRMhLB+hP4557W3M15TdXwlYYh1YylxAESqK?= =?utf-8?q?mm6yFM4l84t+yCuqH7LaWCpRFgDY+HXN0cx1J1HllVWochXAUqqcE3AJRUSFbSuax?= =?utf-8?q?/An0fIp5TyJ5C2F3bcjPqYmfDIbW5Kc1QEPhqBUP98pz0LDM0TTlpXL/+cHiurXJJ?= =?utf-8?q?0x5tXYAZG5P9mpSPMj4aq3PRDuTcgtu5E9gtwLAj0E6Ch1tdhQQj2kAdDxmBGNqCD?= =?utf-8?q?lrDt3chxFkHIH1++puCvukNxS2REmztCQ/3zXWWj4CrRJaK7Ziwzn8U1FMNCiZqpO?= =?utf-8?q?TRHGA03JKGC5dVcPDgrl3S/SshZ/0Ez2YpiB0u9iF3AFb3f6Nj6jDJ3ynNve7fx3T?= =?ut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-8?q?CifIbJIXvu9n?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: 8925d2df-67b3-4bd0-ae22-08db5b8b2108 X-MS-Exchange-CrossTenant-AuthSource: VI1PR02MB4445.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 12:42:11.7804 (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: MDfn1bBEPRH1rtC56FV8fNjdIyx086rNi5lQTbtDWb/2O3Q0/j0tiLQF8oQF1FsO X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR02MB8560 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_054217_763468_75C59752 X-CRM114-Status: UNSURE ( 6.45 ) X-CRM114-Notice: Please train this message. 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 , 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 Hi! I found a regression in DMA handling on one of our SAMA5D3 boards. While combing through the regressing commit, a found two unrelated strange things. The first is the actually problematic change. The second is a number of suspect defines, that I fail to see how they can ever do any good. Cheers, Peter Peter Rosin (2): dmaengine: at_hdmac: Repair bitfield macros for peripheral ID handling dmaengine: at_hdmac: Remove unused field values that do not fit drivers/dma/at_hdmac.c | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-)