Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2514164rdb; Mon, 5 Feb 2024 08:48:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVGlNN2tJ+3FDDO/EqlteEVONDAysmSfkYGr6SpsT9Aj3LjNN+Qrz3WsuNwPACjBf7/H1N X-Received: by 2002:a17:906:7086:b0:a36:b64:e0c0 with SMTP id b6-20020a170906708600b00a360b64e0c0mr7488571ejk.67.1707151712525; Mon, 05 Feb 2024 08:48:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707151712; cv=pass; d=google.com; s=arc-20160816; b=qPJGYe6bbr01yfN7CrTCbrQUZmVFobrbVraUSuec6IVXHbyzfMQjFwtxPo9qoKarwW 2AwRqTmyrLmvJGmVu5dYkbwhpLlkTj7yM4TKbszJ/f4ZuPu3yPL2lXf3b+q2LbAp7f9s O8z3k7lKNOoDz0YvX58KgDRgdNoiJf41BK7iS1MbM42Har/xymTcjnbH0oR/ZrTmEuw8 hiy/jCT9vDBuJkHHkadsPK8lEWTLa7hlkm5NXJBQLqIgmRnWeFEbRJ+ch98MzbT8wbwm N3oW5XfhQ/4Pyoafj9O/NP3dRsHlPLiO+0wmOUtdFoiiaFg6SKNbIq+GkSwrOpNWmaUq hJuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kIMfKw67ay/LA3TWb7aA5oYMPu2JMVlov34y/k8mE+g=; fh=DVmGXJ9vtiFooxK25esOQkg8snaKCgX1rtiPedsy8k4=; b=Zc/DnGpU+NvYqviMHtc5DPZ0dJCfBty+PBTJCWIdmDlRZmLUgTfXjrcl9zC4xtKBBO ErnJC9MkLssp+kRO8Zr1XuN0cVlf2iuCR6RBRdR9h4SXsCqyVsUF4wLvZdqEeAlDVyG6 YbX6gg4euapnczQlgADBAq7MCrAjEFKGgYg5+X3IirnbrVr7qCq0J01bZNLyqLMLxNzd S/DOcd0BRk6Os/FxMw7L5FNrgxUNVEeuBPFNzDcac87bJ6WQaPt/T6mW/LJHX/OBoiB+ Y7d/WQtfx21C9akLCzWmzb2fBWAsP0DEXGwxG7B3rFyiBFG3f9FsTXTH5XX5Wa1ADA8V 6uSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=XS9v4CKu; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-53037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53037-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCV7sMLOC1KF7Juh7/VFmH2l25CDHkNIsSW9nvEux4QD8twPY968MsgIsUxBj4ULngpdptZMfyM6f33DTG0PmRXpY6RZf/wKZRcnvka9iw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i14-20020a170906264e00b00a377793c36bsi21734ejc.146.2024.02.05.08.48.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:48:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=XS9v4CKu; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-53037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53037-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 47EC11F221BE for ; Mon, 5 Feb 2024 16:48:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3FB93B1B2; Mon, 5 Feb 2024 16:48:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b="XS9v4CKu" Received: from mail.subdimension.ro (skycaves.subdimension.ro [172.104.132.142]) (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 54FB53A1C3; Mon, 5 Feb 2024 16:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=172.104.132.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707151702; cv=none; b=POJbxcdYO85dfmOmPctM3A73CadGcRBqUUPlMfoRdhSeI0Jhx734eePrxymJpuJb7TV/7wCwy3pxJr+d5/6XFWAuJMJvf4+tRZb9MBHXpzVkQEwqOFsUS9lqbE6DR+wn9ZFNHmRkDp+ils3wCPC41nuuwlz3fWRtsSk+JULjlqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707151702; c=relaxed/simple; bh=rypfT/kD5L+1VJyGe4VKW1ttuWQxYs5lhHHbn9d071s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D1dSRRDREtZu4h20oEzkKXWVx9D9qy18xQRpxCfQlJlt1n1lXb1rn5RiwTtxEWwDmUmPCHCWnMZ5vA1SaAva8bo3aBEdmAwhLihaSYJdHtoiy58vHO46kVU8Pm/sQSn0mTNSsM2q/B03anGQ94kZSXgTSvtBEsgRVjhgNrX6Gwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro; spf=pass smtp.mailfrom=subdimension.ro; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b=XS9v4CKu; arc=none smtp.client-ip=172.104.132.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=subdimension.ro Received: from sunspire (unknown [188.24.101.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.subdimension.ro (Postfix) with ESMTPSA id 0CC77331873; Mon, 5 Feb 2024 16:39:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdimension.ro; s=skycaves; t=1707151144; bh=rypfT/kD5L+1VJyGe4VKW1ttuWQxYs5lhHHbn9d071s=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=XS9v4CKuRQqHcvD5X9jRzINdXBIOSx2cEZNrDjIU4AldWKo0mRSxvJom2hjrPGtyz tYvB44syszDm3W/VPWnibo/PS9uEn7w7K73xhu+7xpAJMjfcS88gJDnxtdHvSoHZWw D694Hgdv4HwxOBvuV8rvQw763gomfhHl0GzRAPWE= Date: Mon, 5 Feb 2024 18:39:02 +0200 From: Petre Rodan To: andy.shevchenko@gmail.com Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen Subject: Re: [PATCH v2 4/4] iio: pressure: hsc030pa add triggered buffer Message-ID: References: <20240127160405.19696-1-petre.rodan@subdimension.ro> <20240127160405.19696-5-petre.rodan@subdimension.ro> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IYwKfNCRI6ua9wNH" Content-Disposition: inline In-Reply-To: --IYwKfNCRI6ua9wNH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hello Andy, On Sun, Feb 04, 2024 at 06:03:28PM +0200, andy.shevchenko@gmail.com wrote: [..] > > + memcpy(&data->scan.chan[1], &data->buffer[2], 2); >=20 > Hmm... We don't have fixed-size memcpy() :-( __be16 *ptr; ptr =3D (__be16 *) data->buffer; data->scan.chan[0] =3D *ptr; data->scan.chan[1] =3D *++ptr; is this an acceptable replacement? I do not understand that your concern wa= s, my intent was to copy exactly 2 bytes over. > > + iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, > > + iio_get_time_ns(indio_dev)); thanks, peter --IYwKfNCRI6ua9wNH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE2Ap/wXYVGTXsPl+pzyaZmYROfzAFAmXBDyEACgkQzyaZmYRO fzD5aRAAyEwbN+bRogoQcgxhxBjDkfJFOodGLosVP/2TDfSoS4LpPphpuDORkEcX BpIXgVxh4qCyI8nzrXFH01+N9PQvi+ZtC6nw6xBA/64Jf3JJGZPjdlrcwHmCP/H8 9dVfiZj6n3LcUw5ojzyZZbIsAPMq/BPXiNXdRk+rW4VUH12NNHykA95Wrejk+J6g vsoSo/Bz+5Z2uZBzKAX9YOtCegHW5RQ++WnZ/4YKvdWTdHVkXGBoHVfGAuil7RWY Q2rORin3ihDOol2KWVgC3zTgZrc9OkBWw+mDT1SD+Z2g1tdnzceMuQFkPBVL8Iti tEdVZ8aaXm1yJ7GgpzPEG3rPp5Pig02zBW3jWoz0plIpVDQzJxPhLVCCvpEKCvaL nefniFzg9KbK215rFGZKwR5VYla8EK9tSIaz2XFfvzKzSSC5UmFs6Hqtfwew/k7m GcPeyKZxcGJGgkbkvdXaBGNgmXpht+1Mg/C8ya2TVaA1ytTs8GO3T8W7bKlo2EGx OQkXGCUyXkhNq7PIxdAxngjeBGVby8FgxE9eZqyqvwngDZkZhAuABsalvc80N1jN NZvUSgcHXAU3tvj0SpKHWEGJmCBom3D+fV6nn74YVnfRWYoso15EKoF+j/9sPjjj qoylAXZL1mavW/DlS5zrAxv9Y/HFmF5M6Ga13NPfnJ+StJNv7Xg= =XpUp -----END PGP SIGNATURE----- --IYwKfNCRI6ua9wNH--