Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3106107rwb; Mon, 15 Aug 2022 18:14:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+EXIv5fAIDz7US4a+oTSd4HDtazKmvD5SKzz6p9ZR+ycDIf2dVn7PPlWz0GbFdJ2+yMTZ X-Received: by 2002:a17:907:8a04:b0:730:baa1:ac82 with SMTP id sc4-20020a1709078a0400b00730baa1ac82mr11730485ejc.737.1660612448613; Mon, 15 Aug 2022 18:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660612448; cv=none; d=google.com; s=arc-20160816; b=JTzho8EwjGVrazeO4WM/YDp/varVEGPeFRmtpLkMQztwXKdWUEmDucIyY6XCxoNB/e 6FNrraxAC2hZWFafNSiGjk+dDB/jN1/K/d1C6ARynZsKJMcpFOnOShDenEnBFGFhvKMM r09frV8TXOa//VTEV9Ye9ftXxvDAmicKHM1+UJe9C4Liy97WNNiY7cznApEwnlnW53Qu a0Z4dObCfshgwVWuV/Kb6dNGL27thttKDK89rKZkAn9lk9YWRR80Y4juwUeBYUBsm0uL EDq7sgcBAcfW8rderBFcH4xW39Dnc6Xd1Zd6f9jV8qtDviwuKvhEu9rnYAHNroS89qDZ k9kg== 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=sCCWwHGct5zWHbyjgjRgCq6b4D/JTgHW3bkWhn5CEUc=; b=CPVqGMAWPjva8U+ImOUTLYHcefdx683KW8K8ldoZZHbNo3KkVkZk82gSqj7vicn2VW T5/f0JbVVUehYZ1+cCJxZzUIogM9mj6wPPGTp6CeNGyOk8rVusgG3Wfqc9h7oxZFYPli T+1ooNbrLwKit2fbhbwnEukmCYmQh0kMKEVrjT74iC6zaQXUAPniYEVK681m5fsz3QKN egDGB4qVaDWNA3rJN72ghhQ69qcb3KA3TAhrgylC+a+YfrWk+9RNLakbi+VKVPwlP7Kh h22Uc4qMdsNVY6LI4nSspUuJnLuA7Iix20CEzqK+8qaB/KTsn7AtxjYACM92ibSS5hMf HVdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GR6PUxTI; 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 h2-20020a1709060f4200b00734c5ab8514si7639236ejj.151.2022.08.15.18.13.39; Mon, 15 Aug 2022 18:14:08 -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=GR6PUxTI; 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 S1350976AbiHPAOc (ORCPT + 99 others); Mon, 15 Aug 2022 20:14:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356265AbiHPACK (ORCPT ); Mon, 15 Aug 2022 20:02:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 451E5168A79; Mon, 15 Aug 2022 13:23: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 5206860F71; Mon, 15 Aug 2022 20:23:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58898C433D6; Mon, 15 Aug 2022 20:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595022; bh=qW9AXJ5zCJJ/JZcmqysahmvVrivteExCNuJWGepCaWc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GR6PUxTIXIpfCmXwk+ebvOjeAC0Dzcy4wPoa8erzu5cPrWtiVeRUvdVfGD9O/fn48 XTgiXoGcXsG3ZR7qlX7gAjZT1rntvBI8vIsNYpdNtPIaaYhGQ01rmQDempbo07RZaT 5tUi1lGMqDTEOv/HrJ+26acr9Tl6U9zHdPE+WK7A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Puranjay Mohan , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0633/1157] iio: accel: adxl355: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 19:59:49 +0200 Message-Id: <20220815180505.011821883@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 46403dcf3a7cbd24b86f809fd79962f4d6b137c5 ] ____cacheline_aligned is insufficient guarantee for non-coherent DMA. Switch to the updated IIO_DMA_MINALIGN definition. Fixes: 327a0eaf19d53 ("iio: accel: adxl355: Add triggered buffer support") Signed-off-by: Jonathan Cameron Cc: Puranjay Mohan Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-4-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/accel/adxl355_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/adxl355_core.c b/drivers/iio/accel/adxl355_core.c index 7561399daef3..4bc648eac8b2 100644 --- a/drivers/iio/accel/adxl355_core.c +++ b/drivers/iio/accel/adxl355_core.c @@ -177,7 +177,7 @@ struct adxl355_data { u8 buf[14]; s64 ts; } buffer; - } ____cacheline_aligned; + } __aligned(IIO_DMA_MINALIGN); }; static int adxl355_set_op_mode(struct adxl355_data *data, -- 2.35.1