Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3577117pxb; Mon, 24 Jan 2022 12:38:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2eTVevdEPrIZ9M1eXFpDkrtd5j2SBWbTAss7h7BfC2DD9G9Vg+xudi8CBllLCEXfiV4/H X-Received: by 2002:a17:903:248:b0:149:c231:3e24 with SMTP id j8-20020a170903024800b00149c2313e24mr15577591plh.99.1643056714346; Mon, 24 Jan 2022 12:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056714; cv=none; d=google.com; s=arc-20160816; b=ZYdCs62RgOfqYmTm/owOoX0JMSP+Ef28s4I8g3EsuQRo1D/4KUq8aDlP+YURY3pLYI SDBAYB0J4yC/eAanDIyBMCVAn8jgN8bWuKWlRYfX3cQpd0SJwWFILgNidTIy3H/KiB0/ w3GP93ATf5vmIX6x7FhEGIPR6pKmnyirAf92v/oPsVtH1Xgqtn//6LfdeTwdbr3wz8de IN/GMhBfXOpfre3D9BjoXoXQDwU8fkXh+ifDOb5l1+06jhYO+99LjEOvs6nMGZA9JiBd l1f0w4EsEvD9FfUiYjs4Mxe7Kj5YyCygMuzjaq3+QDV2N9mhFtw8GdgTOd46AgXFZp13 fwPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aQ8P6PXMkCkiSnB6SeyYzhfaCplU9R0MLokD13ek8PU=; b=zXnm2bchMCZ9aY9+57by/tgNCxmofdTovi4t2GaI1eunMofsBPqFTw7HCy9z5FhmCp HvVP9OJvBjVqArWSrRaWN0pqCLmJxXovAGlTW958nRozI5neM2udi0RrI3NtkEgwI58i 9n5vWDmqJqTQ+eprPxMSuXv4FRHs3HIsVrjX1OaIzavMjafARwGR7D94b2p05M5kE235 7WmbS9hZ4AzPeZyZQlLr+8ZYninSG81uv2q/lkh+c6NwGso/bG9s2YjHNufidrFkXf94 Zdu5mpYmhoDWld7qDZ+NCMa+lo4Y662oVkbhSJOxGntGC9o8jSTaBq/WWnVOOKuE6jCj 6rEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="dD2uMa/V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si15283374pfc.85.2022.01.24.12.38.15; Mon, 24 Jan 2022 12:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="dD2uMa/V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350774AbiAXTu2 (ORCPT + 99 others); Mon, 24 Jan 2022 14:50:28 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:37730 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355303AbiAXTkZ (ORCPT ); Mon, 24 Jan 2022 14:40:25 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B925761298; Mon, 24 Jan 2022 19:40:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DED0C340E5; Mon, 24 Jan 2022 19:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643053224; bh=WS0FP5EzZnRXvSa/+sP/qnF6xwKayJlaYd0A6sJ99QA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dD2uMa/VyjRVtmlEIvhTZYMMYL4xXPmHU2c7xt5v76PEH6n3CTrpcKEBv6OUTPlq5 ZqsPA3xOPXpCljNVN6dwFGS4fsksBVtan88zL2Zho0XauAqz5xJd8mH1MOIUrMOZWU XpnIkHZNJ7v3tjvV0DrH6h7N/JSW2dXXSzq6NFbE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Vinod Koul Subject: [PATCH 5.4 309/320] dmaengine: at_xdmac: Fix at_xdmac_lld struct definition Date: Mon, 24 Jan 2022 19:44:53 +0100 Message-Id: <20220124184004.449445557@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tudor Ambarus commit 912f7c6f7fac273f40e621447cf17d14b50d6e5b upstream. 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 Link: https://lore.kernel.org/r/20211215110115.191749-11-tudor.ambarus@microchip.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/at_xdmac.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -221,15 +221,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. */