Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3685219pxb; Mon, 24 Jan 2022 15:18:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx/xWRC4FYki/+58EmtGsPMMpkwCh+sQcs4FDo4QOicT+mbk2eUwMXLkRm8ZmbWIjT3CX2 X-Received: by 2002:a17:902:7c8f:b0:14a:c57a:a597 with SMTP id y15-20020a1709027c8f00b0014ac57aa597mr16380278pll.34.1643066326725; Mon, 24 Jan 2022 15:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643066326; cv=none; d=google.com; s=arc-20160816; b=uJ3DoBadkfWgAnfOXcAX2DWkhxamnHipXHujRCb+XkfAorPSDskLKQLsChfuPSIHgU 9Vahpv0q2/o0z2dLNPWtH2KQPRAIJBv9T7RMhlXXT/y7whFy0kxBJz7/wdz2mvF567eL IOEQCFzB02mCX4OfI9OK4fHJwUB70cG20XKp09HkYfT4LwzEM/k1OfhTEJGV/PVFgYDU xYmrGVsoB11Pz4JoS4Kj2M75hzVk0c1a3on0BcXcQAojj2ApMSw2YjlsEWx5IL9HP+f2 2zieKb474ysQQB5MRY+lwnAZsF7sg7NCcx2LzNpElSOsMfGL6PCv1jMzqtju1VWpE4T8 kKKg== 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=fiu8wiIJu0DkD7iDj2ZgBhBFSsrEwsHo7tvagQk8OZE=; b=b4jMVasgzrY/onRluiu6BTKT3Z2q3jqER0qZJar91YiXDH6WSty9GlYaokQGxFLX56 HO8QzKkdqIAlSeUbOpQ20y2ThXgn0qGJGLyqZoHociV4+MOX+bCVKpg9bShlDD1o2caY Zw+JEy3gHVtyAfW2LCJxpIylC9gYHl6dpBWWhuzY4vKoHXZVSbRQfeD4OnygZK31pI/u eHkstxaJ3Lg+CJIsazzW2bCllRSpRjvR4gjhjx/A+mpWntItDVLi65pCBk9e4E2mNgsl qgEsgiswr0aEe10xJvQ+/qao9KwEPnxb2sjt+6kQzmmBnRAo/4It3xljDhw66NSfUHhb 7B0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k00VF9KK; 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 w18si15716878plg.563.2022.01.24.15.18.34; Mon, 24 Jan 2022 15:18:46 -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=k00VF9KK; 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 S1845316AbiAXXMD (ORCPT + 99 others); Mon, 24 Jan 2022 18:12:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1584571AbiAXWVZ (ORCPT ); Mon, 24 Jan 2022 17:21:25 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 261FDC0424DC; Mon, 24 Jan 2022 12:51:07 -0800 (PST) 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 D7A16B81057; Mon, 24 Jan 2022 20:51:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13401C340E5; Mon, 24 Jan 2022 20:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057464; bh=NxXNBQpf4dvv8gbQ9BWxfIxyWCwIsLResc7PmWo2IHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k00VF9KKhxmqP0KkwJyVPVp/r3Bp1vMmCwj0xOOJ75lvbWK94pg+2VPpaIOzDqdpP M1wbeuX24o3MZSm6QOmkNLKcezX3uOksX6UFDVTYzhgFHeYHq5SaMUlC62jGtK/OTB svkOjX3mXBAZEpKg1MuOpK27rgzrzGDDj2e+GFZo= 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.15 820/846] dmaengine: at_xdmac: Fix at_xdmac_lld struct definition Date: Mon, 24 Jan 2022 19:45:37 +0100 Message-Id: <20220124184129.186040377@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 @@ -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. */