FAILED: patch "[PATCH] iio: pressure: mprls0025pa: use aligned_s64 for timestamp" failed to apply to 6.12-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y
git checkout FETCH_HEAD
git cherry-pick -x ffcd19e9f4cca0c8f9e23e88f968711acefbb37b
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025051255-frequency-concept-f9f5@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From ffcd19e9f4cca0c8f9e23e88f968711acefbb37b Mon Sep 17 00:00:00 2001
From: David Lechner <[email protected]>
Date: Fri, 18 Apr 2025 11:17:14 -0500
Subject: [PATCH] iio: pressure: mprls0025pa: use aligned_s64 for timestamp
Follow the pattern of other drivers and use aligned_s64 for the timestamp. This will ensure the struct itself it also 8-byte aligned.
While touching this, convert struct mpr_chan to an anonymous struct to consolidate the code a bit to make it easier for future readers.
drivers/iio/pressure/mprls0025pa.h +6 -11
@@ -34,16 +34,6 @@ struct iio_dev;struct mpr_data ;struct mpr_ops ; -/** -* struct mpr_chan -* @pres: pressure value -* @ts: timestamp -*/ -struct mpr_chan { -s32 pres; -s64 ts; -}; -enum mpr_func_id {MPR_FUNCTION_A ,MPR_FUNCTION_B ,
@@ -69,6 +59,8 @@ enum mpr_func_id {* reading in a loop until data is ready * @completion: handshake from irq to read * @chan: channel values for buffered mode +* @chan.pres: pressure value +* @chan.ts: timestamp * @buffer: raw conversion data */ struct mpr_data {
@@ -87,7 +79,10 @@ struct mpr_data {struct gpio_desc *gpiod_reset;int irq;struct completion completion; -struct mpr_chan chan; +struct { +s32 pres; +aligned_s64 ts; + } chan;u8 buffer[MPR_MEASUREMENT_RD_SIZE ]__aligned(IIO_DMA_MINALIGN) ; };