From mboxrd@z Thu Jan 1 00:00:00 1970 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 115EA2528FC; Mon, 12 May 2025 17:46:36 +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=1747071996; cv=none; b=T0j4yvwKKZ5Ni7f+7InrfY8x8z0ID0IsQiN8+VSmEgDqHwxw0hmY/nqJzogdWsqi6Ij0d/rgdc8Z6sBKNEwQpf4r+wd9MxfHPQdD+h6t1finwUcwBjtrNjThspebMje36eYHK626hNpS4c/tdSxIIR6OfE9xphzQ7E9lrAQKb/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747071996; c=relaxed/simple; bh=tNfbw08buieYclpHqf6mP3u5U0LTByk0WKHIPSu73/8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iNRuYXMGySpxloDpZoMk199eUhfi2lECrfIwu3LE540VeAFwLdG+sKocznOLbpNV2edAqdTDhDLPy71GyOia2Kv8Z4XWvueQft/Ipyco/pC7cgl2V4iqUIU5L4e0trEODd7eVtNK4LCz0oqOapY+sOoMRZX3ATxrL5eL/brCNb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k1iM01cC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="k1iM01cC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 972F3C4CEE7; Mon, 12 May 2025 17:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747071995; bh=tNfbw08buieYclpHqf6mP3u5U0LTByk0WKHIPSu73/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k1iM01cChAyLYgIbdMHoyVMLMaDPPjMgBFTjKMc4fFjd3ErHB/jaEwxlV7Wz/uS+H qPBeWsJepo+IV9HpwSvhBar3rFrRzGk+FmcWhHRyrBF8FzhOaZpcMjXHoEsc9cK0Vz RJTwC5+5AMCP9RU+1yKZPReoCEyFurAkT8voTqp4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Lechner , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 6.14 096/197] iio: imu: inv_mpu6050: align buffer for timestamp Date: Mon, 12 May 2025 19:39:06 +0200 Message-ID: <20250512172048.292564864@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512172044.326436266@linuxfoundation.org> References: <20250512172044.326436266@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Lechner commit 1d2d8524eaffc4d9a116213520d2c650e07c9cc6 upstream. Align the buffer used with iio_push_to_buffers_with_timestamp() to ensure the s64 timestamp is aligned to 8 bytes. Fixes: 0829edc43e0a ("iio: imu: inv_mpu6050: read the full fifo when processing data") Signed-off-by: David Lechner Link: https://patch.msgid.link/20250417-iio-more-timestamp-alignment-v1-7-eafac1e22318@baylibre.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c @@ -50,7 +50,7 @@ irqreturn_t inv_mpu6050_read_fifo(int ir u16 fifo_count; u32 fifo_period; s64 timestamp; - u8 data[INV_MPU6050_OUTPUT_DATA_SIZE]; + u8 data[INV_MPU6050_OUTPUT_DATA_SIZE] __aligned(8); size_t i, nb; mutex_lock(&st->lock);