Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2951998rwb; Mon, 15 Aug 2022 14:45:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6jOGlOeZLbBs4X/h9pGpI+LINKvoGH530FAJJMqqQoAcglfW5uyFf4f/nkLQNjhrco09tg X-Received: by 2002:a17:907:6295:b0:703:92b8:e113 with SMTP id nd21-20020a170907629500b0070392b8e113mr11689205ejc.594.1660599909296; Mon, 15 Aug 2022 14:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660599909; cv=none; d=google.com; s=arc-20160816; b=hOzeutZwHFLx9raIaCg4ONhoEAE9X/ubBOOObKXy/YFUZMXtvZ8nVr+pWvt1pNti2/ upJxD732JKBV2pK97s8x9AoZODKGhtjgOvKRCi8YIuzWwTUa/fMvIpFqzmV7X1qDjXjo cSkNEX50nvM3q6mY8VukNQRLmHKmwmKFf0vdFkReRkIYf7L6JZsyshNRBvsuHT3m8rV8 FW35JJKmn57J4BQMzNFCinnjhOOoU/84k3VnwSh/FqvrnBCU+oQfrUBn4ECNHTQzdznR Xgo9hb43Rsk7+/FydB73/5uvDppjQYGdiJiv/D3FYtzejByQq5lFjk0pY7+d9WLkzYjT JGHA== 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=yryzHYmPxalODFKaWYmNyBPhxmBKw54bNfq/RFEZTOY=; b=H4zuTXnd3FhcifmmXwFr2Uox+WS8qa1O5h//vvIdXGeJUqFkMBY4YMyauymPJlObqs suwFQkD7Ma57p18V0YpsvPJYUWVgj5DJuAqssXKfnuGhlJ++EGg3EiAH38eFSuPnRx3I hHPN1qGfIfWSK2EtF+NcyGS5E465w9pgcDIWAkC/OnAHsdGjSxjLlchcYiDBXS9GWuK/ 1ybf9VWpfkbibBBYcWN/OeJA0pz0I6RoSdHG5S6L9TVScfKLXP0azizU6cOUpeDgoLcO nu2ik/3dNUObv3gU/iAzoW8IYfP+0OSgr/qLLhgzIFXtGKuP5AlRQ80LS17Ud+p1jHXr 8MAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=htfEwjSU; 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 24-20020a170906329800b007330202ea43si7568655ejw.394.2022.08.15.14.44.38; Mon, 15 Aug 2022 14:45:09 -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=htfEwjSU; 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 S1349181AbiHOVmb (ORCPT + 99 others); Mon, 15 Aug 2022 17:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348991AbiHOVi1 (ORCPT ); Mon, 15 Aug 2022 17:38:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAADB29CA7; Mon, 15 Aug 2022 12:28:00 -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 55EFF610A1; Mon, 15 Aug 2022 19:28:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45FDBC433D6; Mon, 15 Aug 2022 19:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591679; bh=mHv6ngVvU2rDaW48u+G7k6U7y4oj2bzPh78/WkNmH8U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=htfEwjSUALQ2ib6cuSCKxfwNsVxM526HLU5/RzcmEaI6NjZ+EXB6nQzWS9ltFehAY Bzn3mB+XhKz/xKS9CTzcKan2dpKIPGRrKueb3+3k6nM/xbWuNdKtqax5L/lcx0jeTz YM9bWBmdek1Zl9/yGC5l0+i7Hwjhlr7GlKxT5QGY= 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.18 0622/1095] iio: adc: ti-ads8688: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:21 +0200 Message-Id: <20220815180455.199419913@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 a2105d87eb8eb03591515df10102e04a1c9e0e46 ] ____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: 3e87e7838328 ("iio: adc: Add TI ADS8688") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-39-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/adc/ti-ads8688.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ti-ads8688.c b/drivers/iio/adc/ti-ads8688.c index 22c2583eedd0..7ee14c6d9f46 100644 --- a/drivers/iio/adc/ti-ads8688.c +++ b/drivers/iio/adc/ti-ads8688.c @@ -71,7 +71,7 @@ struct ads8688_state { union { __be32 d32; u8 d8[4]; - } data[2] ____cacheline_aligned; + } data[2] __aligned(IIO_DMA_MINALIGN); }; enum ads8688_id { -- 2.35.1