Re: [PATCH 0/8] staging: dwc2: cleanups for DWC2 driver

2013-11-25 Thread Dan Carpenter
On Fri, Nov 22, 2013 at 04:43:44PM -0800, Paul Zimmerman wrote: This is a series of cleanups to the DWC2 driver, in response to Dan Carpenter's review on 11/15/2013. I believe I have addressed all of Dan's suggestions, except for removing the validation checks from the dwc2_set_param_*

Re: [PATCH V2 0/7] Staging: comedi: fix coding style issues in unioxx5.c

2013-11-25 Thread Ian Abbott
On 2013-11-21 19:57, Conrad Gomes wrote: This series contains various fixes to coding style issues in unioxx5.c found by checkpatch.pl and due to the usage of pr_err instead of the preferred dev_err type functions for device drivers. Conrad Gomes (7): Staging: comedi: fix line over 80

Re: staging: comedi: cleanup debugging support

2013-11-25 Thread Ian Abbott
On 2013-11-22 17:40, H Hartley Sweeten wrote: Currently the COMEDI_DEBUG option enables the comedi_debug module parameter as well as a DPRINTK() macro. To actually get debug messages to display the kernel still needs to be built with the -DDEBUG flag. Cleanup all the custom uses of DEBUG in

[patch 1/3] staging: dwc2: cleanups in dwc2_hcd_qh_add()

2013-11-25 Thread Dan Carpenter
I've made the success and error paths clearer and pulled some code in one indent level. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/dwc2/hcd_queue.c b/drivers/staging/dwc2/hcd_queue.c index f200f1f6e1c6..ad9136e9d820 100644 ---

[patch 2/3] staging: dwc2: cleanup in dwc2_schedule_periodic()

2013-11-25 Thread Dan Carpenter
Combine two conditions and make the success path explicit. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- The code is more complicated than it needs to be because of the debug code. If we just tested for error and then returned instead of trying to print a debug message that is the

RE: [PATCH v2] Move DWC2 driver out of staging

2013-11-25 Thread Dan Carpenter
I have reviewed the second half of the driver now. drivers/staging/dwc2/hcd_ddma.c 616 static void dwc2_fill_host_dma_desc(struct dwc2_hsotg *hsotg, 617 struct dwc2_host_chan *chan, 618 struct dwc2_qtd *qtd,

RE: [patch 1/3] staging: dwc2: cleanups in dwc2_hcd_qh_add()

2013-11-25 Thread Paul Zimmerman
From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Monday, November 25, 2013 6:11 AM I've made the success and error paths clearer and pulled some code in one indent level. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/dwc2/hcd_queue.c

RE: [patch 2/3] staging: dwc2: cleanup in dwc2_schedule_periodic()

2013-11-25 Thread Paul Zimmerman
From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Monday, November 25, 2013 6:14 AM Combine two conditions and make the success path explicit. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- The code is more complicated than it needs to be because of the debug code.

Re: [patch 2/3] staging: dwc2: cleanup in dwc2_schedule_periodic()

2013-11-25 Thread Dan Carpenter
On Mon, Nov 25, 2013 at 07:46:57PM +, Paul Zimmerman wrote: This touches the same function as the patch series staging: dwc2: cleanups for DWC2 driver that I have already submitted. If you don't mind, I will fold this patch into that series when I resubmit it to fix some other things.

RE: [PATCH 15/39] staging: comedi: comedi_fops: remove use of DPRINTK

2013-11-25 Thread Hartley Sweeten
On Monday, November 25, 2013 12:54 PM, Greg KH wrote: On Fri, Nov 22, 2013 at 10:47:40AM -0700, H Hartley Sweeten wrote: Use dev_dbg(), or pr_debug() when dev is not valid, instead of the DPRINTK macro to output the comedi debugging information. Remove the debug messages for allocation

Re: [PATCH 15/39] staging: comedi: comedi_fops: remove use of DPRINTK

2013-11-25 Thread Greg KH
On Mon, Nov 25, 2013 at 08:16:32PM +, Hartley Sweeten wrote: On Monday, November 25, 2013 12:54 PM, Greg KH wrote: On Fri, Nov 22, 2013 at 10:47:40AM -0700, H Hartley Sweeten wrote: Use dev_dbg(), or pr_debug() when dev is not valid, instead of the DPRINTK macro to output the comedi

Re: [PATCH] staging: slicoss: fix possible missing iounmap

2013-11-25 Thread Greg KH
On Fri, Nov 15, 2013 at 11:30:07PM +0100, Laurent Navet wrote: if slic_card_locate failed, memmapped_ioaddr is not unmapped. Signed-off-by: Laurent Navet laurent.na...@gmail.com --- drivers/staging/slicoss/slicoss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) This patch causes a

[PATCH 1/5] staging: dwc2: remove stale comment after changing function to void

2013-11-25 Thread Paul Zimmerman
Remove stale comment after changing dwc2_set_parameters() to void function Signed-off-by: Paul Zimmerman pa...@synopsys.com --- drivers/staging/dwc2/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dwc2/core.c b/drivers/staging/dwc2/core.c index

[PATCH 0/5] staging: dwc2: more fixes/cleanups for DWC2 driver

2013-11-25 Thread Paul Zimmerman
My previous patch series staging: dwc2: cleanups for DWC2 driver had a couple of minor problems. This series fixes them up, and also adds a couple more fixes/cleanups suggested by Dan Carpenter. Paul Zimmerman (5): staging: dwc2: remove stale comment after changing function to void staging:

[PATCH 2/5] staging: dwc2: fix screwup in checking return value

2013-11-25 Thread Paul Zimmerman
Fix screwup in checking return value from dwc2_is_controller_alive() Signed-off-by: Paul Zimmerman pa...@synopsys.com --- drivers/staging/dwc2/hcd_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dwc2/hcd_intr.c b/drivers/staging/dwc2/hcd_intr.c index

[PATCH 5/5] staging: dwc2: move function to more logical place

2013-11-25 Thread Paul Zimmerman
The function dwc2_get_hwparams() was in an awkward place, mixed in with the dwc2_set_param* functions. Move it down after those functions. Signed-off-by: Paul Zimmerman pa...@synopsys.com --- drivers/staging/dwc2/core.c | 124 ++-- 1 file changed, 62

[PATCH 4/5] staging: dwc2: fix useless test for non-0

2013-11-25 Thread Paul Zimmerman
In dwc2_xfercomp_isoc_split_in(), the function has already exited if len == 0, so no need to test it again Reported-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Paul Zimmerman pa...@synopsys.com --- drivers/staging/dwc2/hcd_intr.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/2] staging: as102: Remove ENTER/LEAVE debugging macros

2013-11-25 Thread Mauro Dreissig
Too much noise, also does not cover every possible code paths. Signed-off-by: Mauro Dreissig muk...@gmail.com --- drivers/staging/media/as102/as102_drv.c| 10 -- drivers/staging/media/as102/as102_drv.h| 8 drivers/staging/media/as102/as102_fe.c | 26

Re: [PATCH 1/2] staging: as102: Declare local variables as static

2013-11-25 Thread Greg Kroah-Hartman
On Mon, Nov 25, 2013 at 05:10:52PM -0500, Mauro Dreissig wrote: As pointed out by sparse: drivers/staging/media/as102/as102_fw.c:29:6: warning: symbol 'as102_st_fw1' was not declared. Should it be static? drivers/staging/media/as102/as102_fw.c:30:6: warning: symbol 'as102_st_fw2' was not

Re: [PATCH 2/2] staging: as102: Remove ENTER/LEAVE debugging macros

2013-11-25 Thread Greg Kroah-Hartman
On Mon, Nov 25, 2013 at 05:10:53PM -0500, Mauro Dreissig wrote: Too much noise, also does not cover every possible code paths. Signed-off-by: Mauro Dreissig muk...@gmail.com Acked-by: Greg Kroah-Hartman gre...@linuxfoundation.org ___ devel mailing

[PATCH] staging: dwc2: set up all module params

2013-11-25 Thread Stephen Warren
The DWC2 USB controller in the BCM2835 (Raspberry Pi) needs some non- default parameters. Select these based on the compatible value from the DT node. For all other HW, fall back to the default parameters currently in use. The values in params_bcm2835[] were posted to the mailing list by Paul