[PATCH 6/6] MAINTAINERS: maintain parport

2015-05-20 Thread Sudip Mukherjee
Lets give the parport subsystem a proper name and start maintaining the files. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- MAINTAINERS | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 86d9398..0eb5ce2 100644 --- a/MAINTAINERS

[PATCH 5/6] paride: use new parport device model

2015-05-20 Thread Sudip Mukherjee
Modify paride driver to use the new parallel port device model. Tested-by: Alan Cox gno...@lxorguk.ukuu.org.uk Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- One change after testing by Alan, par_cb is made a local variable instead of a global one. drivers/block/paride/paride.c | 57

[PATCH 3/6] i2c-parport: define ports to connect

2015-05-20 Thread Sudip Mukherjee
As of now i2c-parport was connecting to all the available parallel ports. Lets limit that to maximum of 4 instances and at the same time define which instance connects to which parallel port. Tested-by: Jean Delvare jdelv...@suse.de Signed-off-by: Sudip Mukherjee su...@vectorindia.org

[PATCH 0/6] use devicemodel with parport

2015-05-20 Thread Sudip Mukherjee
. Sudip Mukherjee (6): parport: add device-model to parport subsystem staging: panel: use new parport device model i2c-parport: define ports to connect i2c-parport: use new parport device model paride: use new parport device model MAINTAINERS: maintain parport MAINTAINERS

[PATCH 4/6] i2c-parport: use new parport device model

2015-05-20 Thread Sudip Mukherjee
Modify i2c-parport driver to use the new parallel port device model. Tested-by: Jean Delvare jdelv...@suse.de Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- i2c_parport_cb is made local, devmodel added to driver structure, and probe removed. drivers/i2c/busses/i2c

Re: [PATCH 4/6] i2c-parport: use new parport device model

2015-05-20 Thread Sudip Mukherjee
On Wed, May 20, 2015 at 05:49:07PM +0200, Wolfram Sang wrote: On Wed, May 20, 2015 at 08:57:00PM +0530, Sudip Mukherjee wrote: Modify i2c-parport driver to use the new parallel port device model. Tested-by: Jean Delvare jdelv...@suse.de Signed-off-by: Sudip Mukherjee su

Re: [PATCH 6/6] MAINTAINERS: maintain parport

2015-05-20 Thread Sudip Mukherjee
On Wed, May 20, 2015 at 09:28:16AM -0700, Joe Perches wrote: On Wed, 2015-05-20 at 17:46 +0200, Richard Weinberger wrote: On Wed, May 20, 2015 at 5:27 PM, Sudip Mukherjee sudipm.mukher...@gmail.com wrote: Lets give the parport subsystem a proper name and start maintaining the files

Re: [PATCH v3 1/2] Staging: comedi: fix line longer than 80 chars in cb_pcidas64.c

2015-05-19 Thread Sudip Mukherjee
On Tue, May 19, 2015 at 07:57:49PM +0200, Amaury Denoyelle wrote: This patch fixes coding style errors reported by checkpatch.pl for cb_pcidas64.c, about too long source code lines. Signed-off-by: Amaury Denoyelle amaury.denoye...@gmail.com --- drivers/staging/comedi/drivers/cb_pcidas64.c

Re: [PATCH] Staging: rtl8192e: Timer setup using macro rather assignment

2015-05-18 Thread Sudip Mukherjee
On Mon, May 18, 2015 at 09:26:03AM -0700, Joe Perches wrote: On Mon, 2015-05-18 at 21:35 +0530, Sudip Mukherjee wrote: On Mon, May 18, 2015 at 02:44:15PM +, DHANAPAL, GNANACHANDRAN (G.) wrote: setup_timer is used for timer parameter setup rather than direct assignment Signed

Re: [PATCH] Staging: rtl8192e: Timer setup using macro rather assignment

2015-05-18 Thread Sudip Mukherjee
On Mon, May 18, 2015 at 02:44:15PM +, DHANAPAL, GNANACHANDRAN (G.) wrote: setup_timer is used for timer parameter setup rather than direct assignment Signed-off-by: Gnanachandran Dhanapal gdhan...@visteon.com your From: name and Signed-off-by: names are not matching. They should be same.

Re: [PATCH 1/3 v3] Staging: rtl8192u: Simplify error check code at prism2_wep_init

2015-05-18 Thread Sudip Mukherjee
On Tue, May 19, 2015 at 01:32:22AM +0200, Pedro Marzo Perez wrote: Merge two pr_debug lines with literal strings splitted across several lines into one single line, simplifying prism2_wep_init error check code. I would have split this patch into three. 1) introduce pr_fmt and remove

Re: [PATCH v2] Staging: comedi: fix line longer than 80 chars in cb_pcidas64.c

2015-05-18 Thread Sudip Mukherjee
On Mon, May 18, 2015 at 08:51:29PM +0200, Amaury Denoyelle wrote: Sudip Mukherjee sudipm.mukher...@gmail.com wrote: On Sun, May 17, 2015 at 04:47:23PM +0200, Amaury Denoyelle wrote: Thanks for your review. I was aware of the coding style for multi-line comments, but I chose to follow

Re: [PATCH 1/1] [930672e8693a] Task 10 of the Eudyptula Challenge

2015-05-18 Thread Sudip Mukherjee
On Tue, May 19, 2015 at 01:50:10AM -0300, Douglas Figueiredo wrote: From: douglasbsf eng.douglasfigueir...@gmail.com Fixed Coding Style Problem in drivers/staging/wlan-ng/prism2fw.c 1) mention which coding style problem you fixed in the commit message. 2) no need to mention the challenge in

Re: [PATCH] Staging: unisys: fix function declaration format in visorchipset.c

2015-05-18 Thread Sudip Mukherjee
On Mon, May 18, 2015 at 11:45:49AM +0200, Wim de With wrote: This is a patch that fixes the function declarations in visorbus/visorchipset.c by removing newlines after the function return type But this is not an error nor it is a coding style error. Instead your patch will now introduce new

Re: [PATCH 1/1] Staging: comedi: fix line longer than 80 chars in cb_pcidas64.c

2015-05-17 Thread Sudip Mukherjee
On Sun, May 17, 2015 at 04:47:23PM +0200, Amaury Denoyelle wrote: This patch fixes coding style errors reported by checkpatch.pl for cb_pcidas64.c, about too long source code lines. Signed-off-by: Amaury Denoyelle amaury.denoye...@gmail.com --- snip } -/* adjusts the size of hardware

[PATCH] staging: rtl8712: fix stack dump

2015-05-15 Thread Sudip Mukherjee
-by: Arek Rusniak arek.r...@gmail.com Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- how to close the bug in bugzilla? The FAQ page says VERIFIED and CLOSE status, but Arek says he can only see RESOLVED and NEW. drivers/staging/rtl8712/rtl8712_led.c | 144

Re: [PATCH] staging: rts5208: remove always true comparison

2015-05-15 Thread Sudip Mukherjee
On Thu, May 14, 2015 at 06:18:59PM +0300, Dan Carpenter wrote: On Thu, May 14, 2015 at 07:55:59PM +0530, Sudip Mukherjee wrote: the if comparison is always true as anything bitwise and-ing with 0x1E can never be equal to 0x03. Fixes bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id

[PATCH] staging: rts5208: remove always true comparison

2015-05-14 Thread Sudip Mukherjee
the if comparison is always true as anything bitwise and-ing with 0x1E can never be equal to 0x03. Fixes bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=69881 Reported-by: David Binderman dcb...@hotmail.com Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/rts5208

[PATCH v2] staging: panel: fix stackdump

2015-05-12 Thread Sudip Mukherjee
, which should be the ideal case as the detach will be called if we try to unregister the driver or if the parport is removed. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- v2: addded previous commit id to commit message Faced this problem while working on the device-model code

Re: [PATCH v2] staging: panel: fix stackdump

2015-05-12 Thread Sudip Mukherjee
On Tue, May 12, 2015 at 02:27:13PM +0300, Dan Carpenter wrote: On Tue, May 12, 2015 at 04:45:44PM +0530, Sudip Mukherjee wrote: if we load the module, unload and then again try to load the module, we will get a stackdump. In the module_exit function we are unregistering the device

[PATCH v3] staging: panel: fix stackdump

2015-05-12 Thread Sudip Mukherjee
function, which should be the ideal case as the detach will be called if we try to unregister the driver or if the parport is removed. Fixes: bb046fef9668 ('staging: panel: register reboot') Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- v3: mention commit id in proper format v2: addded

Re: [PATCH v3 04/33] staging: rtl8192e: Fix DEEP_INDENTATION warning in rtllib_parse_info_param()

2015-05-12 Thread Sudip Mukherjee
On Tue, May 12, 2015 at 11:01:44PM +0200, Mateusz Kulikowski wrote: On 10.05.2015 09:49, Sudip Mukherjee wrote: On Sat, May 09, 2015 at 11:18:52PM +0200, Mateusz Kulikowski wrote: You're running checkpatch --strict right? 1) multiple blank lines 2) Blank lines aren't necessary before

Re: [PATCH 1/1] drivers: staging: fbtft: fbtft-core.c: Fix different address space warning

2015-05-12 Thread Sudip Mukherjee
On Tue, May 12, 2015 at 06:57:46PM -0700, Tolga Ceylan wrote: To fix sparse warning of incorrect type when calling vfree() (different address space), added annotation __force. Garret Kelly posted a similar patch before, please see the discussion about that patch at

Re: [PATCH v2] staging: unisys: remove unused functions

2015-05-11 Thread Sudip Mukherjee
On Sun, May 10, 2015 at 03:01:30PM +0200, Greg Kroah-Hartman wrote: On Fri, May 08, 2015 at 01:06:19PM +0530, Sudip Mukherjee wrote: these functions were just defined and never used. after removing the functions the variable visorchipset_cache_buffers_in_use is becoming unused, so removed

[PATCH] staging: lustre: remove unused variable

2015-05-11 Thread Sudip Mukherjee
there variables were not used anywhere and was showing as build warning. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/lustre/lustre/lov/lov_request.c | 4 +--- drivers/staging/lustre/lustre/obdclass/acl.c| 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff

[PATCH] staging: panel: fix stackdump

2015-05-11 Thread Sudip Mukherjee
to unregister the driver or if the parport is removed. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- This was caused by one of my patch :( Faced this problem while working on the device-model code of parallelport. drivers/staging/panel/panel.c | 44

Re: [PATCH] staging: lustre: remove unused variable

2015-05-11 Thread Sudip Mukherjee
On Mon, May 11, 2015 at 02:31:02PM +0300, Dan Carpenter wrote: On Mon, May 11, 2015 at 04:17:10PM +0530, Sudip Mukherjee wrote: - if (set-set_pga) { - int len = set-set_oabufs * sizeof(*set-set_pga); + if (set-set_pga) OBD_FREE_LARGE(set-set_pga, len

Re: [PATCH v3 07/33] staging: rtl8192e: Replace RTLLIB_DEBUG(DL_ERR) with netdev_*()

2015-05-10 Thread Sudip Mukherjee
On Sat, May 09, 2015 at 11:18:55PM +0200, Mateusz Kulikowski wrote: Replace all RTLLIB_DEBUG(RTLLIB_DL_ERR, *) calls with netdev_err() for errors that really should be reported to user. Use netdev_warn() for the rest. Rephrase some of the messages to make them more readable/compact. checkpatch

Re: [PATCH v3 04/33] staging: rtl8192e: Fix DEEP_INDENTATION warning in rtllib_parse_info_param()

2015-05-10 Thread Sudip Mukherjee
On Sat, May 09, 2015 at 11:18:52PM +0200, Mateusz Kulikowski wrote: Move MFIE_TYPE_GENERIC handler to rtllib_parse_mife_generic() function. Code was not altered significantly, therefore in some places it generates LONG_LINE checkpatch.pl warnings. apart from long line it is also giving warnings

[PATCH] staging: dgap: remove unused code

2015-05-09 Thread Sudip Mukherjee
dgap_sindex() is being only called from dgap_getword() which searches for either ' ' or '\t' or '\n'. this part of the code with '^' at the beginning is never used. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/dgap/dgap.c | 21 - 1 file changed, 4

[PATCH v2] staging: unisys: remove unused functions

2015-05-08 Thread Sudip Mukherjee
these functions were just defined and never used. after removing the functions the variable visorchipset_cache_buffers_in_use is becoming unused, so removed it as well. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- v2: combined both patches of v1 together drivers/staging/unisys

Re: [PATCH 2/2] staging: unisys: remove unused variable

2015-05-08 Thread Sudip Mukherjee
On Fri, May 08, 2015 at 10:34:49AM +0300, Dan Carpenter wrote: On Fri, May 08, 2015 at 09:54:44AM +0530, Sudip Mukherjee wrote: On Thu, May 07, 2015 at 10:04:32PM +0200, Greg Kroah-Hartman wrote: On Thu, May 07, 2015 at 03:06:52PM +0530, Sudip Mukherjee wrote: the previous patch

Re: [PATCH V3 RESEND] staging: sm750: Fix lynxfb_ops_imageblit() if image-depth != 1

2015-05-08 Thread Sudip Mukherjee
On Fri, May 08, 2015 at 05:04:28PM +0800, Huacai Chen wrote: If image-depth != 1, lynxfb_ops_imageblit() should fallback to call cfb_imageblit(), not return directly. Otherwise it can't display the boot logo. why resending? regards sudip ___ devel

Re: [PATCH 2/2] staging: unisys: remove unused variable

2015-05-07 Thread Sudip Mukherjee
On Thu, May 07, 2015 at 10:04:32PM +0200, Greg Kroah-Hartman wrote: On Thu, May 07, 2015 at 03:06:52PM +0530, Sudip Mukherjee wrote: the previous patch of the series made this variable unused. What do you mean? There was only one other patch in this series, never send a patch that causes

Re: [PATCH] staging: comedi: coding style identation error fix

2015-05-07 Thread Sudip Mukherjee
On Thu, May 07, 2015 at 08:01:53AM -0500, Jaime Arrocha wrote: On 05/07/2015 12:34 AM, Sudip Mukherjee wrote: On Wed, May 06, 2015 at 05:13:41PM -0500, Jaime Arrocha wrote: Errors found by checkpatch.pl. ERROR: code indent should use tabs where possible /drivers/staging/comedi/drivers

[PATCH 1/2] staging: dgap: move function before remove

2015-05-07 Thread Sudip Mukherjee
move the cleanup function before the remove call as the next patch of the series is going to use that. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/dgap/dgap.c | 61 ++--- 1 file changed, 30 insertions(+), 31 deletions(-) diff

Re: [PATCH v3 2/2] staging: sm750fb: cleanup indentation

2015-05-06 Thread Sudip Mukherjee
On Wed, May 06, 2015 at 10:06:21AM +0300, Dan Carpenter wrote: Looks good. but its applying to linux-next and not applying to staging-testing. There are a few patches which Greg applied to staging-testing before the merge-window but they were not applied to staging-next. I guess he has been

Re: [PATCH] staging: lustre: code cleanup - variable declaration spacing

2015-05-06 Thread Sudip Mukherjee
On Wed, May 06, 2015 at 08:02:55AM -0400, Mike Shuey wrote: Clean up spacing in some variable declarations, to be more consistent. It's small, but I need to start somewhere. Please let me know if I'm not adhering to proper procedure for trivial cleanups. these comments should not come here.

[PATCH] staging: lustre: llite: remove unuse variables

2015-05-06 Thread Sudip Mukherjee
there variables were not used anywhere and was showing as build warning. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/lustre/lustre/llite/file.c | 2 -- drivers/staging/lustre/lustre/llite/llite_lib.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers

Re: [PATCH] staging: comedi: coding style identation error fix

2015-05-06 Thread Sudip Mukherjee
On Wed, May 06, 2015 at 05:13:41PM -0500, Jaime Arrocha wrote: Errors found by checkpatch.pl. ERROR: code indent should use tabs where possible /drivers/staging/comedi/drivers/das16m1.c:49 /drivers/staging/comedi/drivers/das16m1.c:50 Signed-off-by: Jaime Arrocha j...@kerneldev.net --- you

Re: 答复: [PATCH V2] staging: sm750: Fix lynxfb_ops_imageblit() if image-depth != 1

2015-04-28 Thread Sudip Mukherjee
On Mon, Apr 27, 2015 at 02:36:53PM +, Teddy Wang 王力强 wrote: The image-depth != 1 case means the image is color. The current driver only does 2d in mono color image. I think we can let the driver fall back to cfb_imageblit() currently. Then we implement the color image 2d later. If

Re: [PATCH V2] staging: sm750: Fix lynxfb_ops_imageblit() if image-depth != 1

2015-04-27 Thread Sudip Mukherjee
On Mon, Apr 27, 2015 at 04:10:53PM +0800, Huacai Chen wrote: If image-depth != 1, lynxfb_ops_imageblit() should fallback to call cfb_imageblit(), not return directly. Otherwise it can't display the boot logo. I think it is wrong. lynxfb_ops_imageblit() is the imageblit callback if 2D

Re: [PATCH] staging: sm750fb: cleanup white space and indent

2015-04-24 Thread Sudip Mukherjee
On Thu, Apr 23, 2015 at 05:04:08PM -0400, Charles Rose wrote: This patch fixes space prohibited errors reported by checkpatch.pl and related indentation. The module builds without error. Signed-off-by: Charles Rose charles.rose.li...@gmail.com snip - if ( x == 800 y == 600 ) -

Re: 答复: [PATCH] staging: sm750: Fixthe Makefile option error

2015-04-24 Thread Sudip Mukherjee
On Fri, Apr 24, 2015 at 03:33:58PM +0800, 陈华才 wrote: Hi, Sudip, Upstream driver still can't show logo, we are debugging. Hi Huacai, I checked with the upstream driver only. I checked with next-20150423 and it showed me the penguin logo on upper left hand corner of my screen when

Re: 答复: [PATCH] staging: sm750: Fix the Makefile option error

2015-04-23 Thread Sudip Mukherjee
On Thu, Apr 23, 2015 at 10:29:48AM +0530, Sudip Mukherjee wrote: On Thu, Apr 23, 2015 at 12:43:40PM +0800, 陈华才 wrote: Hi, Teddy, In the code It seems that only SM718/SM750 is supported in Sudip's driver. Hi Huacai, The driver that Teddy gave me originally was a mix driver of SM712

[PATCH 2/2] staging: sm7xxfb: remove unused functions

2015-04-23 Thread Sudip Mukherjee
removed the smtc_alloc_fb_info() and smtc_free_fb_info() functions which were not used anymore. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xxfb.c | 32 1 file changed, 32 deletions(-) diff --git a/drivers/staging/sm7xxfb

Re: [PATCH v2] Staging: rtl8712: Removed unused return variable

2015-04-23 Thread Sudip Mukherjee
On Thu, Apr 23, 2015 at 03:00:14PM +, DHANAPAL, GNANACHANDRAN (G.) wrote: This patch removes unused return variable in this file. Signed-off-by: Gnanachandran Dhanapal gdhan...@visteon.com --- your From: name and Signed-off-by: name is not matching. regards sudip

Re: 答复: [PATCH] staging: sm750: Fix the Makefile option error

2015-04-22 Thread Sudip Mukherjee
On Thu, Apr 23, 2015 at 12:43:40PM +0800, 陈华才 wrote: Hi, Teddy, In the code It seems that only SM718/SM750 is supported in Sudip's driver. Hi Huacai, The driver that Teddy gave me originally was a mix driver of SM712/SM750/SM502. The one in staging is only SM750, since we already have SM712

Re: [PATCH] staging: sm750: Fix the Makefile option error

2015-04-22 Thread Sudip Mukherjee
, not CONFIG_FB_SM7XX. Thus fix it to make the sm750fb can be built successfully. I always used to build sm750fb and sm7xxfb together, so failed to notice the error. thanks. Acked-by: Sudip Mukherjee su...@vectorindia.org ___ devel mailing list de

Re: [PATCH] staging: sm750: Fix the Makefile option error

2015-04-21 Thread Sudip Mukherjee
-by: Sudip Mukherjee su...@vectorindia.org ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/4] parport: modify parport subsystem to use devicemodel

2015-04-15 Thread Sudip Mukherjee
On Wed, Apr 15, 2015 at 03:31:15PM +0200, Greg Kroah-Hartman wrote: On Wed, Apr 15, 2015 at 01:18:41PM +0530, Sudip Mukherjee wrote: @@ -29,6 +31,7 @@ snip +struct bus_type parport_bus_type = { + .name = parport, +}; +EXPORT_SYMBOL(parport_bus_type); They bus type

Re: [PATCH 1/4] parport: modify parport subsystem to use devicemodel

2015-04-15 Thread Sudip Mukherjee
of this patch series. snip On Wed, Apr 15, 2015 at 01:18:41PM +0530, Sudip Mukherjee wrote: Don't print warnings on kmalloc() failure. I think kzalloc() is better here. That way if the -init_state() functions don't set it, then we know it's zeroed out. yes, i will. Infact

[PATCH 2/4] parport: update TODO and documentation

2015-04-15 Thread Sudip Mukherjee
as parport starts using the device-model, update the documentation to show the newly added functions and update TODO with some other planned modifications. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- Documentation/parport-lowlevel.txt | 49

[PATCH 4/4] staging: panel: use parport in device-model

2015-04-15 Thread Sudip Mukherjee
modified the required functions to start using the new parport device-model Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/panel/panel.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/staging/panel/panel.c b/drivers

[PATCH 0/4] convert parport to device-model

2015-04-15 Thread Sudip Mukherjee
converted. I am also in the process of procuring a parallel port printer so that the code can properly be maintained and can be marked as Maintained. Sudip Mukherjee (4): parport: modify parport subsystem to use devicemodel parport: update TODO and documentation i2c-parport: use device-model

[PATCH 3/4] i2c-parport: use device-model parport

2015-04-15 Thread Sudip Mukherjee
modified the functions to use the new device-model of parport. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/i2c/busses/i2c-parport.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-parport.c b/drivers/i2c/busses

Re: [PATCH 1/4] parport: modify parport subsystem to use devicemodel

2015-04-15 Thread Sudip Mukherjee
On Wed, Apr 15, 2015 at 11:33:59AM +0300, Dan Carpenter wrote: On Wed, Apr 15, 2015 at 01:18:41PM +0530, Sudip Mukherjee wrote: The difference between parport_register_device() and parport_register_dev() isn't clear from the name. i kept the name similar deliberately as I thought that after

Re: [PATCH 1/4] parport: modify parport subsystem to use devicemodel

2015-04-15 Thread Sudip Mukherjee
On Wed, Apr 15, 2015 at 12:45:00PM +0300, Dan Carpenter wrote: On Wed, Apr 15, 2015 at 02:50:55PM +0530, Sudip Mukherjee wrote: snip + tmp-name = name; I wonder who frees this name variable. My concern is that it gets freed before we are done using it or something. (I have

Re: [PATCH v2 1/2 RESEND] staging: dgnc: remove dead code in dgnc_tty_write()

2015-04-11 Thread Sudip Mukherjee
On Sat, Apr 11, 2015 at 03:20:43PM +0300, Giedrius Statkevičius wrote: On Sat, 11 Apr 2015, Sudip Mukherjee wrote: On Fri, Apr 10, 2015 at 05:48:54PM +0300, Giedrius Statkevičius wrote: Well, I think this is wrong because: yes. I looked at many of the tty drivers and all of them have used

Re: [PATCH v2 1/2 RESEND] staging: dgnc: remove dead code in dgnc_tty_write()

2015-04-10 Thread Sudip Mukherjee
On Fri, Apr 10, 2015 at 05:48:54PM +0300, Giedrius Statkevičius wrote: Remove the dead code protected by in_user in dgnc_tty_write() because it is set to 0 and never changed to 1 thus the code in ifs never gets executed. dgnc_tty_write() is being called by dgnc_tty_put_char() and it is also

[PATCH 02/14] ALSA: portman2x4: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- sound/drivers/portman2x4.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff

Re: [PATCH 01/14] parport: return value of attach and parport_register_driver

2015-04-08 Thread Sudip Mukherjee
On Wed, Apr 08, 2015 at 02:44:37PM +0300, Dan Carpenter wrote: On Wed, Apr 08, 2015 at 02:38:32PM +0300, Dan Carpenter wrote: Then we convert one driver to use the new function pointer and see if it simplifies the code. If so we can transition the others as well. If not then we give up. i

[PATCH 00/14] parport: check success of attach call

2015-04-08 Thread Sudip Mukherjee
code from parport_register_driver. Sudip Mukherjee (14): parport: return value of attach and parport_register_driver ALSA: portman2x4: return proper error values from attach ALSA: mts64: return proper error values from attach staging: panel: return proper error values from attach spi

[PATCH 03/14] ALSA: mts64: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- sound/drivers/mts64.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH 06/14] spi: butterfly: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/spi/spi-butterfly.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 04/14] staging: panel: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/panel/panel.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH 08/14] [SCSI] imm: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/scsi/imm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi

[PATCH 11/14] net: plip: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. also return the proper error code in module_init. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/net/plip/plip.c | 16 ++-- 1 file

[PATCH 07/14] [SCSI] ppa: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/scsi/ppa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi

[PATCH 09/14] pps: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/pps/generators/pps_gen_parport.c | 9 + 1 file changed, 5 insertions(+), 4 deletions

[PATCH 05/14] spi: lm70llp: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/spi/spi-lm70llp.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 01/14] parport: return value of attach and parport_register_driver

2015-04-08 Thread Sudip Mukherjee
only mark attach as failed only if it has never returned a 0. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/parport/share.c | 20 +++- include/linux/parport.h | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/parport/share.c b/drivers

[PATCH 12/14] i2c-parport: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/i2c/busses/i2c-parport.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 10/14] pps: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/pps/clients/pps_parport.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 13/14] ppdev: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/char/ppdev.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [PATCH 02/14] ALSA: portman2x4: return proper error values from attach

2015-04-08 Thread Sudip Mukherjee
On Wed, Apr 08, 2015 at 04:32:57PM +0300, Sergei Shtylyov wrote: Hello. On 4/8/2015 2:20 PM, Sudip Mukherjee wrote: now that we are monitoring the return value from attach, make the So you've first changed the method prototype and follow up with the changes to the actual

[PATCH] staging: panel: remove duplicate code

2015-04-07 Thread Sudip Mukherjee
marking keypad_initialized and lcd.initialized as false. so this part of the code will never execute. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/panel/panel.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/panel/panel.c b/drivers

Re: [PATCH] staging: panel: remove duplicate code

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 11:49:30AM +0300, Dan Carpenter wrote: On Tue, Apr 07, 2015 at 01:55:01PM +0530, Sudip Mukherjee wrote: I hadn't looked at this driver much before. It sucks that parport_driver -attach() functions can't fail... then maybe, we can change the code of parport

Re: [PATCH] staging: lustre: Make cfs_sched_rehash static

2015-04-07 Thread Sudip Mukherjee
On Mon, Apr 06, 2015 at 10:02:27PM -0400, Nickolaus Woodruff wrote: This patch fixes the following sparse warning: CHECK drivers/staging/lustre/lustre/libcfs/hash.c drivers/staging/lustre/lustre/libcfs/hash.c:119:21: warning: symbol 'cfs_sched_rehash' was not declared. Should it be static?

Re: [PATCH v3] staging: dgnc: check if kzalloc fails in dgnc_tty_init()

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 05:11:15PM +0300, Giedrius Statkevičius wrote: If one of the allocations of memory for storing a channel information struct fails then free all the successful allocations and return -ENOMEM that gets propogated to the pci layer. Also, remove a bogus skipping in the next

Re: commit reverted in staging/sm750fb

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 11:24:43AM -0300, Fabio Estevam wrote: On Tue, Apr 7, 2015 at 11:08 AM, Sudip Mukherjee sudipm.mukher...@gmail.com wrote: Just run 'git show 6ad6b5ed3e247' in linux-next and you can see such commit. I have already seen the patch. But being the maintainer

Re: [PATCH] staging: panel: remove duplicate code

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 04:14:59PM +0200, Willy Tarreau wrote: now. do you think it is worth that i pick up the code and modify it for our latest kernel and submit to Greg ? If you have some parport hardware, and want to take it on, that would be great. The code needs a

Re: commit reverted in staging/sm750fb

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 11:01:57AM -0300, Fabio Estevam wrote: On Tue, Apr 7, 2015 at 10:56 AM, Sudip Mukherjee sudipm.mukher...@gmail.com wrote: Hi Greg, I saw that you have reveretd one commit 6ad6b5ed3e2472b399b567a2f036006bf25df467 Staging: sm750fb: Fix C99 Comments in staging

Re: [PATCH] staging: panel: remove duplicate code

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 12:12:06PM +0200, Greg Kroah-Hartman wrote: On Tue, Apr 07, 2015 at 03:26:58PM +0530, Sudip Mukherjee wrote: On Tue, Apr 07, 2015 at 11:44:29AM +0200, Greg Kroah-Hartman wrote: On Tue, Apr 07, 2015 at 02:55:02PM +0530, Sudip Mukherjee wrote: On Tue, Apr 07, 2015

Re: commit reverted in staging/sm750fb

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 04:34:54PM +0200, Greg KH wrote: On Tue, Apr 07, 2015 at 07:26:53PM +0530, Sudip Mukherjee wrote: Hi Greg, I saw that you have reveretd one commit 6ad6b5ed3e2472b399b567a2f036006bf25df467 Staging: sm750fb: Fix C99 Comments in staging/sm750fb. I was trying

commit reverted in staging/sm750fb

2015-04-07 Thread Sudip Mukherjee
Hi Greg, I saw that you have reveretd one commit 6ad6b5ed3e2472b399b567a2f036006bf25df467 Staging: sm750fb: Fix C99 Comments in staging/sm750fb. I was trying to search for that patch, but it seems I am not able to find that in my personal mails nor in lkml. can you please let me know when it was

Re: [PATCH] Staging: rtl8188eu: Replaced kzalloc and memcpy combination with kmemdup

2015-04-07 Thread Sudip Mukherjee
On Tue, Apr 07, 2015 at 02:25:39PM +, Dhere, Chaitanya (C.) wrote: This change was detected with the help of coccinelle tool. It performs the same function as kzalloc amd memcpy. Signed-off-by: Chaitanya Dhere cvija...@visteon.com your From: name and this name does not match. regards

Re: [PATCH] Staging: sm750fb: Remove extra parentheses around right bit shift operation

2015-04-06 Thread Sudip Mukherjee
On Sun, Apr 05, 2015 at 07:11:47AM +0530, Amitoj Kaur Chawla wrote: Removes extra parentheses around bitwise right shift operation. this is not applying. please work against staging-testing. regards sudip ___ devel mailing list

Re: [PATCH] Staging: rtl8192u Make function static

2015-03-31 Thread Sudip Mukherjee
On Tue, Mar 31, 2015 at 05:51:19PM -0600, Eddie Kovsky wrote: Changing function definition to static fixes the following warning generated by sparse: drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:1924:6: warning: symbol 'ieee80211_check_auth_response' was not declared. Should it be

Re: [PATCH] drivers: staging: speakup: fix sparse warning: expression using sizeof bool

2015-03-30 Thread Sudip Mukherjee
On Sat, Mar 28, 2015 at 08:57:01AM +0100, Piotr Witosławski wrote: On Sat, Mar 28, 2015 at 11:56:40AM +0530, Sudip Mukherjee wrote: On Fri, Mar 27, 2015 at 09:36:07PM +0100, Witos wrote: Changed bool to u8 to get rid of sparse warning. but i am not getting this warning. which version

Re: [PATCH] staging: speakup: Fix warning of line over 80 characters.

2015-03-30 Thread Sudip Mukherjee
On Sat, Mar 28, 2015 at 05:26:34PM -0700, Shirish Gajera wrote: On Sun, Mar 29, 2015 at 12:54:45AM +0100, Richard Weinberger wrote: //richard Are you sure you want me to do this changes. Because it will conflict the things written on http://kernelnewbies.org/ where is the conflict? you

[PATCH 2/2] staging: sm7xxfb: disable pci device

2015-03-28 Thread Sudip Mukherjee
disable the pci device when the module exits. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xxfb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 149286e..77f51a0 100644

[PATCH 1/2] staging: sm7xxfb: reserve PCI resource

2015-03-28 Thread Sudip Mukherjee
before starting to access any address inside the PCI region we should reserve the resource and release the resource when the module exits. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xxfb.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH] drivers: staging: speakup: fix sparse warning: expression using sizeof bool

2015-03-28 Thread Sudip Mukherjee
On Fri, Mar 27, 2015 at 09:36:07PM +0100, Witos wrote: Changed bool to u8 to get rid of sparse warning. but i am not getting this warning. which version of sparse are you using? and why you have sent the same patch two times? regards sudip Signed-off-by: Piotr Witoslawski pwi...@gmail.com

[PATCH 2/3] staging: unisys: use error codes

2015-03-27 Thread Sudip Mukherjee
we were just returning -1 to the calling function which was again returning that if the module failed to load. Now we are returning the actual error codes. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/unisys/visorchipset/file.c | 12 +++- 1 file changed, 7

[PATCH 1/3] staging: unisys: unregister chardev on error

2015-03-27 Thread Sudip Mukherjee
after registering the major numbers if the cdev_add fails then we were not releasing the major numbers. now we are doing that. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/unisys/visorchipset/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 2/3] staging: unisys: use error codes

2015-03-27 Thread Sudip Mukherjee
On Fri, Mar 27, 2015 at 09:47:16AM +0100, Greg Kroah-Hartman wrote: On Fri, Mar 27, 2015 at 02:00:58PM +0530, Sudip Mukherjee wrote: } rc = cdev_add(file_cdev, MKDEV(MAJOR(major_dev), 0), 1); if (rc 0) { unregister_chrdev_region(major_dev, 1

[PATCH 3/3] staging: unisys: remove forward declaration

2015-03-27 Thread Sudip Mukherjee
rearranged the functions to get rid of the forward declarations. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/unisys/visorchipset/file.c | 80 ++ 1 file changed, 37 insertions(+), 43 deletions(-) diff --git a/drivers/staging/unisys

[PATCH v2 1/3] staging: unisys: unregister chardev on error

2015-03-27 Thread Sudip Mukherjee
after registering the major numbers if the cdev_add fails then we were not releasing the major numbers. now we are doing that. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- v2: removed extra space drivers/staging/unisys/visorchipset/file.c | 4 +++- 1 file changed, 3 insertions

[PATCH v2 2/3] staging: unisys: use error codes

2015-03-27 Thread Sudip Mukherjee
we were just returning -1 to the calling function which was again returning that if the module failed to load. Now we are returning the actual error codes. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- v2: removed extra space drivers/staging/unisys/visorchipset/file.c | 12

<    2   3   4   5   6   7   8   9   10   >