All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mehdi Djait <mehdi.djait.k@gmail.com>
To: Matti Vaittinen <mazziesaccount@gmail.com>
Cc: jic23@kernel.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/1] iio: accel: kionix-kx022a: Get the timestamp from the driver's private data in the trigger_handler
Date: Sat, 18 Feb 2023 14:17:40 +0100	[thread overview]
Message-ID: <Y/DP9G7gngMoGnAF@carbian> (raw)
In-Reply-To: <aba1ea66-b5cc-d43e-b1e6-5d5101da5e9a@gmail.com>

Hi Matti,

On Fri, Feb 17, 2023 at 09:55:33PM +0200, Matti Vaittinen wrote:
> On 2/17/23 21:52, Matti Vaittinen wrote:
> > On 2/17/23 21:19, Mehdi Djait wrote:
> > > The trigger_handler gets called from the IRQ thread handler using
> > > iio_trigger_poll_chained() which will only call the bottom half of the
> > > pollfunc and therefore pf->timestamp will not get set.
> > > 
> > > Use instead the timestamp from the driver's private data which is always
> > > set in the IRQ handler.
> > > 
> > > Signed-off-by: Mehdi Djait <mehdi.djait.k@gmail.com>
> > 
> > Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
> > 
> 
> Oh. I just noticed there is no Fixes tag. It'd be good to have one as it
> usually helps fixes like this being back-ported to stable.
> 

I will add the Fixes tag and send the patch again.

--
Kind Regards
Mehdi Djait

  reply	other threads:[~2023-02-18 13:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17 19:19 [PATCH 0/1] iio: accel: kionix-kx022a: Timestamp minor fix Mehdi Djait
2023-02-17 19:19 ` [PATCH 1/1] iio: accel: kionix-kx022a: Get the timestamp from the driver's private data in the trigger_handler Mehdi Djait
2023-02-17 19:52   ` Matti Vaittinen
2023-02-17 19:55     ` Matti Vaittinen
2023-02-18 13:17       ` Mehdi Djait [this message]
2023-02-17 20:04 ` [PATCH 0/1] iio: accel: kionix-kx022a: Timestamp minor fix Matti Vaittinen
2023-02-18 13:32   ` Mehdi Djait
2023-02-18 17:26     ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y/DP9G7gngMoGnAF@carbian \
    --to=mehdi.djait.k@gmail.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=mazziesaccount@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.