lkml.org 
[lkml]   [2021]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] Input: applespi: Don't wait for responses to commands indefinitely.
On Wed, Feb 17, 2021 at 12:45:51PM -0800, Life is hard, and then you die wrote:
>
> Hi Dmitry,
>
> On Wed, Feb 17, 2021 at 12:23:23PM -0800, Dmitry Torokhov wrote:
> >
> > On Wed, Feb 17, 2021 at 11:07:16AM -0800, Ronald Tschalär wrote:
> > > @@ -869,7 +878,7 @@ static int applespi_send_cmd_msg(struct applespi_data *applespi)
> > > return sts;
> > > }
> > >
> > > - applespi->cmd_msg_queued = true;
> > > + applespi->cmd_msg_queued = ktime_get();
> >
> > Will it be OK if I change this to ktime_get_coarse()? I do not think we
> > need exact time here, and the coarse variant is cheaper I believe.
>
> Certainly - I just wasn't aware of the coarse variant.

Applied, thank you.

--
Dmitry

\
 
 \ /
  Last update: 2021-02-19 20:14    [W:1.928 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site