Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3245796rwb; Mon, 15 Aug 2022 22:11:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JVbO8yk+jT4W6D08rINVUfua+VaLw5TgOlEd6hS6Z6Ta0DPfXSHj9I9jEciWG0YKbuItw X-Received: by 2002:a05:6a00:10d3:b0:4fe:5d:75c8 with SMTP id d19-20020a056a0010d300b004fe005d75c8mr20052637pfu.6.1660626695945; Mon, 15 Aug 2022 22:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660626695; cv=none; d=google.com; s=arc-20160816; b=U1z/bz+8mEhK//xJr47DAwuVgUOeH6HbqjQMN67yyyD3hzoyORx4teLrYs16l09OwL YoZ79ytH8oS5kEpPLHJiNQtQ/rbTLxGnODpxUFqyj7LSjWrniSIzdbPN87ruWCmtJq7r PWKEN7vmavzpK9tRdGeFWItQLyOOBcaPYTcpM0noBPUqFfVDDINHjRqJzpVg1Qpxs4pO 1UuXTfdFF4oHHtvDE7i5FLFsQedVGnUf1e9Nq2cmkG/ZJ/rYorBtZlxAonc0V5f7VEZx xcTCOwOVI8PYPgBZcj4QiKCdGKDjfp06qvM2wls7QuWnuySD33SpsBM6JeQfXOT2B6ze +83g== 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=qJfnA6cqH++SHs32opU29PVbLF8z+HxPA/Vbm53L6Dc=; b=raWXN9recUzqrnLi+621Q1V3eDJf8sg1Gq+Wu1vTRhOGkXoVFizmy5ulN+2M7tIVAj 0C+uC0e7qnZBayetSnMlAi9TnbdaeVo2xtzT3s5LHp4N0nXS7FD3ywJ7BDhiEfkXwI37 440BiuXDIMnHBkGrS42K2UjplZJckiIsF28JoHGbZh+GOkDdggMNwhrePHYLsQ+6OCnF fx+c0YehGEyk7uiFn+Wsta5XaPQhO/WaKvNYYgtouiRpRjQ1O0TrZpvJ2trd2jgLYhkf h/o5aSFpVocAr2W6il1pQHrDwHWVETidIm+rJ+k6t3McD7LrclPgOY4zkfyYtMrcagHX uKLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XWFHduOD; 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.11.23; Mon, 15 Aug 2022 22:11:35 -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=XWFHduOD; 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 S231464AbiHPEiE (ORCPT + 99 others); Tue, 16 Aug 2022 00:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbiHPEhB (ORCPT ); Tue, 16 Aug 2022 00:37:01 -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 603569C8D3; Mon, 15 Aug 2022 13:26:58 -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 F23B061089; Mon, 15 Aug 2022 20:26:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E27ECC433C1; Mon, 15 Aug 2022 20:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595217; bh=gBGcrnAMclXRoqc3CuPodqBwsRNPRWq2FLZYJfZT2Ck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XWFHduODY2uwhx+9fsdFbJ5+SWSuGzYS46LejfsHjegu2TMcBRapLOVQO7tJ3WsQR 5ZHXu1X+lyBt6RqZzNGPlLihdW/7Oi/yvr9EodJa3UdUger//cG/OaYy0A62A/baEj u4ggxN8gesng+YXgvqJOLa0Z0r9EHYC/ZfiE0TNk= 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 0687/1157] iio: dac: ad8801: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:43 +0200 Message-Id: <20220815180507.116434646@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 1c20292c6b60cfc60a5e652174b8063e5cc03fec ] ____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: 7f270bc9a2d9 ("iio: dac: AD8801: add Analog Devices AD8801/AD8803 support") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-59-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/dac/ad8801.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad8801.c b/drivers/iio/dac/ad8801.c index 6be35c92d435..919e8c880697 100644 --- a/drivers/iio/dac/ad8801.c +++ b/drivers/iio/dac/ad8801.c @@ -26,7 +26,7 @@ struct ad8801_state { struct regulator *vrefh_reg; struct regulator *vrefl_reg; - __be16 data ____cacheline_aligned; + __be16 data __aligned(IIO_DMA_MINALIGN); }; static int ad8801_spi_write(struct ad8801_state *state, -- 2.35.1