From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED36436C9F8 for ; Mon, 2 Mar 2026 12:31:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454695; cv=none; b=ZbzzqXyw7xgVZbFirDzuZEEOxT1CnxC2NJLqJeeacTdTRR5wVOWXX6Qgjuf8GvmtAM2nvYT70wonPChes/Uaf9b/LF+qPqBsynXhUc47jU3mpWOh9YV/2wyT4Cv2KRqBjkzsXPhcMaI3/rEpMNG+2fxNmWpKeuEoh+42V/w0ymQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772454695; c=relaxed/simple; bh=i5ivVmBTZafAuOlzr85wvD48Evi2ZiUXYHxZOzbjbt8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Ziq+BzKpXrwe+1Hy1fAFkexll3xj7igzvRg2JCcQEsuIkMoJnia3QLuIN8LHSa8pPG/e4uuUSUuu0wmZZMw0O6AEWLo1oq9eXbif0v8ySvpRnlAitjD7w6qtnuQ+Aph3F1ZDoWddyYQgwEgERv2ZtpYxi9bgEx+vFA87pkCXwa8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Gt2MKy91; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Gt2MKy91" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-480706554beso50834065e9.1 for ; Mon, 02 Mar 2026 04:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772454692; x=1773059492; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=i5ivVmBTZafAuOlzr85wvD48Evi2ZiUXYHxZOzbjbt8=; b=Gt2MKy91zZu90LlInAPCddMkscLknzYGVzE/j1FUmBIoXXDtthd1eHHZdrJCtxkrO+ pnNYliivOUZFTI59us3LO6rXsskDuIJFFHUNz/4cZ5Zt4Yo2B6u6c1kJbbF6cDSLMWaF 4xTZbLyYLosQQYl7SmrUUl9O69ZNzBaRG2xo6JSbkHR7+Ql88TrqVJM1XrD5Yqf5m0bT R+IcEr3U5vrTR64brisXlW6DsC0tUJVmpcXOjFSBgHd02m8Fqydnr97Mq5iEvj8OTYdx L8ut00mhIcyQ/Ds5nO+Mf3K7PLhhJ1GQ8h/CUpXGIBjneHqXeyQdR6NaSgIwJl5P0Bnn gm+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772454692; x=1773059492; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=i5ivVmBTZafAuOlzr85wvD48Evi2ZiUXYHxZOzbjbt8=; b=MGSvoQE0pZk8CWPZIDTrIfB2R8ObEIabFr4Ve7+03VyLSDGLR82pZeNo2DJMfkRryN s26tQDxB0SKhF1PH9jX/rkEVnZvOx3dQNJ/aB/SR15yHVtR/fSE1m1QRPigmTn+2IEp6 stifGsUUFRCDzO9UcTRty1AwVGVxEvVMjujEph2ZDaFBGEtOD7TBltc8QfIBhUYCvhr1 uqGMwbNTBXzD+uw+Rn4cE+SEAOWE0bxbDzjpRY7CCvypTIDytNNVYVi1xP1fh5F5wS3c OCHeNNv3tCkstEyVEkGG49sVHxl94g7Kpr5b9XFOLunSP9vSb6cxjzZ53IyhuWVKWGc/ OetQ== X-Forwarded-Encrypted: i=1; AJvYcCV9C7+XwYx3uVA+Sa6x8Ws+VGdkVgiv+CaHBLEIFECZjiU7thK0uGg7ap50e16PS+jaigaoiLNAt0o=@vger.kernel.org X-Gm-Message-State: AOJu0YxLpa9quwXeYD4nq/A1hJeva8ZdOw5yJCu40Zqxw6EFeH9PFGqI Mp7ZgcesDxEkoyqKHE1bcLW9UPjca5Uh0MbEH0FS4TkfNU4EwDPn7U+T X-Gm-Gg: ATEYQzzoQaZrUxN+MRKab7fx9e5vTR+yoQe9+WlIdPMNJzGaUa2/jM6kdZvKb1Hot/t fthhtqON1vWOwFeD6WoVOIXM6B6p59B6P0/ZHvNVZ8gbe21gEOPRQW33adTZjefOK7gIotNFVUT 3RP/TtaEHpX2dFHC+ih7jQH8vxOvGMn0aFt9qOywxgrcrVmm3qBIinjYlu9mA2EVFAg7YFmaJnl lev/KW3C9zbPl43dygFdexzwnrlMBMyXqfy8777F3k2rGVJyWJf2pj4tZTN5PiWEoVIHmYv1K+i w9WIOVd/U/jTWa1tasXhXDmXuZvfeYUlZSDdkL+3PjeDP8Aa8MnGYyG5zfdeaOsaSPDTtAY1qRg 7b5hQ/waU4rDL4onEDtlhBAi5AIlFJHAqiGJUQilaNeQqTAjnmcmamcsdRlg/IytpXB/ZwCX4Ab heRT1rJSsx+BveCJ/TUfgdcwhk5TIYElg= X-Received: by 2002:a05:600c:1e89:b0:482:f564:d613 with SMTP id 5b1f17b1804b1-483c9ba37b1mr211770165e9.15.1772454692142; Mon, 02 Mar 2026 04:31:32 -0800 (PST) Received: from [192.168.1.187] ([148.63.225.166]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483bfb8724bsm165419915e9.11.2026.03.02.04.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 04:31:31 -0800 (PST) Message-ID: <6158f495b13f2a8cdc09f37e296166ccf0393c78.camel@gmail.com> Subject: Re: [PATCH v2 0/2] iio: orientation: hid-sensor-rotation: fix quaternion alignment From: Nuno =?ISO-8859-1?Q?S=E1?= To: Andy Shevchenko , David Lechner Cc: Jonathan Cameron , Nuno =?ISO-8859-1?Q?S=E1?= , Andy Shevchenko , Jiri Kosina , Srinivas Pandruvada , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , linux-input@vger.kernel.org, Lixu Zhang Date: Mon, 02 Mar 2026 12:32:16 +0000 In-Reply-To: References: <20260228-iio-fix-repeat-alignment-v2-0-d58bfaa2920d@baylibre.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2026-03-02 at 10:58 +0200, Andy Shevchenko wrote: > On Sat, Feb 28, 2026 at 02:02:21PM -0600, David Lechner wrote: > > The main point of this series is to fix a regression reported in > > hid-sensor-rotation where the alignment of the quaternion field in the > > data was inadvertently changed from 16 bytes to 8 bytes. This is an > > unusually case (one of only 2 in the kernel) where the .repeat field of > > struct iio_scan_type is used and we have such a requirement. (The other > > case uses u16 instead of u32, so it wasn't affected.) > >=20 > > To make the reason for the alignment more explicit to future readers, > > we introduce a new macro, IIO_DECLARE_QUATERNION(), to declare the > > array with proper alignment. This is meant to follow the pattern of > > the similar IIO_DECLARE_BUFFER_WITH_TS() macro. >=20 > Reviewed-by: Andy Shevchenko >=20 > But this is in conflict with the other hack-patch in another series. > I'm a bit lost what patch 2 fixes here and that hack-patch fixes > in the same driver. Shouldn't survive only one? +1. I see this is older so should we only look at the other series? - Nuno S=C3=A1