[PATCH] staging: ozwpan: Change Maintainer

2014-05-19 Thread Rupesh Gujare
I will be not able to work on ozwpan driver anymore. Remove my name & add Tateno as maintainer. Signed-off-by: Rupesh Gujare --- MAINTAINERS |2 +- drivers/staging/ozwpan/TODO |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAI

Re: [PATCH 3/3] staging/ozwpan: coding style ether_addr_copy

2014-03-17 Thread Rupesh Gujare
x_count) break; pd = container_of(e, struct oz_pd, link); - memcpy(&addr[count++], pd->mac_addr, ETH_ALEN); + ether_addr_copy(&addr[count++], pd->mac_addr); } spin_unlo

Re: [PATCH 2/3] staging/ozwpan: coding style __constant_

2014-03-17 Thread Rupesh Gujare
py(binding->name, net_dev, OZ_MAX_BINDING_LEN); Acked-by: Rupesh Gujare ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/3] staging/ozwpan: formatting coding style

2014-03-17 Thread Rupesh Gujare
56e6fdf..ad5fe7a 100644 --- a/drivers/staging/ozwpan/ozpd.h +++ b/drivers/staging/ozwpan/ozpd.h @@ -22,7 +22,7 @@ #define OZ_TIMER_HEARTBEAT2 #define OZ_TIMER_STOP 3 -/* +/* *External spinlock variable */ extern spinlock_t g_polling_lock; Acked-by: Rupesh Gujare

Re: [PATCH] drivers:staging:ozwpan Replaced wrapper functions with actual spin lock function

2014-03-04 Thread Rupesh Gujare
void oz_polling_lock_bh(void); -void oz_polling_unlock_bh(void); void oz_pd_heartbeat_handler(unsigned long data); void oz_pd_timeout_handler(unsigned long data); enum hrtimer_restart oz_pd_heartbeat_event(struct hrtimer *timer); Acked-by: Rupesh Gujare -- Regards, Rupesh Gujare ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v3.6 08/19] ozwpan: slight optimization of addr compare

2014-01-08 Thread Rupesh Gujare
On 08/01/14 02:53, Ding Tianhong wrote: Use possibly more efficient ether_addr_equal instead of memcmp. Cc: Rupesh Gujare Cc: Greg Kroah-Hartman Cc: de...@driverdev.osuosl.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Tan Xiaojun Signed-off-by: Ding Tianhong --- drivers/staging

[v2 PATCH 3/3] staging: ozwpan: Return error, if PD is not connected.

2013-08-28 Thread Rupesh Gujare
Return error if we receive write(), while PD is not connected. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers/staging/ozwpan/ozcdev.c index 50722ea..6ccb64f 100644 --- a/drivers

[v2 PATCH 2/3] staging: ozwpan: Change error number.

2013-08-28 Thread Rupesh Gujare
Incorrect error number was returned here (EPERM), ENXIO is more appropriate. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers/staging/ozwpan/ozcdev.c index 03b41ee

[v2 PATCH 1/3] staging: ozwpan: Increase ISOC IN buffer depth

2013-08-28 Thread Rupesh Gujare
Buffer depth of 50 units is not sufficient when there is considerable delay occuring on air due to interference, increase ISOC IN buffer depth to 100 units. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 4/4] staging: ozwpan: Return error, if PD is not connected.

2013-08-27 Thread Rupesh Gujare
Return error if we receive write(), while PD is not connected. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers/staging/ozwpan/ozcdev.c index 03b41ee..22cb2ae 100644 --- a/drivers

[PATCH 2/4] staging: ozwpan: Reset PORT_ENABLE bit.

2013-08-27 Thread Rupesh Gujare
Reset PORT_ENABLE bit of port status on loosing PD. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index b0398c5..39f5066 100644 --- a/drivers

[PATCH 3/4] staging: ozwpan: Add debounce time before unregistering.

2013-08-27 Thread Rupesh Gujare
] hub_port_connect_change: 45 callbacks suppressed [ 1127.618657] hub 5-0:1.0: connect-debounce failed, port 1 disabled [ 1127.618668] hub 5-0:1.0: cannot disable port 1 (err = -19) Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |5 + 1 file changed, 5 insertions(+) diff --git a

[PATCH 1/4] staging: ozwpan: Increase ISOC IN buffer depth

2013-08-27 Thread Rupesh Gujare
Increase ISOC IN buffer depth to 100 units. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 3548860..b0398c5 100644 --- a/drivers/staging

[PATCH 3/6] staging: ozwpan: Increase interrupt end point buffer size

2013-08-23 Thread Rupesh Gujare
Increase interrupt end point buffer size & convert hard coded value to macro for better readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/oz

[PATCH 4/6] staging: ozwpan: change variable type.

2013-08-23 Thread Rupesh Gujare
We have icreased interrupt end point buffer size to 512 bytes, Change variable data type to accomodate it. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging

[PATCH 6/6] staging: ozwpan: change max. TX frame size supported.

2013-08-23 Thread Rupesh Gujare
Max. TX frame size supported is changed to 760 bytes. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozproto.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozproto.h b/drivers/staging/ozwpan/ozproto.h index e532347..0c49c8a 100644 --- a

[PATCH 5/6] staging: ozwpan: Fix error checking while transmitting frame.

2013-08-23 Thread Rupesh Gujare
Make sure that we return negative value if oz_build_frame() returns NULL. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c index daaff2a

[PATCH 2/6] staging: ozwpan: Convert hard coded value to Macro

2013-08-23 Thread Rupesh Gujare
Use macro instead of hard coded value for readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 83ed64c..89e498b 100644 --- a

[PATCH 1/6] staging: ozwpan: Check for correct config number.

2013-08-23 Thread Rupesh Gujare
Check for valid config number before completing set interface. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index ab93b74..83ed64c 100644

[PATCH 1/3] staging: ozwpan: Remove memset

2013-08-23 Thread Rupesh Gujare
As we are initialising structure, we do not require memset(). Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c index 06004c8..5d24af3 100644 --- a/drivers/staging

[PATCH 2/3] staging: ozwpan: Fix wrong error check.

2013-08-23 Thread Rupesh Gujare
schedule_work() returns true if succeeded & false on failure, error check was doing exactly reverse. Also removes extra variable. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/oz

Re: [PATCH 4/4] staging: ozwpan: Create deferred work to destroy PD object.

2013-08-23 Thread Rupesh Gujare
On 23/08/13 10:05, Dan Carpenter wrote: On Thu, Aug 22, 2013 at 05:38:51PM +0100, Rupesh Gujare wrote: +/*-- * Context: softirq-serialized */ Don't resend the patch, but these comments are not in kernel

Re: [PATCH 4/4] staging: ozwpan: Create deferred work to destroy PD object.

2013-08-23 Thread Rupesh Gujare
zwpan/ozpd.h @@ -99,6 +99,7 @@ struct oz_pd { u8 timeout_type; struct tasklet_struct heartbeat_tasklet; struct tasklet_struct timeout_tasklet; +struct work_struct workitem; Er, other field names seem aligned, what about this one? Aft

[PATCH 4/4] staging: ozwpan: Create deferred work to destroy PD object.

2013-08-22 Thread Rupesh Gujare
patch defers deallocation of data structures to work queue. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.c | 28 +++- drivers/staging/ozwpan/ozpd.h |1 + 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/staging/ozwpan/ozpd.c b

[PATCH 2/4] staging: ozwpan: Check error condition before creating endpoint.

2013-08-22 Thread Rupesh Gujare
Check if interface number is correct before creating an end point. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 4682d78..d5a3900 100644 --- a/drivers

[PATCH 3/4] staging: ozwpan: Increment reference counter.

2013-08-22 Thread Rupesh Gujare
Increment PD reference counter, on every timer event so that we do not loose PD object by mistake. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozproto.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging

[PATCH 1/4] ozwpan: staging: Fix crash for race condition.

2013-08-22 Thread Rupesh Gujare
Do not allocate a port to new device or process URB when its status is yet to be read. This avoids race condition when USB core read hub status a bit late, while new device tries to acquire port. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |5 +++-- 1 file changed, 3

[PATCH 1/2] staging: ozwpan: Remove unneeded variable initializer

2013-08-15 Thread Rupesh Gujare
We are assigning value to hport before returning, there is no need to initialize it. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index

[PATCH 2/2] staging: ozwpan: Remove extra variable.

2013-08-15 Thread Rupesh Gujare
We should not use extra variable just to copy pointer value, renaming parameter name serves pupose & removes extra variable. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd

Re: [PATCH 07/10] staging: ozwpan: Make oz_hcd_pd_departed() take a struct pointer.

2013-08-13 Thread Rupesh Gujare
On 13/08/13 18:35, Sergei Shtylyov wrote: Hello. On 08/13/2013 09:29 PM, Rupesh Gujare wrote: oz_hcd_pd_departed() takes struct oz_port pointer instead of void *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging

[PATCH 10/10] staging: ozwpan: Separate success & failure case for oz_hcd_pd_arrived()

2013-08-13 Thread Rupesh Gujare
oject.org/pipermail/driverdev-devel/2013-August/040113.html Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c | 54 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/o

[PATCH 09/10] staging: ozwpan: Swap arguments of oz_ep_alloc() to match kmalloc()

2013-08-13 Thread Rupesh Gujare
Swap arguments of oz_ep_alloc() to match kmalloc() for better readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 0fd3fea

[PATCH 08/10] staging: ozwpan: Remove unneeded initializers

2013-08-13 Thread Rupesh Gujare
Remove variable initialization wherever it is not required. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozeltbuf.c |2 +- drivers/staging/ozwpan/ozhcd.c| 18 +- drivers/staging/ozwpan/ozpd.c |4 ++-- 3 files changed, 12 insertions(+), 12 deletions

[PATCH 07/10] staging: ozwpan: Make oz_hcd_pd_departed() take a struct pointer.

2013-08-13 Thread Rupesh Gujare
oz_hcd_pd_departed() takes struct oz_port pointer instead of void *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- drivers/staging/ozwpan/ozhcd.h |2 +- 2 files changed, 3 insertions

[PATCH 06/10] staging: ozwpan: Make oz_hcd_pd_arrived() return a struct pointer

2013-08-13 Thread Rupesh Gujare
oz_hcd_pd_arrived returns struct oz_port *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- drivers/staging/ozwpan/ozhcd.h |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 05/10] staging: ozwpan: Remove unnecessary pointer check.

2013-08-13 Thread Rupesh Gujare
We are already checking "ep" earlier in function. Do not need to check again. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drive

[PATCH 03/10] staging: ozwpan: Simply if condition

2013-08-13 Thread Rupesh Gujare
Making code simpler for readability. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 5a417c8..4b658d4

[PATCH 04/10] staging: ozwpan: Fix coding style.

2013-08-13 Thread Rupesh Gujare
Put spaces around math operations. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 4b658d4..2be15f4 100644

[PATCH 02/10] staging: ozwpan: Add a blank line between functions & declarations.

2013-08-13 Thread Rupesh Gujare
This patch adds a blank line between global declarations & functions for readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c| 17 drivers/staging/ozwpan/ozeltbuf.c | 12 ++ drivers/staging/ozwpan/ozhcd.c |

[PATCH 01/10] staging: ozwpan: Add a blank line between declaraction and code.

2013-08-13 Thread Rupesh Gujare
This patch adds blank line between declaration & code for readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c|6 ++ drivers/staging/ozwpan/ozeltbuf.c |7 +++ drivers/staging/ozwpan/ozhcd.c |

[PATCH 00/10] staging: ozwpan: Coding style fixes

2013-08-13 Thread Rupesh Gujare
This patch seriese mostly contains coding style fixes & removes unneeded variable initialization. Dan Carpenter (1): staging: ozwpan: Separate success & failure case for oz_hcd_pd_arrived() Rupesh Gujare (9): staging: ozwpan: Add a blank line between declaraction and code.

Re: [PATCH 2/4] staging: ozwpan: Increment port number for new device.

2013-08-06 Thread Rupesh Gujare
On 05/08/13 21:23, Dan Carpenter wrote: On Mon, Aug 05, 2013 at 07:43:16PM +0100, Rupesh Gujare wrote: On 05/08/13 18:53, Dan Carpenter wrote: On Mon, Aug 05, 2013 at 06:40:13PM +0100, Rupesh Gujare wrote: This patch fixes crash issue when there is quick cycle of de-enumeration & enumera

Re: [PATCH 4/4] staging: ozwpan: Return correct hub status.

2013-08-05 Thread Rupesh Gujare
On 05/08/13 19:56, Dan Carpenter wrote: On Mon, Aug 05, 2013 at 06:40:15PM +0100, Rupesh Gujare wrote: Fix a bug where we were not returning correct hub status for 8th port. What are the user visible effects of this bug? 8 th port is never assigned to new device & we loose one port. S

Re: [PATCH 3/4] staging: ozwpan: Reset port configuration number.

2013-08-05 Thread Rupesh Gujare
On 05/08/13 19:21, Dan Carpenter wrote: On Mon, Aug 05, 2013 at 06:40:14PM +0100, Rupesh Gujare wrote: Make sure that we reset port configuration no. when PD departs. What happens if we don't do this? What is the user visible effect of this patch? There is no user visible effect a

Re: [PATCH 2/4] staging: ozwpan: Increment port number for new device.

2013-08-05 Thread Rupesh Gujare
On 05/08/13 18:53, Dan Carpenter wrote: On Mon, Aug 05, 2013 at 06:40:13PM +0100, Rupesh Gujare wrote: This patch fixes crash issue when there is quick cycle of de-enumeration & enumeration due to loss of wireless link. It is found that sometimes new device (or coming back device) returns

[PATCH 2/4] staging: ozwpan: Increment port number for new device.

2013-08-05 Thread Rupesh Gujare
s in unstable system & crash. Above issue is resolved by making sure that we always assign new port to new device, making sure that USB core reads correct hub status. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c | 16 +++- 1 file changed, 11 insertions(+), 5 d

[PATCH 0/4] staging: ozwpan: Fix crash issues.

2013-08-05 Thread Rupesh Gujare
This patch series fixes crash issues observed, & fix a bug in hub status code. Rupesh Gujare (4): staging: ozwpan: Fixes crash due to invalid port aceess. staging: ozwpan: Increment port number for new device. staging: ozwpan: Reset port configuration number. staging: ozwpan: Re

[PATCH 3/4] staging: ozwpan: Reset port configuration number.

2013-08-05 Thread Rupesh Gujare
Make sure that we reset port configuration no. when PD departs. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index a739986..b060e43 100644 --- a/drivers

[PATCH 1/4] staging: ozwpan: Fixes crash due to invalid port aceess.

2013-08-05 Thread Rupesh Gujare
This patch fixes kernel crash issue, when we receive URB request after de-enumerating device. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan

[PATCH 4/4] staging: ozwpan: Return correct hub status.

2013-08-05 Thread Rupesh Gujare
Fix a bug where we were not returning correct hub status for 8th port. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index b060e43

[PATCH v2] staging: ozwpan: Fix farewell report.

2013-08-05 Thread Rupesh Gujare
ngth array with no limit check the remote attacker can just rewrite it using the memcpy() on the next line. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.h|2 +- drivers/staging/ozwpan/ozproto.c |2 +- 2 files changed, 2 insertions(+), 2 de

[PATCH v2] staging: ozwpan: Fix build warning.

2013-08-05 Thread Rupesh Gujare
This patch fixes following build warning. drivers/built-in.o: In function `oz_hcd_heartbeat': >> (.text+0x30aadd): undefined reference to `__divdi3' drivers/built-in.o: In function `oz_hcd_heartbeat': >> (.text+0x30ac85): undefined reference to `__divdi3

Re: [PATCH] staging: ozwpan: Fix build warning.

2013-08-05 Thread Rupesh Gujare
->credit += timespec_to_ns(&delta) / NSEC_PER_MSEC; + ep->credit += div64_u64(timespec_to_ns(&delta), NSEC_PER_MSEC); Thank you Anca. I will resend the patch. -- Regards, Rupesh Gujare ___ devel mailing list de...@linuxdri

[PATCH] staging: ozwpan: Fix build warning.

2013-08-04 Thread Rupesh Gujare
This patch fixes following build warning. drivers/built-in.o: In function `oz_hcd_heartbeat': >> (.text+0x30aadd): undefined reference to `__divdi3' drivers/built-in.o: In function `oz_hcd_heartbeat': >> (.text+0x30ac85): undefined reference to `__divdi3

[PATCH] staging: ozwpan: Fix farewell report.

2013-08-02 Thread Rupesh Gujare
This patch fixes issues reported by Dan here:- http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2013-August/040052.html Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.h|2 +- drivers/staging/ozwpan/ozproto.c |2 +- 2 files

Re: [PATCH 5/6] staging: ozwpan: Increase farewell report size.

2013-08-02 Thread Rupesh Gujare
On 02/08/13 11:27, Dan Carpenter wrote: On Thu, Aug 01, 2013 at 06:45:01PM +0100, Rupesh Gujare wrote: Farewell report size can be bigger than one byte, increase array size to accomodate maximum 32 bytes of farewell report. Gar... No. This is not right. 1) There is no check limiting the

[PATCH 5/6] staging: ozwpan: Increase farewell report size.

2013-08-01 Thread Rupesh Gujare
Farewell report size can be bigger than one byte, increase array size to accomodate maximum 32 bytes of farewell report. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozpd.h b/drivers

[PATCH 6/6] staging: ozwpan: Set farewell report length.

2013-08-01 Thread Rupesh Gujare
Fixes a bug where we were not setting length field causing wrong report size to be copied. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozproto.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index ec60286

[PATCH 3/6] staging: ozwpan: Use kernel strncmp function.

2013-08-01 Thread Rupesh Gujare
Use kernel's strncmp() function instead of defining same within driver. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozproto.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozpr

[PATCH 4/6] staging: ozwpan: Drop oldest ISOC frame instead of dropping latest.

2013-08-01 Thread Rupesh Gujare
In case of ISOC transfer, if TX queue is full then we start dropping latest frame, instead we should drop oldest frame & add latest frame to TX queue. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff -

[PATCH 0/6] staging: ozwpan: Use Kernel API & Bug fixes

2013-08-01 Thread Rupesh Gujare
This patch series removes duplicate code, & replaces it with kernel library functions, and few bug fixes. Rupesh Gujare (6): staging: ozwpan: Use kernel list function for managing interface list. staging: ozwpan: Mark string as const staging: ozwpan: Use kernel strncmp func

[PATCH 1/6] staging: ozwpan: Use kernel list function for managing interface list.

2013-08-01 Thread Rupesh Gujare
Managing interface list, is easier if we use kernel list_* API than managing it on our own. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozproto.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/staging/ozwpan/ozproto.c b

[PATCH 2/6] staging: ozwpan: Mark string as const

2013-08-01 Thread Rupesh Gujare
Make sure that we mark const string so that it does not get modified. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozproto.c |6 +++--- drivers/staging/ozwpan/ozproto.h |4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/ozwpan/ozproto.c b

Re: [PATCH] staging: ozwpan: High resolution timers

2013-07-30 Thread Rupesh Gujare
On 30/07/13 14:12, Dan Carpenter wrote: On Tue, Jul 30, 2013 at 01:31:50PM +0100, Rupesh Gujare wrote: Current implementation assumes HZ = 1000 for calculating all internal timer intervals, which creates problem on platforms where HZ != 1000. As well we need resolution of less than 10 mSec for

[PATCH] staging: ozwpan: High resolution timers

2013-07-30 Thread Rupesh Gujare
around, which restricts us to timer interval of 10 mSec. This is particularly found on embedded devices. This patch moves on to use high resolution timers to calculate all timer intervals as it allows us to have very small resolution of timer interval, removing dependency on HZ. Signed-off-by: Rupesh

Re: [PATCH] staging: ozwpan: Fix coding style.

2013-07-25 Thread Rupesh Gujare
On 25/07/13 11:39, Dan Carpenter wrote: On Thu, Jul 25, 2013 at 10:30:30AM +0100, Rupesh Gujare wrote: Greg, Did you missed this patch ? Or did I made another mistake. :( ? Chillax. It has only been one day. Ask again after two or three weeks. All right Dan, Probably I was getting too

Re: [PATCH] staging: ozwpan: Fix coding style.

2013-07-25 Thread Rupesh Gujare
On 24/07/13 15:06, Rupesh Gujare wrote: This patch fixes coding style issues reported by Dan here:- http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2012-June/027767.html Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c | 15 --- 1 file changed

[PATCH] staging: ozwpan: Fix coding style.

2013-07-24 Thread Rupesh Gujare
This patch fixes coding style issues reported by Dan here:- http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2012-June/027767.html Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff

[PATCH v3 5/5] staging: ozwpan: Rename Kbuild to Makefile

2013-07-23 Thread Rupesh Gujare
From: Joe Perches Rename Kbuild to usual Makefile, consistent with Kernel build structure. Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/Kbuild | 16 drivers/staging/ozwpan/Makefile | 16 2 files changed, 16

[PATCH v3 4/5] staging: ozwpan: Convert macro to function.

2013-07-23 Thread Rupesh Gujare
From: Joe Perches Replace macro with inline function. Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozurbparanoia.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozurbparanoia.h b/drivers/staging/ozwpan

[PATCH v3 1/5] staging: ozwpan: Remove extra debug logs.

2013-07-23 Thread Rupesh Gujare
From: Joe Perches Remove unnecessary debug logs. Most of these logs print function name at the start of function, which are not really required. Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c |2 -- drivers/staging/ozwpan/ozhcd.c | 28

[PATCH v3 3/5] staging: ozwpan: Remove old debug macro.

2013-07-23 Thread Rupesh Gujare
From: Joe Perches Remove old oz_trace & oz_trace2 macro & related header files. Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/Kbuild |6 ++ drivers/staging/ozwpan/ozcdev.c|2 -- drivers/staging/ozwpan/ozconfig.h

[PATCH v3 0/5] staging: ozwpan: Replace debug macro

2013-07-23 Thread Rupesh Gujare
This is v3 of this original patch series here:- http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2013-June/039280.html v3 adds commit log for each patch as suggested by Joe here:- http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2013-July/039361.html Joe Perches

Re: [PATCH v2 5/5] staging: ozwpan: Rename Kbuild to Makefile

2013-07-22 Thread Rupesh Gujare
-June/039278.html -- Regards, Rupesh Gujare ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 5/5] staging: ozwpan: Rename Kbuild to Makefile

2013-07-04 Thread Rupesh Gujare
On 04/07/13 13:35, Rupesh Gujare wrote: From: Joe Perches Pardon my ignorance, above error occurred while creating patch series. I should had been careful about it. -- Regards, Rupesh Gujare ___ devel mailing list de...@linuxdriverproject.org http

[PATCH v2 4/5] staging: ozwpan: Convert macro to function.

2013-07-04 Thread Rupesh Gujare
From: Joe Perches Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozurbparanoia.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozurbparanoia.h b/drivers/staging/ozwpan/ozurbparanoia.h index 00f5a3a

[PATCH v2 3/5] staging: ozwpan: Remove old debug macro.

2013-07-04 Thread Rupesh Gujare
From: Joe Perches Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/Kbuild |6 ++ drivers/staging/ozwpan/ozcdev.c|2 -- drivers/staging/ozwpan/ozconfig.h | 26 --- drivers/staging/ozwpan/ozeltbuf.c

[PATCH v2 0/5] Replace debug macro

2013-07-04 Thread Rupesh Gujare
This patch series splits earlier patch from Joe, into smaller patches. Joe Perches (5): staging: ozwpan: Remove extra debug logs. staging: ozwpan: Replace oz_trace with oz_dbg staging: ozwpan: Remove old debug macro. staging: ozwpan: Convert macro to function. staging: ozwpan: Rename Kbu

[PATCH v2 1/5] staging: ozwpan: Remove extra debug logs.

2013-07-04 Thread Rupesh Gujare
From: Joe Perches Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c |2 -- drivers/staging/ozwpan/ozhcd.c | 28 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/drivers/staging/ozwpan/ozcdev.c b

[PATCH v2 5/5] staging: ozwpan: Rename Kbuild to Makefile

2013-07-04 Thread Rupesh Gujare
From: Joe Perches Signed-off-by: Joe Perches Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/Kbuild | 16 drivers/staging/ozwpan/Makefile | 16 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 drivers/staging/ozwpan/Kbuild

Re: [PATCH] staging: ozwpan: Use normal Makefile, convert oz_trace to oz_dbg

2013-06-26 Thread Rupesh Gujare
eg have objection to define new macros & he had suggested to use dev_dbg() & pr_debug(). I will leave it to him, if he is all right to accept new macros for debug logs. Greg, Your comments please. ... +#endif /* _OZCONFIG_H */ Need to change to - #endi

Re: [PATCH] staging: ozwpan: Convert printk to dev_dbg()

2013-06-25 Thread Rupesh Gujare
On 25/06/13 18:02, Greg KH wrote: On Tue, Jun 25, 2013 at 05:30:02PM +0100, Rupesh Gujare wrote: convert all debug messages from printk to dev_dbg() & add kernel config to enable/disable these messages during compilation. No, just use the built-in dynamic debug code in the kernel, no nee

[PATCH] staging: ozwpan: Convert printk to dev_dbg()

2013-06-25 Thread Rupesh Gujare
convert all debug messages from printk to dev_dbg() & add kernel config to enable/disable these messages during compilation. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/Kbuild|2 +- drivers/staging/ozwpan/Kconfig |9 + drivers/staging/ozwpan/ozcdev.c |