Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3260019rwb; Mon, 15 Aug 2022 22:34:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BiL3AYAMASVqpcC78UWXcTKGyxTItJ+ueHumyB56MGnyriTjY8F5DFSnMsFyn0yj61kWW X-Received: by 2002:a17:907:e89:b0:730:af06:e345 with SMTP id ho9-20020a1709070e8900b00730af06e345mr12697687ejc.665.1660628050037; Mon, 15 Aug 2022 22:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628050; cv=none; d=google.com; s=arc-20160816; b=kAT/8qjVqx8Zoo4Ec76JeqY92tXIR+/EsygPLznhBu74hFZhdu92emwq1eWNrb97MK 5m4Z7iGNU3X95FSwnbhwS6zE6s2tIeavk2VFOTw73gzRF4m/QwmAfcQKzyEv70ce5Vdv l45i0TI4uCaueca2zlGJjk+niczsAt49bYLCUBj2kFg/dtJEitut2gnNkzq/diyOVWWz Oeh17XXZ4Fe4fmIV3C4Ozy6KOsJq+E02K3sbhKwI6A5/1Xz/pDRdB/RYvFFsGMdf+Ppn HPfiWGLGm39xUnPKUMG/D3VqI0JwrXXwTVlxjW4qPHhhaj/Bgt6wT6KcRhSQIGhgCIJa yjRQ== 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=gJr26bANQIKaO65upo4b/GgSwiwJNjxaGBdThL/+tG8AW99NfNcL5AAAYPuVVBBUUm 372DvxApwwUpo8ZCRnNIumFKJaNW992cILUimWb4HdzujOhjD7OspkmCXkE/cX6FdW2+ qnTmwRivCW2MhsoLO0BhUpyASaeRUOdJ71JCLrnPDZZSOoI0eBd0khE2SCnU7g1vZFnD S60VDPEmjZCNF2tAtvK2fnnsNVCktFzwTs8ifTUwRWJM3vmI09buc1ASDKkByMzSc6Ro 5rakJWC27EoEMnHTLdJ+zUBMni3vT6YB4WyXKGOUAZ6XDRiufXJYq3kyA988VFc/Y2bW qXCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gzz3FRlH; 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 qa35-20020a17090786a300b0072b193ac94bsi9692613ejc.627.2022.08.15.22.33.44; Mon, 15 Aug 2022 22:34:10 -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=gzz3FRlH; 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 S231302AbiHPEip (ORCPT + 99 others); Tue, 16 Aug 2022 00:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231442AbiHPEh4 (ORCPT ); Tue, 16 Aug 2022 00:37:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 017F69E113; Mon, 15 Aug 2022 13:27:21 -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 26319B8119A; Mon, 15 Aug 2022 20:27:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71CECC433C1; Mon, 15 Aug 2022 20:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595238; bh=3SHcPNsSd7kyJBhhcXsA1nXQfXffY39m27eP4DbjyVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gzz3FRlH1GvhEZ0sUxNiVOSAIggxmoEiJTDcolovGrdu8VTyZyJAxXvUzKEJrYCI0 F/GG6d/Qb/8jo9JAvOE34VGns1eXNrR5Xmx5zr5zxYhfy41Fcpaj2L/6yYO8pa4vW5 n4lA0H5YDfSyfn7i8h8QOcMmvjv+EEl2QKRxAo1I= 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.19 0702/1157] iio: gyro: adis16130: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:58 +0200 Message-Id: <20220815180507.682636333@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 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