Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3563298pxb; Mon, 24 Jan 2022 12:17:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJym3O0U9OYfQT6wsqA3k2yIhflsmd4QEmBYkppgRQYs8bzhdTNTI0GBiRKCSgwdliaJ1dm2 X-Received: by 2002:a17:90b:2245:: with SMTP id hk5mr14862pjb.75.1643055473011; Mon, 24 Jan 2022 12:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055473; cv=none; d=google.com; s=arc-20160816; b=nwbh+4ZcpFyhzy7mc1pGtyC98faKcwmKmkYk7KUDCKltLDzDlggcs+eEZK5mkEufY/ Q4dfN2nAgRjbZZgRnr4bELvd0D04t72s0MfWIyCWpeSoklReHozyr7hMEIdfW+5Q20f+ TsqLNPbuuMiU9gmtMbpKa1Hz+LrZGxx7OUAdKH+3v8OXb72onSPcIiDvkN3U8xCU57C+ 5TvidNVOV7uwCGm1wguri0oSjY4ljAugmBdcTbSYYvSvhyH8EqWZlZ+Dk1mHVxYwmiMl WjuuhTpCQyK4G3zbUXnxT7BJwfPldqC2LtU6NWyBht4XpA0z5ePaPDTfKHjCxUIGH4cD nSDg== 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=YkKQ0COzBp4kvokZojDrLlQ2V6liEMUZBnNJARoDrmM=; b=TXjaV0cyToYddaIwsB3HhQK0YR9AhOOndRZ9uik5LgLLSwcsoJi0mVvHB/1KztNfNe tW8mH0PeomIPo+gpgbs5u/6OdiRyKle19C80ZLFRMUGmSLEYJVg+6Zp0ggtfxpKVamjA hXPuX2EbVYurbkTPmD77p/LIQrAJ4VQgZig8HXb9xKL+SinzoEEC2SSChuqDNTBEfyme XdL2epXoVkq6USbICk0GtbXYJ5KwzBYqfe+c6WLM8GtzX5CNWuu2YbCgGEMDNVROxPSF +y6/QzfETUoKA9pdwoykHPmAh1cn1IzA7NuX1Q2W57cAcvwqmdBotqTG9v7OVvjCJVPJ FaAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TkCYuUfz; 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 q14si17335083plh.405.2022.01.24.12.17.40; Mon, 24 Jan 2022 12:17:53 -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=TkCYuUfz; 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 S1348997AbiAXTUB (ORCPT + 99 others); Mon, 24 Jan 2022 14:20:01 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:37484 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239179AbiAXTLZ (ORCPT ); Mon, 24 Jan 2022 14:11: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 ams.source.kernel.org (Postfix) with ESMTPS id 106FDB81239; Mon, 24 Jan 2022 19:11:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FF96C340E5; Mon, 24 Jan 2022 19:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051482; bh=cM8e0f4FcNE+MacCiN8jXQAKoaEqErh8xnFDFuWA15U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TkCYuUfzt8vj3KdgaoHyAeBnq3vqzR1uZLWp8ig1Fu+MQkwd57qfWgxSVesT6XzWV VKECPRRHgCBsNaPU/W0YOA6w8UtPrYIR6jvk4vLh5z++wXpyh7k9zgLJFm2stZy59H mG9VCOQcHETOUGEWvZDtNa+hk2+1o1inlVBsqG1o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Vinod Koul Subject: [PATCH 4.14 175/186] dmaengine: at_xdmac: Fix at_xdmac_lld struct definition Date: Mon, 24 Jan 2022 19:44:10 +0100 Message-Id: <20220124183942.745157911@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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 @@ -232,15 +232,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. */