Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3080254rwb; Mon, 15 Aug 2022 17:38:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR6XgCX7UB/4NQGuugtGoZfSDTjiqk7gXHV5Eh+iZdBrR0P2pBBu7+vbyBqrIJ3Esbf2h450 X-Received: by 2002:a05:6402:95c:b0:43d:6297:f241 with SMTP id h28-20020a056402095c00b0043d6297f241mr16528563edz.373.1660610291067; Mon, 15 Aug 2022 17:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610291; cv=none; d=google.com; s=arc-20160816; b=NApvDH3xd7U8ojeHZyrFXRKBN2Bm0GBPS7H0rEZN095Hf7B6cRUc/cHqIKrZkBIdyz X5MxJLdMrOKiZLaUowDqHW5YbO9r15V8F6UD2kdQAsFyZz5lMJKEO9G492z8iyl/bbcv vYy/5NyPb6aT3FtXFECzX8RgmkUeuEIIYVHFJMxPOGVIFnIGtRE4JkUoXptyVIetQauF ibUfYGsvMt3zCxS/LLqksO2ndwSXSG43Ymi/wqS7muCxh8uhWFxPl7pWi4HMc454EkMi iX2CUshy47M6ciOyAfEUaeKDqx7U7ucy+Ohq387Onj0f0ceBl+HawTsBMauuGFCHdqjJ gXeQ== 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=aKX9V5fkjSNJ2qj8JN9gpHn/ouA2U+M1zMvVD1FrDqg=; b=eX1wGGfrcrk6xUctwdB1fEk+Yscog4+etxjVrAHLgRApasqoiNeNVY9W5xZdp+oo2t x0tvFOAWxVFduIZsiVZd3P9OIQ6d14iuBMiNMcvD8PBL0jh19edl5bj6sbqN3KPknAo1 VCL+IzWUK5PyHQNRzFngU4f6Xy6ioWw+9RUp98vdzUwJiTg5UZNlwHod2yA9FAiwkZre D4m47Az/hsPbcBsG521GKs4ca6IAHix3lJ1itE6bSLX0QI3JCLTslsKsIZKv4RT1lHL9 2BdiTaznaGj6wIohzYPx3RrEgahWm/zG6fLs9mS2WLTtRzGKKsotosqTSlbSZNLp0ns4 nkVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eIvnZtUI; 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 e10-20020aa7d7ca000000b0043d708d50c2si8421849eds.159.2022.08.15.17.37.46; Mon, 15 Aug 2022 17:38:11 -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=eIvnZtUI; 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 S1352495AbiHPAPH (ORCPT + 99 others); Mon, 15 Aug 2022 20:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234032AbiHPAET (ORCPT ); Mon, 15 Aug 2022 20:04:19 -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 BA6B1A0603; Mon, 15 Aug 2022 13:28:31 -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 BC333B8119A; Mon, 15 Aug 2022 20:28:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D203C43140; Mon, 15 Aug 2022 20:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595308; bh=8JYCwawIHQS3LdXXjJNiUBr2d0Z9c75h0r0YDjxkPdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eIvnZtUIoOyms80OkQkUaVlAl/z8poiXb4mJ78jUqX3QqMbv27GyIomCVFrcBHvgo 0U0sQnicqboaUPiaJqaIj2+YNi3tpvgf/zGnTggyZsxW61RwlpkwPjjhEDOom4Tkwb 67+pzOzT+T+Vmc0mWrRODEgU4ORjA1Moe1RuZdC0= 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 0690/1157] iio: dac: ti-dac082s085: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:46 +0200 Message-Id: <20220815180507.231057145@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 03a0cc77f164e4e59b970d50c6e9a6caf06dae80 ] ____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: 61011264c1af ("iio: dac: Add Texas Instruments 8/10/12-bit 2/4-channel DAC driver") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-62-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/dac/ti-dac082s085.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ti-dac082s085.c b/drivers/iio/dac/ti-dac082s085.c index 106ce3546419..8e1590e3cc8b 100644 --- a/drivers/iio/dac/ti-dac082s085.c +++ b/drivers/iio/dac/ti-dac082s085.c @@ -55,7 +55,7 @@ struct ti_dac_chip { bool powerdown; u8 powerdown_mode; u8 resolution; - u8 buf[2] ____cacheline_aligned; + u8 buf[2] __aligned(IIO_DMA_MINALIGN); }; #define WRITE_NOT_UPDATE(chan) (0x00 | (chan) << 6) -- 2.35.1