Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3021463rwb; Mon, 15 Aug 2022 16:18:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KUUjthhr2Y5SrV2w4AV8LamHxyl4vXk1viAuPvy21BuSS+ouNSZT81cmvSqPEczCUuHeH X-Received: by 2002:a17:90a:f002:b0:1f3:251:c48 with SMTP id bt2-20020a17090af00200b001f302510c48mr29711693pjb.22.1660605526777; Mon, 15 Aug 2022 16:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605526; cv=none; d=google.com; s=arc-20160816; b=YoWc7sBRp8zXeHKZgnd3QuJc5CQNNpwsGrC1biCk/zK7D2cc1+5/fvQsjgdrw6eqkf 21nyGrpOrSOZvLFODWqOp16dUMMZc77Hfjgk+DBXlI0txqUyB7Ly7dZF9vEchm1faVVK sQxALoWx8CXc4kuJfOiQopf0RIfyNfc5yj+5Yy0Nfd7tqKvpaX2a19IF7rIKS5t3kPAF xdTSJdQG/g7Ppyz25HRljo/XwVSuYbiIHF7PjtOKHDvq93vV7b2pCFb73diufoOxJSRW TdXtJ4tpzLEeXR0AZLwwGN17k/ehQvmt1mYCZ/nMgeZHMFKshuyfxPa8Boa50jIUvt2e hblA== 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=bWFPGTJazCY1kcMwUv4/NKWLL9axOnKBnj/1FLUbtqc=; b=cvB85xi9Rn/PEnBmrD0d7Uf+WfOA0BK9ruTapD9YVGKA4NNsJcS+72EZlbU79ojteu Wpu90PIKie0T6hFrGKxzbQd1E1JOHCHQzZGRClE9sCvIneiw5UMKeCadUwuhSH0XMF4G mhzcKo830mBT+nzOtWG8D3UKWXcc3Pc2rZqfYOPq0sxU6/OPVXT2VnWGeTbmYXEOdhgA DtR5/ZJBNChqx5U8lq4Zt5slGCJbNjW0+8X3Utkfxxhz+Xx4Rziw6afJVscTpPEZk7QZ J1nGiOJMCCsl9Pi7kWqZ4/2FIvwRGlE0bXUfJ2KsMgFfC6hmo+OQr4Hwy/J0BDJUuRQD Tlbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JbahZjsL; 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 jf1-20020a170903268100b0016f9027610dsi10232889plb.234.2022.08.15.16.18.35; Mon, 15 Aug 2022 16:18:46 -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=JbahZjsL; 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 S1349626AbiHOVle (ORCPT + 99 others); Mon, 15 Aug 2022 17:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244325AbiHOVhn (ORCPT ); Mon, 15 Aug 2022 17:37:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9B9A625D; Mon, 15 Aug 2022 12:27: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 dfw.source.kernel.org (Postfix) with ESMTPS id 54ED56102C; Mon, 15 Aug 2022 19:27:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 415B8C433D6; Mon, 15 Aug 2022 19:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591644; bh=qC+fTR72lKNazJDRxV9oVf7A+NTEtgKs6MUoauoVF+U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JbahZjsL/YSn9Jiyu9ZnmMeC1OejoZLunMebMxszgRmtJ0loWsAswBlS3BlOMIj2E oY/JD21p8HhOLf4MSitLBDmvM9od7n7Y0lohmrDCbgAu7mczIiZbseOgXghLDa19Ek iGn+f3bO7J2MbwpqN0sr4MAngKm0+LOUYY2nsHU8= 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.18 0646/1095] iio: dac: ti-dac5571: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:45 +0200 Message-Id: <20220815180456.117078873@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 0b775f943db3..ba68ea1e3455 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