Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3088424rwb; Mon, 15 Aug 2022 17:50:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7sg/ubaWyhO+YyVQaV9erZxVFr57f9Iin6mqaaI3d8O3OviLxrPgiNrz6c+qvTyGPn3niz X-Received: by 2002:a17:907:7617:b0:730:e317:d0e9 with SMTP id jx23-20020a170907761700b00730e317d0e9mr11761952ejc.736.1660611045849; Mon, 15 Aug 2022 17:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611045; cv=none; d=google.com; s=arc-20160816; b=tdB8y1nZ650O1iOEwlDWVAolOTV4hxqwjJGyuUE4VJfcFULNYEAUVONMeno9nZ0uo+ YVlfxHPg6HYpm4dJSzzYaqlmLi78Dp3xc5nBL6xh0dF1/sibtq2QYOBbzUBgGOFCZe0u rpynbPcIMjXoc/KUDOrgIeeCp/r+aOSnhwXU8XgfMA/D1Oak2zMlCb4TJBWabOpyK32l kHUhoo9eJScO6Zkcxky568dSqG3MWhaslLvky+uwZPhKLuOIHhNcLhww7Py5qD7zdYj/ e7qgmJNo/d15e1laupLc9bhNDXyMq5vpb8/0gwe7rDyX9Rxn+Ea2FRPiII40zTMVJ3tS rOnQ== 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=1nJ7wj3wdFuN8EqqpIAv5Z1F14g1IIuxwCW0/29E8NA=; b=Xav4HQqLFS7bL8MXk+DbEpcPG+hNnWtLahNtMnVhx/dAmOOM8MAfiTAwCL304rku3M BBs/Njdvt7UyRuv4Y96ps9FaILfJQ6X5dTrTZjkEZ5hyNdJ79Mb6Erm+NV7/qghwYB0h pLBvjDgLGWPZsDplfbt94v2dTZRgCZlEQb56fpl3n0W3Cuemmwg2KsHu8zxkCPNqmHGa EihCqt39vEHdy983iTJPOTQ5sP/OjQrb2Fe+JtJyWGY5cSFYUXdiJWw8f1PFkiRtwWVl wATkUWGHFl/J2oL5QS8S0V4xZ6+Fe9JfctOJkN9RywrSdpDrbvtXNWh42zab+1If3eST JIAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yb6rb4LT; 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 qb40-20020a1709077ea800b0072eebe0b003si8350983ejc.715.2022.08.15.17.50.20; Mon, 15 Aug 2022 17:50:45 -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=Yb6rb4LT; 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 S1357641AbiHPAN6 (ORCPT + 99 others); Mon, 15 Aug 2022 20:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357247AbiHPAD7 (ORCPT ); Mon, 15 Aug 2022 20:03:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BAF16F899; Mon, 15 Aug 2022 13:28:13 -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 E9B7660EE9; Mon, 15 Aug 2022 20:28:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D852AC433D6; Mon, 15 Aug 2022 20:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595292; bh=Ld/+h+6Y3JmehVI9m60Wd4KS1sk9c3Xu6SM3lKeK55E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yb6rb4LTZz71kTp6SNfXFLbYmZQsTnTukhfgTko9ZJYxycX7AFqvcLwvXfx29now/ HLypM+Qz2N7vUj3c6HhhbW6r0qKbVpjHC3JvB0PeqzaEfZqsUtLFcadl7IX/LAu2fm nBA93Us/Ippi7NdJvHVAnuaIHr4eQkXOQgmjxI1g= 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 0717/1157] iio: temp: ltc2983: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:01:13 +0200 Message-Id: <20220815180508.193549352@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 732f2cb2fbb51bd5bc03a114bd102ab3b2f537fe ] ____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: f110f3188e56 ("iio: temperature: Add support for LTC2983") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-91-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/temperature/ltc2983.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/temperature/ltc2983.c b/drivers/iio/temperature/ltc2983.c index 4fc654275155..4b7f2b8a9758 100644 --- a/drivers/iio/temperature/ltc2983.c +++ b/drivers/iio/temperature/ltc2983.c @@ -204,11 +204,11 @@ struct ltc2983_data { u8 num_channels; u8 iio_channels; /* - * DMA (thus cache coherency maintenance) requires the + * DMA (thus cache coherency maintenance) may require the * transfer buffers to live in their own cache lines. * Holds the converted temperature */ - __be32 temp ____cacheline_aligned; + __be32 temp __aligned(IIO_DMA_MINALIGN); }; struct ltc2983_sensor { -- 2.35.1