From patchwork Thu Nov 25 09:00:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12693617 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 643D7C433EF for ; Thu, 25 Nov 2021 09:07:00 +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:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ee0aRvyNh2VU8/EqbpQxRrUedoi7v8RbA3Q19/IUhSk=; b=aoRfsg1xwmkYix g0ZM5eFETDka6ivxPCN6dxUl8il8wbkUDfDWofvLh4EtMWPYi5rXLPs/TCgVBRrJHhfgzco5uDa9F J44/NrEubr/ZRt6NseC5ahk1DLxM2zGjsjDYsJxtAr9Ult5g3bnoDWeWGzqUd5vJrlv/SYY5PjgHW 9HjPIoJZzXY8O+k7azb1eLr3gs1ezGH7QBxGUukcG2CQy7KhU29YKwGPTtcy5HAhksFh8sNz4TBjn m68/CZYZ9XDQFFaWmlAa/inan5v9QOJFG5ERS0hOD5A+Sm7bd31Wte4gUzvadkiuSQOKomBzQ2SBV vIiCnjlUihSbmvjIwHww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqAgw-006paj-CZ; Thu, 25 Nov 2021 09:05:18 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqAd5-006nca-I6 for linux-arm-kernel@lists.infradead.org; Thu, 25 Nov 2021 09:01:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1637830879; x=1669366879; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9cKQ8DLE+KtiJG/oBAobTtHTIQZeH+YXTokO734xUTw=; b=fzstjMVja644ShY6NaVbb5EMNPr6NtbxOsK2J9Yj1DK9a71sjBCu77eF RCK8NUmVKhJ5hF3t/S4dzR1wMp94JrW6q99q8D40Kr9DmJ2LXxl2+lqEe 1KWOgg6/umycm1EWF3EUPhHEe9rMtaVe1M+CtmAc6hM5TcUr3Z9p5vEM2 Mpqe1BgBogjNV8I+2XCnaIM3bF0bWO1DhnEUlljroYO2QwzVoena/OmJc Cj8U2/sODNWl9ljMaIMH9RAuYjbXo9nIa+O0joxHzIiGbSms5o8R/EkF6 HqzxkBrGqq74G/8+KxmoqGbYLdadxLDGtP6tRD73vIOT/xWArxz0SfT3A g==; IronPort-SDR: 8RpuItzUzgBGSz62CVpx1t3SlmyO1GkX7itwoz5juWqkyE5KxOQ9iXD8gpZjPVLM3y5HAGDrjK ou1VIP/l7Qr8fVuNltE/2wSy+L7dJKZXcZ/E7hpCuZZzneaVgD6d2/CAf8mdsyPm34fUfXXI6Z kdDh0D5KW7mVXXBS9veTrLe/BKg+SvZ7Ap3u2oW21avM5NVCSoBRSXYM8RyoznxllF9E8P4xKu BER4oLZQA6vAYszZx4bHd9eEdE21HLhyORnkynKBy/KIHknBGo0U5LxHdfgdAzJcJ6kVcir68D 4TJZX1HIi2xkda7m4cwxHd9h X-IronPort-AV: E=Sophos;i="5.87,262,1631602800"; d="scan'208";a="145122004" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Nov 2021 02:01:18 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 25 Nov 2021 02:01:13 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 25 Nov 2021 02:01:10 -0700 From: Tudor Ambarus To: , , , , Subject: [PATCH v2 12/13] dmaengine: at_xdmac: Fix at_xdmac_lld struct definition Date: Thu, 25 Nov 2021 11:00:27 +0200 Message-ID: <20211125090028.786832-13-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211125090028.786832-1-tudor.ambarus@microchip.com> References: <20211125090028.786832-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_010119_638086_019F4F72 X-CRM114-Status: UNSURE ( 8.20 ) 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: alexandre.belloni@bootlin.com, Tudor Ambarus , mripard@kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, 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 The hardware channel next descriptor view structure contains just fields of 32 bits, while dma_addr_t can be of type u64 or u32 depending on CONFIG_ARCH_DMA_ADDR_T_64BIT. Force u32 to comply with what the hardware expects. Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver") Signed-off-by: Tudor Ambarus --- drivers/dma/at_xdmac.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index ba2fe383fa5e..ccd6ddb12b83 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -253,15 +253,15 @@ struct at_xdmac { /* Linked List Descriptor */ struct at_xdmac_lld { - dma_addr_t mbr_nda; /* Next Descriptor Member */ - u32 mbr_ubc; /* Microblock Control Member */ - dma_addr_t mbr_sa; /* Source Address Member */ - dma_addr_t mbr_da; /* Destination Address Member */ - u32 mbr_cfg; /* Configuration Register */ - u32 mbr_bc; /* Block Control Register */ - u32 mbr_ds; /* Data Stride Register */ - u32 mbr_sus; /* Source Microblock Stride Register */ - u32 mbr_dus; /* Destination Microblock Stride Register */ + u32 mbr_nda; /* Next Descriptor Member */ + u32 mbr_ubc; /* Microblock Control Member */ + u32 mbr_sa; /* Source Address Member */ + u32 mbr_da; /* Destination Address Member */ + u32 mbr_cfg; /* Configuration Register */ + u32 mbr_bc; /* Block Control Register */ + u32 mbr_ds; /* Data Stride Register */ + u32 mbr_sus; /* Source Microblock Stride Register */ + u32 mbr_dus; /* Destination Microblock Stride Register */ }; /* 64-bit alignment needed to update CNDA and CUBC registers in an atomic way. */