[PATCH v2 1/1] staging: rdma: hfi1 : Prefer using the BIT macro

2015-11-05 Thread Sunny Kumar
This patch replaces bit shifting on 1 with the BIT(x) macro Signed-off-by: Sunny Kumar --- drivers/staging/rdma/hfi1/user_sdma.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rdma/hfi1/user_sdma.c b/drivers/staging/rdma/hfi1/user_sdma.c index

[PATCH 1/1] staging: rdma: hfi1 : Prefer using the BIT macro

2015-11-05 Thread Sunny Kumar
This patch replaces bit shifting on 1 with the BIT(x) macro Signed-off-by: Sunny Kumar --- drivers/staging/rdma/hfi1/user_sdma.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rdma/hfi1/user_sdma.c b/drivers/staging/rdma/hfi1/user_sdma.c index

[PATCH v2 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-07-06 Thread Sunny Kumar
According to Documentation/timers/timers-howto.txt" udelay() is only called once from a place where sleeping is allowed. We can replace it with a call to usleep_range() with a reasonable upper limit. This is new version of patch created after discussion. Signed-off-by: Sunny Kumar --- dr

Re: [PATCH 1/1] usb: storage : Remove c99 style commenting

2015-06-26 Thread Sunny Kumar
On Fri, Jun 26, 2015 at 10:08:42AM -0400, Alan Stern wrote: > On Fri, 26 Jun 2015, Sunny Kumar wrote: > > > This patch fixes checkpatch.pl warning c99 style commenting. > > > > Signed-off-by: Sunny Kumar > > --- > > drivers/usb/storage/sddr55.c | 16 +++

[PATCH 1/1] usb: storage : Remove c99 style commenting

2015-06-25 Thread Sunny Kumar
This patch fixes checkpatch.pl warning c99 style commenting. Signed-off-by: Sunny Kumar --- drivers/usb/storage/sddr55.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/usb/storage/sddr55.c b/drivers/usb/storage/sddr55.c index aacedef..54d0a59 100644

[PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-25 Thread Sunny Kumar
According to Documentation/timers/timers-howto.txt" udelay() is only called once from a place where sleeping is allowed. We can replace it with a call to usleep_range() with a reasonable upper limit. Signed-off-by: Sunny Kumar --- drivers/usb/storage/transport.c | 2 +- 1 file chang

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Sunny Kumar
Ok then, This might be the final lower and upper limit value. Sunny Kumar On Wed, Jun 24, 2015 at 12:24:29PM +0530, Sunny Kumar wrote: > According to Documentation/timers/timers-howto.txt" > udelay() is only called once from a place where sleeping is allowed. > We can replace it

Re: [PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-24 Thread Sunny Kumar
Ok so what about putting lower limit to 125 and increase upper limit 200 Sunny On Wed, Jun 24, 2015 at 12:24:29PM +0530, Sunny Kumar wrote: > According to Documentation/timers/timers-howto.txt" > udelay() is only called once from a place where sleeping is allowed. > We can rep

[PATCH 1/1] usb: usleep_range is preferred over udelay where wakeup is flexible

2015-06-23 Thread Sunny Kumar
According to Documentation/timers/timers-howto.txt" udelay() is only called once from a place where sleeping is allowed. We can replace it with a call to usleep_range() with a reasonable upper limit. Signed-off-by: Sunny Kumar --- drivers/usb/storage/transport.c | 2 +- 1 file chang