Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3080338rwb; Mon, 15 Aug 2022 17:38:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7zJ5d+SO5gvJXSjI3V17g+iyoY40z6o0TpDXLQ8CMpfcOPMpxW+KqaYFw35QkjieMT0Gor X-Received: by 2002:a05:6a00:855:b0:52e:f01d:723a with SMTP id q21-20020a056a00085500b0052ef01d723amr18666270pfk.31.1660610298335; Mon, 15 Aug 2022 17:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610298; cv=none; d=google.com; s=arc-20160816; b=OlTQ+dYdd/Wk23pjUWsA3uh7qOEdVENsKCSTP5fDO0YwxQ+JxwL4TnMbZrnczKL3f0 CdgrbAsYAZli+JlJZn62tS5hIMSETJMZ/6bl4iuxS3SztnyCO9vWr7UTUZS1Yv8644h3 fnHdi5i5oFuVHS2Btu3SqHMbV7WA7OdyxWvmqyI+EuRhkNj68mPjKmk/vbUxzNCzJo8Y PAxrrEmIMPGlaanzGZNpVw92JT9RT9+1u7yE1RQqGPbIo2ZrQZ1bVaO2Oh9o/Ama14nW 5pNWrsJzzLnP2/RaW084kt+78UVCo5PK3X63YW1YaOU+t/85yo8gYazzMljjWFs4cvZ5 0xRA== 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=DpMxynTu+RQU9P96pTt0FNAFDBNO2hffqMegDLcBAR0=; b=C36RPvVlBzRGvqdyx2itdGs+c2Ow6PUFqCyUMlWo499YqFhHLGAhV5FbEstuWfJ7YJ ESC934wi6bF6M6WZdYhaVcl/fT1KL5suLnEMIq4Bdq8V0X4qlUBZ/gPfkHoqoP/9g4Cu wBLRs8TF9ajjQRmPSjKWHHJCVzw9rmlD0rS2yYtei/O4TEm7fdVAMxG2ns3I6keFTvR+ ecQZN9MPvWMDiwB5vRTsPoQ9skJGBATvEXWTwHS/0lDZYVGtxCJP4cVpR1Xg/fTAXVWx FmpCUx6jXfQQDyR1pm3CRJqXSQOMyOOvxqa7caSv9qJwlu09Nfgd5xpoh0bYNv0FoRYK +ZHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zZhlpJAF; 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 f9-20020a056a00238900b00529a32a966bsi391006pfc.169.2022.08.15.17.38.07; Mon, 15 Aug 2022 17:38:18 -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=zZhlpJAF; 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 S1349481AbiHOVoF (ORCPT + 99 others); Mon, 15 Aug 2022 17:44:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349233AbiHOVkj (ORCPT ); Mon, 15 Aug 2022 17:40:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A12A3FA13; Mon, 15 Aug 2022 12:28:44 -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 EA943610AA; Mon, 15 Aug 2022 19:28:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0017C433D6; Mon, 15 Aug 2022 19:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591723; bh=hT5vbUheX3mLxmG3WZVUo2aViOACob6rZyBDGwrkk3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zZhlpJAFArSL3VBJ5Ah0mVxhihsIbR4FLqBn7V2ayU+uQXv+WWlo7+GONBAoxUua8 PcXo8GCu8v9Rv8ATWBr4tjDZx8mfPV9+geIJaRN4ZQfmkarRtmMEeTBE6EsNhnjFXv iifeajFzdcARMh2NVF2YuQKTvliZqZ/Nsof1B8PQ= 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 0672/1095] iio: temp: ltc2983: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:01:11 +0200 Message-Id: <20220815180457.178230027@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 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 301c3f13fb26..1b8252d86889 100644 --- a/drivers/iio/temperature/ltc2983.c +++ b/drivers/iio/temperature/ltc2983.c @@ -200,11 +200,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