Re: [PATCH 05/12] staging:tidspbridge - set5 remove hungarian from structs

2010-12-15 Thread Dan Carpenter
have been easier to with Coccinelle instead of by hand... regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/4] staging: omap-thermal: Correct checkpatch.pl warnings

2012-09-12 Thread Dan Carpenter
randomly to the left. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/4] staging: omap-thermal: Correct checkpatch.pl warnings

2012-09-12 Thread Dan Carpenter
On Wed, Sep 12, 2012 at 11:11:27AM +0300, Dan Carpenter wrote: On Tue, Sep 11, 2012 at 07:06:52PM +0300, Eduardo Valentin wrote: From: J Keerthy j-keer...@ti.com Removes checkpatch warnings on omap-bandgap.c. Which checkpatch.pl warnings

Re: [balbi-usb:merge-result-for-greg 66/99] drivers/usb/core/hub.c:2654 usb_get_hub_port_power_state() error: doing dma on the stack ((null))

2012-09-12 Thread Dan Carpenter
to vmalloc()ed memory yet? regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/4] staging: omap-thermal: Correct checkpatch.pl warnings

2012-09-12 Thread Dan Carpenter
On Wed, Sep 12, 2012 at 12:19:00PM +0300, Valentin, Eduardo wrote: Hello Dan, On Wed, Sep 12, 2012 at 11:26 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Wed, Sep 12, 2012 at 11:11:27AM +0300, Dan Carpenter wrote: On Tue, Sep 11, 2012 at 07:06:52PM +0300, Eduardo Valentin wrote

[patch] dwc3: add a kfree() on error to dwc3_testmode_open()

2011-08-26 Thread Dan Carpenter
We may as well fix this potential leak so we don't have to listen to the static checkers complain. Signed-off-by: Dan Carpenter erro...@gmail.com --- Btw. This function returns -EBUSY on success. Was that really what you want? diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3

[patch] usb: phy: signedness bug in suspend/resume

2012-09-14 Thread Dan Carpenter
ret should be signed here for the error handling to work. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/usb/phy/omap-usb2.c b/drivers/usb/phy/omap-usb2.c index 15ab3d6..d36c282 100644 --- a/drivers/usb/phy/omap-usb2.c +++ b/drivers/usb/phy/omap-usb2.c @@ -120,7

Re: [PATCH 3/5] staging: tidspbridge: Lindent to drv_interface.c

2012-01-30 Thread Dan Carpenter
CodingStyle, same for the other similar changes. It doesn't mean you have to right justify things, it just means indented. The original code is fine here and the new code is fine here. It's up to whoever writes the code to decide. regards, dan carpenter signature.asc Description: Digital

Re: [PATCH v2 4/8] staging: tidspbridge: silence the compiler

2012-01-31 Thread Dan Carpenter
-vm_page_prot, vma-vm_flags); regards, dan carpenter signature.asc Description: Digital signature

Re: [PATCH 1/2] staging: tidspbridge: fix bridge_open memory leaks

2012-01-31 Thread Dan Carpenter
/stable_kernel_rules.txt. It's short. regards, dan carpenter signature.asc Description: Digital signature

Re: [PATCH 2/2] staging: tidspbridge: fix incorrect free to drv_datap

2012-01-31 Thread Dan Carpenter
? Probably that's not stable material. regards, dan carpenter signature.asc Description: Digital signature

Re: [PATCH v2 4/8] staging: tidspbridge: silence the compiler

2012-01-31 Thread Dan Carpenter
On Tue, Jan 31, 2012 at 12:19:52PM +0100, Víctor M. Jáquez L. wrote: On Tue, Jan 31, 2012 at 11:05:43AM +0300, Dan Carpenter wrote: On Tue, Jan 31, 2012 at 12:12:20AM +0100, Víctor Manuel Jáquez Leal wrote: Silence the warning when compiling drv_interface.c Signed-off-by: Víctor

Re: [PATCH 1/2] staging: tidspbridge: fix bridge_open memory leaks

2012-01-31 Thread Dan Carpenter
On Tue, Jan 31, 2012 at 12:09:17PM -0600, Omar Ramirez Luna wrote: On Tue, Jan 31, 2012 at 2:17 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Mon, Jan 30, 2012 at 07:20:17PM -0600, Omar Ramirez Luna wrote: There are two members of pr_ctxt allocated during bridge_open that are never

Re: [PATCH 2/2] staging: tidspbridge: fix incorrect free to drv_datap

2012-01-31 Thread Dan Carpenter
On Tue, Jan 31, 2012 at 12:19:00PM -0600, Ramirez Luna, Omar wrote: On Tue, Jan 31, 2012 at 2:21 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Mon, Jan 30, 2012 at 07:20:18PM -0600, Omar Ramirez Luna wrote: This structure is still used after it has been freed, since it is being

Re: [PATCH 2/2] staging: tidspbridge: fix incorrect free to drv_datap

2012-01-31 Thread Dan Carpenter
On Tue, Jan 31, 2012 at 09:39:00PM +0200, Felipe Contreras wrote: On Tue, Jan 31, 2012 at 8:43 PM, Dan Carpenter dan.carpen...@oracle.com wrote: How often do people rmmod things on a production system?  Hopefully, never right? That's right... At least in recent versions

[patch] usb: dwc3: make dwc3_get_device_id() return the id

2012-02-04 Thread Dan Carpenter
We always return zero instead of the id we found. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- I don't have this hardware so it's not tested. diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 7c9df63..73df745 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb

Re: [PATCH] staging: tidspbridge: enable watchdog by default

2012-02-10 Thread Dan Carpenter
message and handle the condition instead of printing a stack dump? The user should be triggering stack dumps. What on earth? regards, dan carpenter signature.asc Description: Digital signature

Re: [PATCH] staging: tidspbridge: enable watchdog by default

2012-02-10 Thread Dan Carpenter
On Fri, Feb 10, 2012 at 09:42:32PM +0200, Felipe Contreras wrote: On Fri, Feb 10, 2012 at 8:00 PM, Dan Carpenter dan.carpen...@oracle.com wrote: On Fri, Feb 10, 2012 at 01:30:48AM +0200, Felipe Contreras wrote: It's not an oops, it's a warning, and again, it depends on the firmware being

[patch] OMAPDSS: reading past end of array in dispc_dump_regs()

2012-12-14 Thread Dan Carpenter
We added another kind of plane in 66a0f9e4ac OMAPDSS: Use WB fifo for GFX overlay so this array needs a new entry as well. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Static checker work. I don't have a way to test this. diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video

Re: [patch] OMAPDSS: reading past end of array in dispc_dump_regs()

2012-12-17 Thread Dan Carpenter
(). Anything higher than OMAP_DSS_WB will trigger a BUG() in DISPC_FIR_COEF_H_OFFSET(). So it's not rock hard logic at all. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 0/5] staging: tidspbridge: for 3.9

2013-01-20 Thread Dan Carpenter
. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/5] staging: tidspbridge: for 3.9

2013-01-21 Thread Dan Carpenter
On Mon, Jan 21, 2013 at 10:25:24AM +0300, Dan Carpenter wrote: On Thu, Jan 17, 2013 at 04:47:46PM -0800, Greg Kroah-Hartman wrote: On Thu, Jan 10, 2013 at 03:36:57AM -0600, Omar Ramirez Luna wrote: Patches for staging-next, fixing comments and suggestions provided by Chen Gang

Re: [PATCH 07/50] staging: omap-thermal: introduce RMW_BITS macro

2013-03-15 Thread Dan Carpenter
); omap_bandgap_writel(bg_ptr, r, reg); } It's called like: rmw_bits(bg_ptr, tsr-bgap_mask_ctrl, tsr-mask_freeze_mask, 1); regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 09/50] staging: omap-thermal: make a omap_bandgap_power with only one exit point

2013-03-15 Thread Dan Carpenter
is misleading and annoying. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 22/50] staging: omap-thermal: rewrite omap_bandgap_adc_to_mcelsius on kernel coding style

2013-03-16 Thread Dan Carpenter
On Fri, Mar 15, 2013 at 09:00:10AM -0400, Eduardo Valentin wrote: Follow Documentation/CodingStyle while doing omap_bandgap_adc_to_mcelsius. Someone should probably fix CodingStyle to be more clear. That's not what was intended at all... :/ regards, dan carpenter -- To unsubscribe from

Re: [PATCH 25/50] staging: omap-thermal: rewrite omap_bandgap_mcelsius_to_adc on kernel coding style

2013-03-16 Thread Dan Carpenter
it's misleading when it doesn't do anything. It's simpler if the code is simple. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 33/50] staging: omap-thermal: refactor APIs handling threshold values

2013-03-16 Thread Dan Carpenter
: return 0; } The bunny hop has introduced a bug and this always returns success. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 47/50] staging: omap-thermal: switch mutex to spinlock inside omap-bandgap

2013-03-16 Thread Dan Carpenter
, int val, if (ret 0) goto exit; - mutex_lock(bg_ptr-bg_mutex); + spin_lock(bg_ptr-lock); These need to disable interrupts because we take the spin lock in the IRQ handler. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH 00/50] staging: omap-thermal: several code refactoring

2013-03-16 Thread Dan Carpenter
patch 33 and 47? You should probably be able to redo those without changing the rest. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 09/50] staging: omap-thermal: make a omap_bandgap_power with only one exit point

2013-03-16 Thread Dan Carpenter
On Sat, Mar 16, 2013 at 08:39:11AM -0400, Eduardo Valentin wrote: Hey Dan, On 15-03-2013 17:22, Dan Carpenter wrote: On Fri, Mar 15, 2013 at 08:59:57AM -0400, Eduardo Valentin wrote: Change the way the omap_bandgap_power is written so that it has only one exit entry (Documentation

Re: [PATCH 33/50] staging: omap-thermal: refactor APIs handling threshold values

2013-03-16 Thread Dan Carpenter
On Sat, Mar 16, 2013 at 08:49:20AM -0400, Eduardo Valentin wrote: On 16-03-2013 04:39, Dan Carpenter wrote: On Fri, Mar 15, 2013 at 09:00:21AM -0400, Eduardo Valentin wrote: if (ret) { dev_err(bg_ptr-dev, failed to read thot\n); - return -EIO; + ret = -EIO

Re: [PATCH 07/50] staging: omap-thermal: introduce RMW_BITS macro

2013-03-16 Thread Dan Carpenter
rmw_bits. And for that you need the sensor index. No. I'm suggesting that you re-write the driver to pass the tsr pointer directly instead of the index. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord

Re: [PATCH 47/50] staging: omap-thermal: switch mutex to spinlock inside omap-bandgap

2013-03-16 Thread Dan Carpenter
On Sat, Mar 16, 2013 at 08:41:30AM -0400, Eduardo Valentin wrote: On 16-03-2013 04:59, Dan Carpenter wrote: On Fri, Mar 15, 2013 at 09:00:35AM -0400, Eduardo Valentin wrote: @@ -502,9 +504,9 @@ int _omap_bandgap_write_threshold(struct omap_bandgap *bg_ptr, int id, int val, if (ret 0

Re: [PATCH 1/8] staging: omap-thermal: fix return value

2013-03-18 Thread Dan Carpenter
Thanks. Acked-by: Dan Carpenter dan.carpen...@orcle.com regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/8] staging: omap-thermal: use spin_lock_irqsave inside IRQ handler

2013-03-18 Thread Dan Carpenter
an idiot. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 4/8] staging: rename omap-thermal driver to ti-soc-thermal

2013-03-18 Thread Dan Carpenter
-off-by line so that git am doesn't include the diff stat in the changelog. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/8] staging: omap-thermal: use spin_lock_irqsave inside IRQ handler

2013-03-18 Thread Dan Carpenter
On Mon, Mar 18, 2013 at 03:38:38PM -0400, Eduardo Valentin wrote: On 18-03-2013 15:16, Dan Carpenter wrote: On Mon, Mar 18, 2013 at 10:59:10AM -0400, Eduardo Valentin wrote: Even if the IRQ is not firing because it is ONE_SHOT and disable at INTC level, the IRQ handler must use

Re: [PATCHv2 00/12] staging: [omap,ti-soc]-thermal: fixes and renaming

2013-03-20 Thread Dan Carpenter
These look nice. Thanks for breaking up the move and api rename into separate patches. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

[patch] usb: phy: signedness bugs in suspend/resume functions

2013-08-21 Thread Dan Carpenter
ret needs to be signed for the error handling to work. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- I can't compile this. diff --git a/drivers/usb/phy/phy-omap-usb2.c b/drivers/usb/phy/phy-omap-usb2.c index 844ab68..d266861 100644 --- a/drivers/usb/phy/phy-omap-usb2.c +++ b/drivers

[patch] mmc: omap_hsmmc: precedence bug in omap_hsmmc_context_restore()

2013-08-22 Thread Dan Carpenter
'!' has higher precedence than '' so this doesn't work as intended although since RESETDONE is 1 it would work if none of the other bits are set. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Untested. diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index

re: OMAPDSS: remove dispc's dependency to VENC/HDMI

2013-08-26 Thread Dan Carpenter
dispc_set_tv_pclk(t-timings.pixel_clock * 1000); ^^ Patch added a dereference. 673 674 mutex_unlock(hdmi.lock); regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message

re: ARM: OMAP: mcbsp: Make wakeup control generic

2013-11-06 Thread Dan Carpenter
/* Disable wakeup behavior */ 590 if (mcbsp-pdata-has_wakeup) Patch introduces an unchecked dereference. 591 MCBSP_WRITE(mcbsp, WAKEUPEN, 0); 592 regards, dan carpenter -- To unsubscribe from this list: send the line

re: ARM: OMAP2+: Powerdomain: Remove the need to always have a voltdm associated to a pwrdm

2013-11-06 Thread Dan Carpenter
-state_counter[pwrdm-state] = 1; regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

re: mmc: omap: Fix DMA configuration to not rely on device id

2013-12-02 Thread Dan Carpenter
err_free_mem_region: 1468 release_mem_region(res-start, resource_size(res)); ^^ Existing unchecked dereferences. 1469 return ret; 1470 } regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux

Re: [patch] mmc: omap_hsmmc: precedence bug in omap_hsmmc_context_restore()

2014-01-30 Thread Dan Carpenter
On Thu, Aug 22, 2013 at 08:16:28PM +0530, Balaji T K wrote: On Thursday 22 August 2013 06:26 PM, Dan Carpenter wrote: '!' has higher precedence than '' so this doesn't work as intended although since RESETDONE is 1 it would work if none of the other bits are set. Hi Dan, Thanks

[patch 1/2] mmc: omap_hsmmc: remove a duplicative test

2014-01-30 Thread Dan Carpenter
Static checkers complain that testing for both next and !next is duplicative. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 2a629fbde613..bfb0dbd052c0 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers

[patch 2/2] mmc: omap_hsmmc: checking for ERR_PTR instead of NULL

2014-01-30 Thread Dan Carpenter
The of_get_hsmmc_pdata() function returns NULL on error, it doesn't return ERR_PTRs. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index bfb0dbd052c0..76dbc7b759c2 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b

re: usb: musb: omap: Add device tree support for omap musb glue

2014-06-10 Thread Dan Carpenter
. 570 of_property_read_u32(np, ram-bits, (u32 *)config-ram_bits); 571 of_property_read_u32(np, power, (u32 *)pdata-power); regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord

[patch] usb: dwc3: omap: signedness bug in dwc3_omap_set_utmi_mode()

2014-07-31 Thread Dan Carpenter
ret should be signed. It's only used for zero and negative error codes. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index ef4936f..9dcfbe7 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3

re: OMAPDSS: HDMI: Add OMAP5 HDMI support

2014-12-03 Thread Dan Carpenter
left 2 */ 734 REG_FLD_MOD(base, HDMI_CORE_FC_AUDSCHNLS(6), 5, 3, 0); 735 /* Channel number left 3*/ regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http

[patch] OMAPDSS: pll: NULL dereference in error handling

2014-12-16 Thread Dan Carpenter
The regulator_disable() doesn't accept NULL pointers. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/video/fbdev/omap2/dss/pll.c b/drivers/video/fbdev/omap2/dss/pll.c index 50bc62c5..335ffac 100644 --- a/drivers/video/fbdev/omap2/dss/pll.c +++ b/drivers/video/fbdev

[patch] OMAPDSS: DSS: fix a warning message

2015-12-04 Thread Dan Carpenter
The WARN() macro has to take a condition. The current code will just print the stack trace and the function name instead of the intended warning message. Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> diff --git a/drivers/video/fbdev/omap2/dss/dss.h b/drivers/video/fbdev/oma

Re: [PATCH v4 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Dan Carpenter
ble. It's useful on by itself. I always put the person who wrote the original patch in the To: header so they can review and comment if I have made a mistake. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[patch] OMAPDSS: DSI: cleanup DSI_IRQ_ERROR_MASK define

2015-11-23 Thread Dan Carpenter
DSI_IRQ_SYNC_LOST was ORed twice so we can remove one. Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> diff --git a/drivers/video/fbdev/omap2/dss/dsi.c b/drivers/video/fbdev/omap2/dss/dsi.c index b3606de..e86df6d 100644 --- a/drivers/video/fbdev/omap2/dss/dsi.c +++ b/drivers/video