Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3261886rwb; Mon, 15 Aug 2022 22:37:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR6h43jcYsIn+/5G9bN1x4a4E9Le+fpeqRywJ1XqzEcl0rV2H6QC/sRpEP20Njcf6cobAZI2 X-Received: by 2002:a62:38d8:0:b0:52d:1496:6775 with SMTP id f207-20020a6238d8000000b0052d14966775mr19860846pfa.15.1660628239600; Mon, 15 Aug 2022 22:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628239; cv=none; d=google.com; s=arc-20160816; b=pLvnFsXjxYTN5ZdmxkNyUJU676wkw26kRWQ1MxzglXqEvvxPyCBv8iYjj6k2/tFN0j t+5Mwrhy6eEGqF1RTOd9uQlzviXShrjnLcuZ2MfnNs4H4O687bMobjQrFO09Z2pHIOp5 if9XLXmjoPPr+1GbwAavwxLSuPDk9Hd219TFr3jaFCTAhAkMbGezyF8vpH66KmwdWL9e HegPYnFkm0aEJYvkq+BmvgDez//yyF8vWKuQa/EsH1aig17vIFob5cvMsX++cdXkkAhq x93PEpdZw34ELQKGT0LBNP+yhkbmMhPnThg08HNKCdwkka4O6X2DTVq8Br39XSXPlY8J tjWQ== 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=vJPySclTbHsuOsGSQa80XrC0YENr4p8+7k6wd4NpDQU=; b=Ck5UTyDwaDydC4gzVIPzadTkwMt1586peqGVROUYFPlGNhHsg0A+6p332+u8+EZjBT aOpeUdYd4YtqG+DYWR9rOdbvj82f0aVtY3VVk6gA1giHMocZ4+nm+tF/BrR5ulv++tb8 Gfk73dqdOxYxUo1w6Ge8Mr3BS44Z8QWZUbqw4h4hXo0ctXxpw6cY9ZafpXdGAwcbdyZO PCZrGlPwCHHnIZCu6kqSs2umgSW0WP65z2FVZZAJQeC8zfgdflGLJWTkHvUc9qdaxXqL fhecINzGg+uNkhrNpzCdPglFUpEQqFFHeumCas2Un8zhkHOpKnC92qJhlQw4i7t33iuL /wgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=scaUjlHd; 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 k7-20020a17090a404700b001f0fb79b75csi12993545pjg.81.2022.08.15.22.37.09; Mon, 15 Aug 2022 22:37:19 -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=scaUjlHd; 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 S231429AbiHPEih (ORCPT + 99 others); Tue, 16 Aug 2022 00:38:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbiHPEhm (ORCPT ); Tue, 16 Aug 2022 00:37:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 699209C8E9; Mon, 15 Aug 2022 13:27:09 -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 F0F59B80EB1; Mon, 15 Aug 2022 20:27:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D7C7C433D7; Mon, 15 Aug 2022 20:27:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595226; bh=/9wTTWYpJmeNGuD84j1NlmzJZzRviZVkVE1BRX7+QXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=scaUjlHdyzYSow7G0rwpo/+fJaVGTzkcNAijIoZMLUTeudSUdp/jDwc27mCNn6Rhf Az/MrnKy5pK/UD71U/aaDfQ6AmrH9uTWPtnOo3PsXsLLGFXSW/pqXairmYrDlxjnwH cPBNodUZdcQ7WrA/zIVLMfn/RA+JaI3XG8ZOPDso= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0698/1157] iio: frequency: admv1014: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:54 +0200 Message-Id: <20220815180507.548968904@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 a3e38a557a54df0edea791d7eb623515bb86e39a ] ____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: f4eb9ac7842f ("iio: frequency: admv1014: add support for ADMV1014") Signed-off-by: Jonathan Cameron Cc: Antoniu Miclaus Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-70-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/frequency/admv1014.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/frequency/admv1014.c b/drivers/iio/frequency/admv1014.c index 1aac5665b5de..865addd10db4 100644 --- a/drivers/iio/frequency/admv1014.c +++ b/drivers/iio/frequency/admv1014.c @@ -127,7 +127,7 @@ struct admv1014_state { unsigned int quad_se_mode; unsigned int p1db_comp; bool det_en; - u8 data[3] ____cacheline_aligned; + u8 data[3] __aligned(IIO_DMA_MINALIGN); }; static const int mixer_vgate_table[] = {106, 107, 108, 110, 111, 112, 113, 114, -- 2.35.1