Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3124063rwb; Mon, 15 Aug 2022 18:43:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR7NASi3TyEhH+broFI5Zw0e4Yze/lzP7NXMxuqL+r4fsamMo9ZHB6ZkoDkifgg5g/x/jWK+ X-Received: by 2002:a17:906:8a78:b0:730:7a4f:fb36 with SMTP id hy24-20020a1709068a7800b007307a4ffb36mr12202305ejc.624.1660614212126; Mon, 15 Aug 2022 18:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614212; cv=none; d=google.com; s=arc-20160816; b=KFlmZFWxmIDZPBpKo+vwGNJfYAwDjFYXRp7dlnu8c5hOlE6HpDS/Uj5aiutGKu5zva Xy7MQK80PMfo69kJDWR2fT03DGdJH96fiBk2PiNpiW0nZXNEa3vRZ9bwuGgA8fu4U7F+ v4tiU7/x9mHeUlQcH6Jbi2y4nyFzKs1lBgJpzk14aY3ey4d1JEqo7InfG8mun39H8qIv QYqtV00sgR9848C+GBN4kktit9Hvm8tG2M8ruLgoX/T94AOBgL+4IK2GI34YbygKewdO 0Ro4O+uyrzIfbgTsiTpAvObsCjWJlBhUs/9jvgbIaXPzz92owLzqICq/qC3tlNEYCkn4 DFHA== 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=vE7obA19WMkzSEdnBvDvkQfdirrigjRTVo4HfYaEX2Q=; b=kW22Mv9o8yDzrP6dQJBufCqGM4PzuS3fTc+OCVxhcXIHXvCGbI1YDzREj6chlZnA7D j7IU69ntsVRmCxCznzoOY+PKt+u9NiKCd7z/ex1wMs8V/Wxr5Jm4EekchZoVcF2/1/Px dL6elTeP7kJuuiXVT9xbyGQoOvK7Nkolqn0sV6BC3WpdNesQ92oBx388RC6aKSKVbphe bXw8FAVYZpZrAObkawK8g/85iay4+xTVb8MGyGVe3kinh0HJkYnVmUBO9N59sE0hRgzz /7y6ih4E+1WygMNXfEVTib9zO49puE6srBhaYNle/aBHCba0RFJp+ws+x2y35HHyX8Ua YL3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1HOhM7e8; 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 z13-20020a05640235cd00b0043f4e1722a1si10329702edc.533.2022.08.15.18.43.06; Mon, 15 Aug 2022 18:43:32 -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=1HOhM7e8; 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 S1356080AbiHPALy (ORCPT + 99 others); Mon, 15 Aug 2022 20:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356590AbiHPACi (ORCPT ); Mon, 15 Aug 2022 20:02:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E41169C5B; Mon, 15 Aug 2022 13:24:00 -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 64ADD61089; Mon, 15 Aug 2022 20:23:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69A90C433D6; Mon, 15 Aug 2022 20:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595038; bh=BPYGU0prx8vy2rm3ykiDuUfKlScpRpunExDGsvyfH6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1HOhM7e8+D2UQommMMvK0MUq9IhKoHx+yrnbkwM6ytJ99llMS8wiLzcJ9ckaPSfSK vWwv5WHxkXcBTMeO6aw8+UpnjyeCZILiJMOxTuKtwENDbP2XZC2hQwLDAsXWa64ZGW LOLx39eS5MqI58XreVtpacaXSCXS4LACbPc+Coto= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Tomas Melin , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0637/1157] iio: accel: sca3300: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 19:59:53 +0200 Message-Id: <20220815180505.187670903@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 b1d3a806630dbbf3b4d75a2e850adccf4f4439e7 ] ____cacheline_aligned is insufficient guarantee for non-coherent DMA. Switch to the updated IIO_DMA_MINALIGN definition. Fixes: 9cc9806e22178 ("iio: accel: Add driver for Murata SCA3300 accelerometer") Signed-off-by: Jonathan Cameron Reviewed-by: Tomas Melin Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-9-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/accel/sca3300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/sca3300.c b/drivers/iio/accel/sca3300.c index f7ef8ecfd34a..39e0c24364ae 100644 --- a/drivers/iio/accel/sca3300.c +++ b/drivers/iio/accel/sca3300.c @@ -115,7 +115,7 @@ struct sca3300_data { s16 channels[4]; s64 ts __aligned(sizeof(s64)); } scan; - u8 txbuf[4] ____cacheline_aligned; + u8 txbuf[4] __aligned(IIO_DMA_MINALIGN); u8 rxbuf[4]; }; -- 2.35.1