Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3257652rwb; Mon, 15 Aug 2022 22:30:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR7aDlBw7eUCufACdC50cvGLtV9SqWJWXPLNfTudRyLrenU7jwzxtaJMtjEMcOiHO6R4DLq4 X-Received: by 2002:a17:90b:4b91:b0:1f4:e116:8f1 with SMTP id lr17-20020a17090b4b9100b001f4e11608f1mr22223048pjb.121.1660627838901; Mon, 15 Aug 2022 22:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627838; cv=none; d=google.com; s=arc-20160816; b=V+JlcLfR3Mdc+Y7FQ+m77sx3eZ/DP1mm8plCpMV6M1w9skNRV0TKJE3v5W5ZqA5QDh vtVCFrVz1pRcIqwc/6JSDlaZMec/G4Rz4R+nMARMY3hZXnAJ7FjujGWWbVKZVrDAL7+k se0L3jPloqUkROM5oNMus4BIEjy6ZxRtTBPnHIMKQ3zXXijKyHyyeYjUfmCUPjjykT8K cDEYXKRXMNFvSRp2SZ9mVv7WUUgH9ryJslZ+5/PHqJw8XCiucOSRxdmxLXIGeR8Zzqyg lElHAxXwUptob200veVD+4d+lXMOun7X1/l+YzGmMe79qArmphiJ3HJ48xVnuXMA2fpP zkQQ== 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=QmHKXn6syhTuqsOTtF4+ymJu0IFW2PxuQXiU8l/QMTQ=; b=nU+pz2bNCnLFUiMRA649GrYHAl7S2cIQd2zvs941M38l+lKoFwVa8xOYFnqJu6y8N+ CBO1yHvrkD+Lyh3tlnSNoxT9jEgbV1E/yYhfOwdpWIn3bxEVmpeuhMEcE6zuKnKHDlU2 neXvwAXQJUoeIAb6pg54n5L0UpUg3CAYl345p/Q0gwmb1JE+ip4UER8tWwS7BcEAYTL0 H947gM1Krj08ULq/xXCgdyPGlWn8j0JRiG83ikijt4GhO6i0gvJ03lzg3oAkBFWRFdCT kpzPXBnZGwn73vdxi8gzDdHNQJtOp3zDEx9rX3/WPzqDf9wSwSJotYVjX6r452ahKLBR mYCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AuS4abCl; 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 rm6-20020a17090b3ec600b001ed0f6f1010si12974603pjb.70.2022.08.15.22.30.27; Mon, 15 Aug 2022 22:30:38 -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=AuS4abCl; 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 S230420AbiHPEfC (ORCPT + 99 others); Tue, 16 Aug 2022 00:35:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbiHPEeX (ORCPT ); Tue, 16 Aug 2022 00:34:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D0B16DC53; Mon, 15 Aug 2022 13:25:25 -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 ams.source.kernel.org (Postfix) with ESMTPS id 11F73B80EAD; Mon, 15 Aug 2022 20:25:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 336C1C433D6; Mon, 15 Aug 2022 20:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595122; bh=o+aJkkxQg1xdwE3GE8FcNT0QI3kL4+w+o02wQgstK8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AuS4abClBbLwXD1a1q/ZxmvGca0vZK9CLgNKim+fuP1UDnkWbeb6+TrmrAH2ReJ88 W9zxt3nOurxqLJWAQShbiAt5aGRpTHdZ+0ZIOkljJ7FnJmXHN2QtwEOtZ9IS8vmUqT yHiDd157DGYquTLloybqI6nz8/2maBUTPuNaHiS0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Tomislav Denis , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0664/1157] iio: adc: ti-ads131e08: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:20 +0200 Message-Id: <20220815180506.284127352@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 55afdd050c063ae4b8dbd566107a030c00d005fd ] ____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: d935eddd2799 ("iio: adc: Add driver for Texas Instruments ADS131E0x ADC family") Signed-off-by: Jonathan Cameron Cc: Tomislav Denis Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-36-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/adc/ti-ads131e08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ti-ads131e08.c b/drivers/iio/adc/ti-ads131e08.c index 80a09817c119..32237cacc9a3 100644 --- a/drivers/iio/adc/ti-ads131e08.c +++ b/drivers/iio/adc/ti-ads131e08.c @@ -105,7 +105,7 @@ struct ads131e08_state { s64 ts __aligned(8); } tmp_buf; - u8 tx_buf[3] ____cacheline_aligned; + u8 tx_buf[3] __aligned(IIO_DMA_MINALIGN); /* * Add extra one padding byte to be able to access the last channel * value using u32 pointer -- 2.35.1