Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp2185874rba; Sun, 24 Mar 2024 05:46:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2b1xv3YbCCRdahuUHp4h/efQHp0lmVcFPLJR9pjuvK3Ay1bp3/mSFTHOSfdkxs+QIbNepMsiaQEp3MGxVnQ4PZ4aYpvTZkb8RXlKTHA== X-Google-Smtp-Source: AGHT+IEC2JeY4Nm3sG0u0KXdz4OCiTQdnMaZmrKqRLVHNuI1KJJ7YzzryYlZLdqLDj0+8huaV4mD X-Received: by 2002:a17:902:d2cc:b0:1dd:758f:2d39 with SMTP id n12-20020a170902d2cc00b001dd758f2d39mr5459857plc.33.1711284372697; Sun, 24 Mar 2024 05:46:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711284372; cv=pass; d=google.com; s=arc-20160816; b=HD3psWv7yjvNlZbIBRoVVClU08K+7LDBcKY49EVd+7W32zr27/78agFK5rLctfmse3 4++wxc+vIe1eHxSU/x/lQkVOXTIcpoSD9B0gPoKuytTCqAC5vy633ORSAvDSf2g6EzyN JXGhNWXD3Dkhzsbv967YhWOyVXz4W4de9L43cGYlTmVQE8HPwfK+G3rarPocAsF5B8DE AGHUqXY/Hf1+pYrnB/BrmTCVafYphso/p5nENvqJu9vGRKG7I0VPPlge5nVK0wvdOIz8 eH/FHbeKy6QW6lfQTcUsc07bITkhhDBf9TwJW/0CYKF6jYhL5Neh1skTDmTvs2NO2mL9 +Btg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=c24XK+z320UviOk30gFd/IcsW/fcmfCP9BB5zaMnCpo=; fh=me8kXRm7+Lz05CdPwDPXfozsIIcxHWzDZpOnSIzWcMk=; b=ZKWq3xSoQ+buxlpKGiLzqvUmFNHX6qP4I/GztbEYWYB5jqqjBEjXh0ZSHkjgsKzx15 JF4UzqSoFQIMy44Hf66WF6Gy6wxqQIdJ7It7T8ghuX/7ZSTI9JW7W9r1knPaEnRHBHXy mSmYl4h6jxXWeBsng3cqYXzywDxQeNyBLMZaj2azuRSx7Ugl73j4+BqQJJvgJ4TMlZBM zoV1r4tCeFQD4jrMmuP0XvAZnRNJ9f791zmsPNQoWXGIAg2t2MUURiv97H3M7aSJM7Rb sd8nOsUw2JFnr+QWGGaIZ56IB4N+1t0B1yNBsJOCjF2I/C6r8ox6ilIFXoiUuFwSm1LN TN7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mvP3Vc9z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k15-20020a170902c40f00b001e037850f83si3282323plk.337.2024.03.24.05.46.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 05:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mvP3Vc9z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 613C72818A9 for ; Sun, 24 Mar 2024 12:46:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2129917BC2; Sun, 24 Mar 2024 12:46:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mvP3Vc9z" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42EF9CA64; Sun, 24 Mar 2024 12:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711284364; cv=none; b=SMK5wOuPu/W2xQjqp23uLh1RG02YJ3jCU2FYrMPMwAjzTPpXOWzJ/6M+qUvTgQiMagUn2JtHkxmlA+CTD/8bf6ne1tVYvTXDqodsihj3coN1s7ayBwQbbUdl537Cwbitj4WrsPoHjOeut/scK1Sov+mTsKA2+TPT02iKJBOjqHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711284364; c=relaxed/simple; bh=kqaM0Gs9eyQh/TpZTAIYEFx7H0H+b1/38Dn5OUuSjjY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dvuVJsp6jA0pIpEZAYYzMxI5m7Yolud1Xhk0PRMn66Hsz4Ts6L8J0NGyM12iutXdkevsE0x5aYxtQcSUWMcw3N6C4ZUcm6daqCDzh9zvByazVdQRWvEEoIVKVrAuyyFX+DtCb3aSgiutrzau8QdgUCDI4OW9jgUtoP9DGlSqfzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mvP3Vc9z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DA17C433F1; Sun, 24 Mar 2024 12:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711284362; bh=kqaM0Gs9eyQh/TpZTAIYEFx7H0H+b1/38Dn5OUuSjjY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mvP3Vc9ze4ggSkSjKySfvEEW/pjnirD2XDo7Blkra2PPaq8mJoa7IxyLDCf4a961f 1Qa+w7jOIGBIZWwFXqSddlxNkC1Nx/P+TWr4Nxe+PbtJkxT9pNoASolI45s4POIv+v yPcyMlzs44cqpg+yGo2/zJ5fdpRuPm4HfpWRrhJ9aZOSGbgb8zb9Pf1J753jGaJAKe fHvbcTBBkYmrttKCKIF6bvs4zW059Y76m2x9sFvhMo0MsaLlzxdHodMNVilo1J9ycl ASDfsSyHFJvL74MVfPRrbuhTJmYH2M6VHyzDOaGMSMM8UTTeKDnBH+y/0PgsAKyCfv p2zN6ntAH4fWw== Date: Sun, 24 Mar 2024 12:45:46 +0000 From: Jonathan Cameron To: David Lechner Cc: Marcelo Schmitt , lars@metafoo.de, Michael.Hennerich@analog.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, marcelo.schmitt1@gmail.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] iio: adc: Add support for AD4000 Message-ID: <20240324124546.2e07f802@jic23-huawei> In-Reply-To: References: <15a70e55d7b6f0a97c4042bdaa41c2b672eb4f2f.1711131830.git.marcelo.schmitt@analog.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 23 Mar 2024 16:53:17 -0500 > > + > > + /* > > + * DMA (thus cache coherency maintenance) requires the > > + * transfer buffers to live in their own cache lines. > > + */ > > + union { > > + struct { > > + u8 sample_buf[4]; > > + s64 timestamp; > > Usually we see __aligned(8) applied to the timestamp (I'm guessing > some archs need it?) > Good spot. Yes, x86_32 is the one that we most commonly refer to for this. It aligns s64 to only 32 bits whereas IIO ABI is always naturally aligned. > > + } scan; > > + u8 d8[2]; > > + } data __aligned(IIO_DMA_MINALIGN); > > +};