Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1691644 > unrolled thread

Re: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay

Started byJoe Perches <joe@perches.com>
First post2017-07-19 14:40 +0200
Last post2017-07-19 14:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range  is preferred over udelay Joe Perches <joe@perches.com> - 2017-07-19 14:40 +0200
    Re: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range  is preferred over udelay Greg KH <gregkh@linuxfoundation.org> - 2017-07-19 14:50 +0200

#1691644 — Re: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay

FromJoe Perches <joe@perches.com>
Date2017-07-19 14:40 +0200
SubjectRe: [PATCH v3 1/3] Staging: speakup: speakup_keypc.c: usleep_range is preferred over udelay
Message-ID<u4WqK-7Z-15@gated-at.bofh.it>
On Wed, 2017-07-19 at 17:55 +0530, Jaya Durga wrote:
> Fix checkpatch issue: CHECK: usleep_range is preferred over udelay;
[]
> diff --git a/drivers/staging/speakup/speakup_keypc.c b/drivers/staging/speakup/speakup_keypc.c
[]
> @@ -28,7 +28,7 @@
>  
>  #define DRV_VERSION "2.10"
>  #define SYNTH_IO_EXTENT	0x04
> -#define SWAIT udelay(70)
> +#define SWAIT usleep_range(70, 150)

It'd probably be more sensible to remove this define as
SWAIT is used just once and use usleep_range directly.

[toc] | [next] | [standalone]


#1691648

FromGreg KH <gregkh@linuxfoundation.org>
Date2017-07-19 14:50 +0200
Message-ID<u4WAq-bK-5@gated-at.bofh.it>
In reply to#1691644
On Wed, Jul 19, 2017 at 05:36:28AM -0700, Joe Perches wrote:
> On Wed, 2017-07-19 at 17:55 +0530, Jaya Durga wrote:
> > Fix checkpatch issue: CHECK: usleep_range is preferred over udelay;
> []
> > diff --git a/drivers/staging/speakup/speakup_keypc.c b/drivers/staging/speakup/speakup_keypc.c
> []
> > @@ -28,7 +28,7 @@
> >  
> >  #define DRV_VERSION "2.10"
> >  #define SYNTH_IO_EXTENT	0x04
> > -#define SWAIT udelay(70)
> > +#define SWAIT usleep_range(70, 150)
> 
> It'd probably be more sensible to remove this define as
> SWAIT is used just once and use usleep_range directly.
> 

I asked for that last time :(

I guess I'll just reject this again...

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web