Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3254556rwb; Mon, 15 Aug 2022 22:25:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR7H7SvktOHu8eaECNxO8tHvPp553d04CDuJNrne1ngIG8+uG5aASMtQCyXZ8v+eHVp/VxA+ X-Received: by 2002:a17:90b:3c46:b0:1f7:7eb1:379b with SMTP id pm6-20020a17090b3c4600b001f77eb1379bmr21537862pjb.39.1660627514964; Mon, 15 Aug 2022 22:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627514; cv=none; d=google.com; s=arc-20160816; b=ccInXvv2LXGz1FXZ9VzwBfvGlgWiGMxjc24wNwevExGHt7g4M5qENzSv/0e8D9g/Zg TrgT5+tWMwQ2kZzFYxP+xPjng5K62kqCCBnoVohAYVCpe+EmRp0s8enTBaoX3VLmwoUS bWh0gKCHf3PJ/6FAa27sIKnjZnkMDRJuCfzC+cjQURk2cMKJF8h5QDAgf9lqHrOGb6E1 cLDgNGVinDOslb8603+1UJpRt5fNObRhZILaiuhEdo7/qrutHWoEgki2JVm1H/fPtyKw ao638V/7IH4qoEqPE0aqMymAPYLlNoySvI3kyHo/KVIjo28nxW7mLvMmhmZA0tRs8rvX kYLw== 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=XHwIhV7wVPh1SOt1+i2Xqoc5YhitxpnLTMcYDXmExUk=; b=V3T/8Rd0DdRSt4o/MaGij0ywt4oK15YuZI/QCnF6psM6JrwAPWZTQ/E11fGANoCzdJ mtvigsKo7A6svpVStmUcq8sEajkDdwun9Q4SvS1wRz5H3mYFvDZBDoYP5l/gy4IVLcEK IPlQ2D/wvYhK/RHCu84xi43L3UN7blSsQgmoZICUJRqCV1YUcXcl+dx9VYm+91xwr8Of E4Fot0COfWIsvD8EQabVBe/FcJvxY0rgSk5ETf2t9cUyeD8eMlfNjTYgobhi5joL/ruo EskCWs+kCQFjtK5w4SuNZYEQbuNvMY1qls80YRyxRvvT5dotqPz7pshfnvcveMQnNVGV Pzrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ixb8mrN3; 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 h10-20020a63530a000000b0042814932da7si6702037pgb.403.2022.08.15.22.25.04; Mon, 15 Aug 2022 22:25:14 -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=ixb8mrN3; 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 S230463AbiHPEfR (ORCPT + 99 others); Tue, 16 Aug 2022 00:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbiHPEeh (ORCPT ); Tue, 16 Aug 2022 00:34:37 -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 140184D178; Mon, 15 Aug 2022 13:25:52 -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 BAA63B8119C; Mon, 15 Aug 2022 20:25:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09088C433C1; Mon, 15 Aug 2022 20:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595149; bh=t5Fl6FiYGtpOMcKTyXWqYCTOGKEhu1BZ+YkYDM0Xj+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ixb8mrN3UmT16RedDI5cwqgpjCRjNeaxvvg9b1qlXxaW130bSvTahx6cdYSv+Id2O dH2Oc9NUEKp5jqUpZOBXrnIjNQolMWmuujt1uyx9rskJpqVmrKnyS/DoLJ7dcOSGi3 ckP6ctKySPWim/bNsCGWRyt4m5qydWUTY8Xgx/CQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0672/1157] iio: dac: ad5064: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:28 +0200 Message-Id: <20220815180506.566976854@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 8779b88c214fa0f8fdfb9c54a124f468884d356a ] ____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. Update the comment to include 'may'. Fixes: 6a17a0768f77 ("iio:dac:ad5064: Add support for the ad5629r and ad5669r") Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-44-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/dac/ad5064.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/dac/ad5064.c b/drivers/iio/dac/ad5064.c index d87cf14daabe..4447b8811827 100644 --- a/drivers/iio/dac/ad5064.c +++ b/drivers/iio/dac/ad5064.c @@ -115,13 +115,13 @@ struct ad5064_state { struct mutex lock; /* - * DMA (thus cache coherency maintenance) requires the + * DMA (thus cache coherency maintenance) may require the * transfer buffers to live in their own cache lines. */ union { u8 i2c[3]; __be32 spi; - } data ____cacheline_aligned; + } data __aligned(IIO_DMA_MINALIGN); }; enum ad5064_type { -- 2.35.1