From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 D4E28C04AAF for ; Mon, 20 May 2019 07:16:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FE2420856 for ; Mon, 20 May 2019 07:16:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558336609; bh=5X3u9gPiFcRX2N4qlq6sSIrP47BOGxF4x5wZ17Zdxrs=; h=Subject:To:From:Date:List-ID:From; b=NAHTXh+hqNVDLFULnGCybH1CqNM+5/9hlc/3lGl8bRnDqnkDwJS0HMGGVrZ0I1yOE m7b0eREUaCtAkoxAodZGjxvd5U2LoQg8UpCA9FNg3eZ43hIo02KH3SvSINVzM9l3id yvaR1VboIBFFgoNo+L0sBjmXbr/+ziGvQV3SLK0A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726940AbfETHQt (ORCPT ); Mon, 20 May 2019 03:16:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:48670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726901AbfETHQt (ORCPT ); Mon, 20 May 2019 03:16:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 312CB2081C; Mon, 20 May 2019 07:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558336608; bh=5X3u9gPiFcRX2N4qlq6sSIrP47BOGxF4x5wZ17Zdxrs=; h=Subject:To:From:Date:From; b=a18XJiv5yL1WubsZ/cMCkdRCaliOKyW2C374b6eJpt2aXE4ACJ5rI9rKvVdkmVV4F T+5a+SHNjXg0hcOmsAE0/mROxq/6i4dMckXC76UE8GiY2XTlqgOGmXDHaKtSOlayNL Qs48fT7aC3kulfncm+umWF5pglZYxaC4jOiAE5ZY= Subject: patch "iio: adc: ti-ads8688: fix timestamp is not updated in buffer" added to staging-linus To: sean@geanix.com, Jonathan.Cameron@huawei.com, Stable@vger.kernel.org From: Date: Mon, 20 May 2019 09:16:34 +0200 Message-ID: <155833659436@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This is a note to let you know that I've just added the patch titled iio: adc: ti-ads8688: fix timestamp is not updated in buffer to my staging git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git in the staging-linus branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. >From e6d12298310fa1dc11f1d747e05b168016057fdd Mon Sep 17 00:00:00 2001 From: Sean Nyekjaer Date: Tue, 7 May 2019 10:23:04 +0200 Subject: iio: adc: ti-ads8688: fix timestamp is not updated in buffer When using the hrtimer iio trigger timestamp isn't updated. If we use iio_get_time_ns it is updated correctly. Fixes: 2a86487786b5c ("iio: adc: ti-ads8688: add trigger and buffer support") Signed-off-by: Sean Nyekjaer Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/adc/ti-ads8688.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ti-ads8688.c b/drivers/iio/adc/ti-ads8688.c index 8b4568edd5cb..7f16c77b99fb 100644 --- a/drivers/iio/adc/ti-ads8688.c +++ b/drivers/iio/adc/ti-ads8688.c @@ -397,7 +397,7 @@ static irqreturn_t ads8688_trigger_handler(int irq, void *p) } iio_push_to_buffers_with_timestamp(indio_dev, buffer, - pf->timestamp); + iio_get_time_ns(indio_dev)); iio_trigger_notify_done(indio_dev->trig); -- 2.21.0