Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3094005rwb; Mon, 15 Aug 2022 17:59:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR6XWdqyzC/rm45Lvnb2GYYtmh5m9Kj9AmdCrE6aeMyLqANoq2dbEyTF4ZAAqhqzgAcz7X6W X-Received: by 2002:a17:906:9bd5:b0:730:a07d:9534 with SMTP id de21-20020a1709069bd500b00730a07d9534mr11843181ejc.747.1660611196679; Mon, 15 Aug 2022 17:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611196; cv=none; d=google.com; s=arc-20160816; b=f3wQ/rXyBHOTDUPRPSByC0KJ3CO5Yk5NPcsJjpvEnwE9e7owwxGPs6Q1fwwlI7NrBQ Mm3K98VnArrTGS4wikuMQNge+7dNugT4wnXmpAtlk2GuFAk07QE7vJ0lHOg7kMHbG22J U25SX4cpGOjVzQiRwOvs0y0clInn0uXe04eXHaVQm15mY5mh47d47MO27M+tyANHdBdq v9U+8NRoXTl2E7zKWGuVIz/2QyK+dVwiMIIJFRBavjpCxFainZY/HHZNLWp02fAxfGuO OulrREn4oUrsQqcs8RraPFvafUcpDWuG9FEOYDsJyZUhDA8/b+JdjSDkqjjeRnheOayK hobg== 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=OT7QOGGWoETfzd3swkOmjA7HC2arObbbOBuq8OtOo7Y=; b=MvbpGk9bubRY06Rma8ABYTEKT1ZYvZZojYWDKV2sS+OfvxjjrIocXnL2OVhe1yjEcN x10A97y8TI0vtmy26cMVdBX7r9sClpx8XHr8lT/0Oj5nD1on+ohtWIfvDLI43TQOiXbF DdEiBax1EYzDOsXIRLSB4FllgmPwnwBp5+uDHEKpkjyNAlcLQvCzMLtpTcrkW66SBuMF Q7RFF3Uy0ekmQ54UxohJUq5oLepk62+sStzVLrqkLkT0rUZluijZZvQKyQAst1tNNNXu pwx0ScY0sC5fNnkk6pJt0U1x41eIb8kKMwA8F7bi3M9ZJ6ZlkUx9hrJ5h56N3W3KU3Xd lKXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nuViVL51; 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 nb21-20020a1709071c9500b0073114ebf70esi8396891ejc.261.2022.08.15.17.52.51; Mon, 15 Aug 2022 17:53:16 -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=nuViVL51; 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 S1352606AbiHPAPX (ORCPT + 99 others); Mon, 15 Aug 2022 20:15:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352132AbiHPAEj (ORCPT ); Mon, 15 Aug 2022 20:04:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE63510E9; Mon, 15 Aug 2022 13:28:33 -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 4D20461072; Mon, 15 Aug 2022 20:28:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B125C433D6; Mon, 15 Aug 2022 20:28:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595311; bh=u82g5EIiAdUs2skjVX9fRCfEolgD6xBbOEqQyDFsDLM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nuViVL517+J8IZcNeka2L9PeVyrKWqfl4DrZD6T1vtnBvjBI7ZThSOECnq3eion+z CNpBsgRvcBjDMLbCgAIOmu1m2+iSo25It1b5chYSNIc9+jEn1GQxX22jotfz001+Sn hMBLSF7KPwaJER/Ec+sRJxRoGyebZJB5nEhDlv6w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Sean Nyekjaer , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0691/1157] iio: dac: ti-dac5571: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:47 +0200 Message-Id: <20220815180507.278590216@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 58e22371539e01c742be5c30295f591a6a17e348 ] ____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: df38a4a72a3b ("iio: dac: add TI DAC5571 family support") Signed-off-by: Jonathan Cameron Cc: Sean Nyekjaer Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-63-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/dac/ti-dac5571.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ti-dac5571.c b/drivers/iio/dac/ti-dac5571.c index 4b6b04038e94..c8fbacb27515 100644 --- a/drivers/iio/dac/ti-dac5571.c +++ b/drivers/iio/dac/ti-dac5571.c @@ -52,7 +52,7 @@ struct dac5571_data { struct dac5571_spec const *spec; int (*dac5571_cmd)(struct dac5571_data *data, int channel, u16 val); int (*dac5571_pwrdwn)(struct dac5571_data *data, int channel, u8 pwrdwn); - u8 buf[3] ____cacheline_aligned; + u8 buf[3] __aligned(IIO_DMA_MINALIGN); }; #define DAC5571_POWERDOWN(mode) ((mode) + 1) -- 2.35.1