Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3020720rwb; Mon, 15 Aug 2022 16:17:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ZUt2OcuG2XSKOsnRPSZd686afey80ahhQyZo7cjMZgvgLP2g/C+VxuhpSUuIgXrY4V/t4 X-Received: by 2002:a17:90b:4c07:b0:1f5:40a:8047 with SMTP id na7-20020a17090b4c0700b001f5040a8047mr21162952pjb.44.1660605471807; Mon, 15 Aug 2022 16:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605471; cv=none; d=google.com; s=arc-20160816; b=yDanSWs2oRdOVr+zJX2vY24dRGRbSvfWzHXPtFQqbCfIllhuxsTj8NQySvatditYm7 S8xEVBzY+qE/Qc/MP62D3/Znl2/d2Kmn7zJoGDWmADw4P7y/zZo7oiMRMh+3UT0lPfsK +fq4c48q8owOUSC55U+00ErAE1zmMM2TbsuXo3FfRO15mdHU4j1VARkMhGRfs9ggsomc nN+RHQSJmAlyM5qStvCm2qIjm6YeeOa1HH/NQHUzPLWJ70BHohTaXskwpaPwDbwc53+I 6DcyLlWrDh6D3PbNGNEhNbLU8ABVgok8bBozUcuhj9usCgnLEknbnvwQKzJeIu7PRMSX n7SA== 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=BzLfWZJv0aQc/gc8NhAyTXg5B4Iz+exhzx0eYJ7ouh0=; b=N8E0h97TFfF+9JNY4Q2HBqonlHz/gR0P5iLTUvJyQg62PxtKUGoXqP5by/XGHomvDg 3UTiOnlqqFPUcLlgrbDNNZ27ep1NsBkHoR0NUttt4loysR8EE1C6sBzuxHd83mfBrkyW mJn65i5vSKcU5zv1+WsSWdtDtENh/25aVckFW4OP0EHz1yJTm+gUoCU+7Y4v0mdhpfoT QlYp/bGmfkkCBPFzYsHtC6Ka+By/YBFu0+Agp6a9rT5KT8W5R5VCjq57Jf3Wx2yJIkAk Nm5b/m/GeW1JyMksC1GSPHT6WuoGHh684b9LdXLDHPYNcofNfc0ZcA0silLwPqYiTnrV Nisg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IKHAReK2; 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 v5-20020a63f205000000b0041d17e08467si11855396pgh.381.2022.08.15.16.17.40; Mon, 15 Aug 2022 16:17:51 -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=IKHAReK2; 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 S1349338AbiHOVnP (ORCPT + 99 others); Mon, 15 Aug 2022 17:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349097AbiHOViw (ORCPT ); Mon, 15 Aug 2022 17:38:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AEC82ED55; Mon, 15 Aug 2022 12:28:22 -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 A12BD60FB1; Mon, 15 Aug 2022 19:28:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91219C433C1; Mon, 15 Aug 2022 19:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591701; bh=3SHcPNsSd7kyJBhhcXsA1nXQfXffY39m27eP4DbjyVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IKHAReK2RYNrl8HA+DpG5pv5om7kH/9af/oF+gBsTfFIagQ4vUWUi4raMKaiYMV/+ NLKJgdGzMqmh7bW5bXjm28UebQiAOdHtxNWZNUs3OTDVQ2Pkv8zvbmgEFF494W9mBU Vq5jlwXLPPma0ROyxwUhN3JkGhZJP7VLm3tJXIak= 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 0657/1095] iio: gyro: adis16130: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:56 +0200 Message-Id: <20220815180456.575004793@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 ff3211b2ba9afac80ceb795d148831dd879b30b7 ] ____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: 8e67875141b2 ("staging:iio:gyro: adis16130 cleanup, move to abi and bug fixes.") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-74-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/gyro/adis16130.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/gyro/adis16130.c b/drivers/iio/gyro/adis16130.c index b9c952e65b55..33cde9e6fca5 100644 --- a/drivers/iio/gyro/adis16130.c +++ b/drivers/iio/gyro/adis16130.c @@ -41,7 +41,7 @@ struct adis16130_state { struct spi_device *us; struct mutex buf_lock; - u8 buf[4] ____cacheline_aligned; + u8 buf[4] __aligned(IIO_DMA_MINALIGN); }; static int adis16130_spi_read(struct iio_dev *indio_dev, u8 reg_addr, u32 *val) -- 2.35.1