Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3260973rwb; Mon, 15 Aug 2022 22:35:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ZCwbZXze0nFy36k1aXj1sDSubUrubAn5M0braHpk529a+NmsF9lsvIG9aWTEWjA8mP3m9 X-Received: by 2002:a17:902:ea0d:b0:170:cabd:b28 with SMTP id s13-20020a170902ea0d00b00170cabd0b28mr20401510plg.115.1660628142000; Mon, 15 Aug 2022 22:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628141; cv=none; d=google.com; s=arc-20160816; b=FBCqekkYelJPqjdYE5wwVqspYSOA621J9OINWDStfaItYnM0n+IsTEUN//MySO9wkD rddpE99SYPIHpaPVwlf+ePWae/o5ZMXC0j4tCYizreutypO17IXeQZR+QmCKBDSN5Knq 9oNzj0D+h7Y7XN1T4zyrtpJYCuct5QusltOcXAb+3Q05uXn4YclNwrXsdZWrjzmpzmUN Cb/5DXqouI03sJn81f9TgJjgZr4acqpUuNqeEofr3S4er+J8Ufffa1E0rqmhz9959B5V lRWS8kiwBiwPJ1bVjtAJnizGN8SFaZvOQROCNSUGp2E9fuTx3DJD9lNlVtguip1c5ZZe KeMw== 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=0f7afTNoJigccZ3hn7nTSDOUpH79xZgyc5OdihRWacY=; b=DqmcTb/OoPDy2/XVc9MeMJpRmwPsZZYF5sB2+ndaVX/ICMjG+lc7jASnh8EM00XsYq RqNejD0RmUHUmq2QLVda76IFrxrvV9k0AQFeeR0esJ7ZgJ+BWcz1sTpTMKO9PpuNIGJF j+Pcho4TaTThkWV/LdYpNcnNo3uRlAFyvw06NmJg6sxrzCGgFYIT8jKoon1k3GTnx3t7 gltzPS5VU49v/rw7tcNf0RO23V82K3Wx1Edkf53DFWjWKigttixsA1BUEJX41/Va/sSE sIlZ1nCRWv0WJPN7u688OryKOwdt8ui0obkF77dr7SdD0oj8usVFrESfWJcqI3SeQq/k ulpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IYspbKCj; 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 rm6-20020a17090b3ec600b001ed0f6f1010si12974603pjb.70.2022.08.15.22.35.31; Mon, 15 Aug 2022 22:35:41 -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=IYspbKCj; 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 S229921AbiHPEe3 (ORCPT + 99 others); Tue, 16 Aug 2022 00:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbiHPEdv (ORCPT ); Tue, 16 Aug 2022 00:33:51 -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 41FA04BD19; Mon, 15 Aug 2022 13:24:43 -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 B3ABBB8119A; Mon, 15 Aug 2022 20:24:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0492AC433C1; Mon, 15 Aug 2022 20:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595080; bh=LqalBsGRa1zu1E5rLHt1XDvDX+e1QcLKHZ/M7/gLjvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IYspbKCjF1QbY17Xnt7J2p8R3LBIkkZbVZEiGoRd6Kv5jnxvMd4LjPhSTXa4dTPqa GbTgQPsdJ2L6VfUJ56NZ0iZWqVJclt84ltuYTDH/6GyhI8Dl3pJL2XoJjSvnu/u6i2 tPw1WsoX2QMW8Z0QpRmIZYmUYxJN88XKmY9wNokc= 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 0649/1157] iio: adc: hi8435: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:05 +0200 Message-Id: <20220815180505.698634919@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 48e4ae96b0b10f93de23b86fd34e573c44e95ab3 ] ____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: 72aa29ce0a59 ("iio: adc: hi8435: Holt HI-8435 threshold detector") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-21-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/adc/hi8435.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c index 8eb0140df133..771fa12bdc02 100644 --- a/drivers/iio/adc/hi8435.c +++ b/drivers/iio/adc/hi8435.c @@ -49,7 +49,7 @@ struct hi8435_priv { unsigned threshold_lo[2]; /* GND-Open and Supply-Open thresholds */ unsigned threshold_hi[2]; /* GND-Open and Supply-Open thresholds */ - u8 reg_buffer[3] ____cacheline_aligned; + u8 reg_buffer[3] __aligned(IIO_DMA_MINALIGN); }; static int hi8435_readb(struct hi8435_priv *priv, u8 reg, u8 *val) -- 2.35.1