Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3025893rwb; Mon, 15 Aug 2022 16:23:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR6xEDxF2fN+sVNU0ugXY1sRde8bbRaEdlBZanb0motpsUXlk1mh5fA5Hei9X7N1fmTZfqfr X-Received: by 2002:aa7:d653:0:b0:43d:151b:5939 with SMTP id v19-20020aa7d653000000b0043d151b5939mr16276515edr.278.1660605836550; Mon, 15 Aug 2022 16:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605836; cv=none; d=google.com; s=arc-20160816; b=Ja3Fra76dJ+V8o1U18q4uxI0dkblzpNT3jaNbIasSOrFQdfBqfc08gjYz7UN8BhMRG dHg0g4NYU/ZpaNY7IEyXJxRThUaBEwicGg3KkItj3aHr8QHg8mHPjqMSnj3VMHIffm5G /JNCuwiDJMA+FM2l2jvZJyaFCXq2xgV0UgGGVNu8HHJ0YC3GoXME+YCMbEqn+MYPsbYP EfqzZ/gZypFpOpUmOFdOb056az6oFGEWVJLuZoFrElJkVhqZgoxZkCf8BQXoA21w9n6X 13SAwvVMjDghpB3cZEvXULkcSC1VcKVpwfPcu15e2oUTcZu4aVDzLIKYJXqeBEnWCiAj b5uw== 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=m6R1KRCXxY0Wy5I2hFazd1Ti1At3f2vL6u4gD4BHvRU=; b=mOgvXNaHPN2RqCLrOGl50ki79Ozx8pem1/eE9K1pJ+F7Jgwuww6ISAxsYHFufqlnkB x+PC1SDuKcM3JEkPPSBpYswJ2WUdgMUOofyHBi0X+oNbeCjmtEqDZTgoBY1riLySAp58 xShPW7UcCvdckE5u/2TTdis620fHLsMhZY1bDb5HLazaSGkGvEQv2TazIbMJ2EpDFwVd 8ITnRtwkaHezFRHdw5m0s+dVFL3Z7Hj2JQbrNAcaMuYfKldA02jveR81FBk0L2/0Nkwi S1BR1YjNbJtuGEJvyK0dvUXiWGvNTONKAzEIP/jTvRzuVTU/rIwFsbfw3ij975LImgOd RC2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D+5doL7P; 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 h12-20020a05640250cc00b0043dc589b730si9525097edb.72.2022.08.15.16.23.31; Mon, 15 Aug 2022 16:23:56 -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=D+5doL7P; 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 S232720AbiHOVdy (ORCPT + 99 others); Mon, 15 Aug 2022 17:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348703AbiHOVbw (ORCPT ); Mon, 15 Aug 2022 17:31:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7C12F14DE; Mon, 15 Aug 2022 12:24:24 -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 ams.source.kernel.org (Postfix) with ESMTPS id EC6DFB81125; Mon, 15 Aug 2022 19:24:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D8CFC433D7; Mon, 15 Aug 2022 19:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591461; bh=48Kw4A0AdOgJlUaYNtEqPs6oaVrKW8gwiJZQTkihobw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D+5doL7PKhUxIOMCHuaWB4FWyvWvcoTiYeQeOXoQp4TcznqLkiYs7GVgH76RiqDPU fFb6qpOe3XQ3RY0EujA1rAuGR4qhCplHUy5fEja37MFax9ot155J9D8NSSaADu8BpO Xp9FS/HjN0tyrGMTqJ+2toQMsYAi3EB0WKtQbT7k= 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.18 0588/1095] iio: accel: adxl355: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 19:59:47 +0200 Message-Id: <20220815180453.900569043@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 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 e9c10c8c32f0..2dfe780d6144 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