Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3087730rwb; Mon, 15 Aug 2022 17:49:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR6umT0Gt5awN74cuoNmta4dyi9sqPXap4wu1YR5vJRMdpTrA+lvoLVqqlIKCtcaiBTGRHmG X-Received: by 2002:a05:6402:530e:b0:443:df38:9df with SMTP id eo14-20020a056402530e00b00443df3809dfmr4297145edb.9.1660610988080; Mon, 15 Aug 2022 17:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610988; cv=none; d=google.com; s=arc-20160816; b=mqo+m7P0USJ/lqfSifDaxQbNujlji2RM3nK5oNd9iqJpyoSLdaW02nFOnPGGdRtRhF FtDIT8m9QLWqJtCs3wDtKB7WXM/M77dp395WV2WGig4HbtKX7Pnl23baBRqRA0mz35H6 NlJcDxJSsUSS8Zeh2O3m77IgQJuHo+e6F0AfxYtxlao1Hovl8d8dk01DGJ2HaodfjjwH 1Kpx3Nq+8cSUmK02U5B+zRaOWKq8w39QmHkPzIoLHI0E9Plu0BD5F5P5cuskJdRE8phP 6c6prRQgSV+r0MNsWNfUUhtXiH30BPL7VPbECggtx89KOUu83n9rhc+LUiLDfHybUEMJ d2jw== 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=zPBVI7mEbTBk2BQP/Qk1BNJIoy52vYXy5FFjAhU9214=; b=h6dgxkVTWSTkMY02Qb1HfKKOgk7IGHTeHWN2M+zOmPsT9z13WIlOANvThqIew/mT/i Nf1QFz+FKJq2KM2elsWct4SL9QCHlq+QHIQ2txal5U/Z7mPkA/DFXLcjz4IqZaKkPbGs Q4NgCdO4Y0AtHukArJQv9TDdEdb1hl93Vd+UctmIXxl3UI9qhUH88fmyA52lPtkFtHhK hzG/Nx+sn/PIMOJE5qMHlxEihcdEPot1qIJS1bUot4AIC3RMfPWM2haS24Jt15erUsYF Yq1rO2i4IWlePib7N6XZOv5NEJ4ki9PPo4w8S2lQoedxrIKtMXAEbA9Y20vRdETvsWwQ vgLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bnwVsjd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht20-20020a170907609400b0073834629361si6770572ejc.379.2022.08.15.17.49.22; Mon, 15 Aug 2022 17:49:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bnwVsjd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1357363AbiHPANY (ORCPT + 99 others); Mon, 15 Aug 2022 20:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357083AbiHPADl (ORCPT ); Mon, 15 Aug 2022 20:03:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D237C16DC66; Mon, 15 Aug 2022 13:25:29 -0700 (PDT) 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 347D361007; Mon, 15 Aug 2022 20:25:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 404EAC433D6; Mon, 15 Aug 2022 20:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595128; bh=sbKiUkLWI4e9wRtVslmNKBxQISuUd3FwZfgPSd6f2fE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bnwVsjd0vPs+xcTWYWHgnfm5GDDmZbef8IuMeZn3vpBnz+oZfUgMwFMPoDw5FtI13 XhPt3fEk7bz3etkuhHckvnilyVcbzLFOoDvdLYKgtCLntxk5VCmr2XRZ8WaBGgVe0P Azwy5JPxQxTYLjKCPLkO07vdxYz6GVT1XwNv0q2s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0666/1157] iio: adc: ti-ads8344: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:22 +0200 Message-Id: <20220815180506.363548723@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Cameron [ Upstream commit 8966b11e5a14aaabc747ee97a7942fd50a681402 ] ____cacheline_aligned is an insufficient guarantee for non-coherent DMA on platforms with 128 byte cachelines above L1. Switch to the updated IIO_DMA_MINALIGN definition. Fixes: 8dd2d7c0fed7 ("iio: adc: Add driver for the TI ADS8344 A/DC chips") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-38-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/adc/ti-ads8344.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ti-ads8344.c b/drivers/iio/adc/ti-ads8344.c index c96d2a9ba924..bbd85cb47f81 100644 --- a/drivers/iio/adc/ti-ads8344.c +++ b/drivers/iio/adc/ti-ads8344.c @@ -28,7 +28,7 @@ struct ads8344 { */ struct mutex lock; - u8 tx_buf ____cacheline_aligned; + u8 tx_buf __aligned(IIO_DMA_MINALIGN); u8 rx_buf[3]; }; -- 2.35.1