From patchwork Sat May 1 17:13:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12234921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F82AC433ED for ; Sat, 1 May 2021 17:15:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 36AAC6157E for ; Sat, 1 May 2021 17:15:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231500AbhEARQX (ORCPT ); Sat, 1 May 2021 13:16:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:54070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbhEARQX (ORCPT ); Sat, 1 May 2021 13:16:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 127D761284; Sat, 1 May 2021 17:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619889333; bh=2nyzGl1dLGqNduo1q2W6IN09V0foDNM3moAfWVlppr0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NcZvsA3hTFyTOwm/0d6bZlSuyOeno/EwxI1bp47l8Qun06cN303egEhmEyFpe+Aeh Kv1+HzIWOr3KUvwic5VphAI/Hct5BCRFb6jBdgggevOoJVG4f8g2ZJlhxuSJOc/jeg Lh+FtR5H8XPo+s3ISfl9gYbsHX0wCs5wviw4mPxUimhyD2UEQLFXUhMr63QW8BLQB8 /mUyjWw+EsHqJK1sQx/Yz1jXQrkDhJRALpoEw2Y5dTBkosyawiQcHUihhUUtg1azx9 wDajS4Ml8xYtZes6gi+WHMIExrsctt4YrcuBNj6xNugDwQyocTNkr8rcbf9yV4TTQJ 5LoB7gRpgcTmg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Gwendal Grignou Subject: [PATCH 06/11] iio: cros_ec_sensors: Fix alignment of buffer in iio_push_to_buffers_with_timestamp() Date: Sat, 1 May 2021 18:13:47 +0100 Message-Id: <20210501171352.512953-7-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210501171352.512953-1-jic23@kernel.org> References: <20210501171352.512953-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron The samples buffer is passed to iio_push_to_buffers_with_timestamp() which requires a buffer aligned to 8 bytes as it is assumed that the timestamp will be naturally aligned if present. Fixes tag is inaccurate but prior to that likely manual backporting needed. Fixes: 5a0b8cb46624c ("iio: cros_ec: Move cros_ec_sensors_core.h in /include") Signed-off-by: Jonathan Cameron Cc: Gwendal Grignou Reviewed-by: Gwendal Grignou