[PATCH v2] gpu: host1x: Fix compiler errors by converting to dma_addr_t

2018-05-16 Thread Emil Goode
to dma_alloc_wc(). Also check pb->mapped for non-NULL in the destroy function as that is the right way of checking if dma_alloc_wc() was successful. Signed-off-by: Emil Goode <emil@goode.io> --- v2: - Change the phys member type instead of adding casts. - Check pb->mapped in the destroy f

[PATCH v2] gpu: host1x: Fix compiler errors by converting to dma_addr_t

2018-05-16 Thread Emil Goode
to dma_alloc_wc(). Also check pb->mapped for non-NULL in the destroy function as that is the right way of checking if dma_alloc_wc() was successful. Signed-off-by: Emil Goode --- v2: - Change the phys member type instead of adding casts. - Check pb->mapped in the destroy function as 0 is a valid

Re: [PATCH] gpu: host1x: Fix compiler errors

2018-05-15 Thread Emil Goode
Hello, On Mon, May 14, 2018 at 10:43:08AM +0200, Thierry Reding wrote: > On Mon, Mar 26, 2018 at 04:44:14PM +0200, Emil Goode wrote: > > The compiler is complaining with the following errors: > > > > drivers/gpu/host1x/cdma.c:94:48: error: > > passing argume

Re: [PATCH] gpu: host1x: Fix compiler errors

2018-05-15 Thread Emil Goode
Hello, On Mon, May 14, 2018 at 10:43:08AM +0200, Thierry Reding wrote: > On Mon, Mar 26, 2018 at 04:44:14PM +0200, Emil Goode wrote: > > The compiler is complaining with the following errors: > > > > drivers/gpu/host1x/cdma.c:94:48: error: > > passing argume

Re: [PATCH] gpu: host1x: Fix compiler errors

2018-03-26 Thread Emil Goode
Hello, On Mon, Mar 26, 2018 at 04:57:34PM +0200, Thierry Reding wrote: > On Mon, Mar 26, 2018 at 04:44:14PM +0200, Emil Goode wrote: > > The compiler is complaining with the following errors: > > > > drivers/gpu/host1x/cdma.c:94:48: error: > > passing argume

Re: [PATCH] gpu: host1x: Fix compiler errors

2018-03-26 Thread Emil Goode
Hello, On Mon, Mar 26, 2018 at 04:57:34PM +0200, Thierry Reding wrote: > On Mon, Mar 26, 2018 at 04:44:14PM +0200, Emil Goode wrote: > > The compiler is complaining with the following errors: > > > > drivers/gpu/host1x/cdma.c:94:48: error: > > passing argume

[PATCH] gpu: host1x: Fix compiler errors

2018-03-26 Thread Emil Goode
of ‘dma_alloc_wc’ from incompatible pointer type [-Werror=incompatible-pointer-types] The expected pointer type of the third argument to dma_alloc_wc() is dma_addr_t but phys_addr_t is passed. Fix this by adding casts to the expected pointer type. Signed-off-by: Emil Goode <emil@goode

[PATCH] gpu: host1x: Fix compiler errors

2018-03-26 Thread Emil Goode
of ‘dma_alloc_wc’ from incompatible pointer type [-Werror=incompatible-pointer-types] The expected pointer type of the third argument to dma_alloc_wc() is dma_addr_t but phys_addr_t is passed. Fix this by adding casts to the expected pointer type. Signed-off-by: Emil Goode --- drivers/gpu/host1x

Re: wlcore: Fix regression in wlcore_set_partition()

2016-02-24 Thread Emil Goode
gt;>> introduced a > >>>>> regression causing the wlcore to time out and go into recovery. > >>>>> Reverting the > >>>>> changes regarding write of the last partition size brings the module > >>>>> back to > >>>

Re: wlcore: Fix regression in wlcore_set_partition()

2016-02-24 Thread Emil Goode
gt; >>>>> Reverting the > >>>>> changes regarding write of the last partition size brings the module > >>>>> back to > >>>>> it's functional state. > >>>>> > >>>>> Fixes: 3719c17e1816 (&quo

[PATCH] wlcore: Fix regression in wlcore_set_partition()

2016-02-09 Thread Emil Goode
onal state. Reported-by: Ross Green Signed-off-by: Emil Goode --- drivers/net/wireless/ti/wlcore/io.c | 8 drivers/net/wireless/ti/wlcore/io.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/io.c b/drivers/net/wireless/ti/wlcore/

[PATCH] wlcore: Fix regression in wlcore_set_partition()

2016-02-09 Thread Emil Goode
onal state. Reported-by: Ross Green <rgker...@gmail.com> Signed-off-by: Emil Goode <emil@goode.io> --- drivers/net/wireless/ti/wlcore/io.c | 8 drivers/net/wireless/ti/wlcore/io.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wire

Re: wl12xx regression on 4.5 (was: Re: linux-4.5-rc1 TI pandboard-es wifi wlcore locks and reset)

2016-02-08 Thread Emil Goode
Hello Ross, On Mon, Feb 08, 2016 at 07:26:34PM +1100, Ross Green wrote: > On Mon, Feb 8, 2016 at 9:05 AM, Emil Goode wrote: > > Hello, > > > > On Tue, Feb 02, 2016 at 05:05:38PM +0100, Sebastian Reichel wrote: > >> On Tue, Feb 02, 2016 at 04:41:13PM +1100, Ross Gre

Re: wl12xx regression on 4.5 (was: Re: linux-4.5-rc1 TI pandboard-es wifi wlcore locks and reset)

2016-02-08 Thread Emil Goode
Hello Ross, On Mon, Feb 08, 2016 at 07:26:34PM +1100, Ross Green wrote: > On Mon, Feb 8, 2016 at 9:05 AM, Emil Goode <emil@goode.io> wrote: > > Hello, > > > > On Tue, Feb 02, 2016 at 05:05:38PM +0100, Sebastian Reichel wrote: > >> On Tue, Feb 02, 2016 a

Re: wl12xx regression on 4.5 (was: Re: linux-4.5-rc1 TI pandboard-es wifi wlcore locks and reset)

2016-02-07 Thread Emil Goode
> Here is a dmesg dump in the attachment. > > >> > > > >> > Anyone have any ideas here? > > > > [...] > > > > If I get time, this evening, I'll see if I can give a bisect a try. > > On N950 [wl1271 via SPI, using extra patches to init f

Re: wl12xx regression on 4.5 (was: Re: linux-4.5-rc1 TI pandboard-es wifi wlcore locks and reset)

2016-02-07 Thread Emil Goode
N950 [wl1271 via SPI, using extra patches to init from DT] I get wifi > working again on 4.5-rc1 with 3719c17e1816 ("wlcore/wl18xx: fw logger > over sdio") reverted. Reverting the changes in wlcore_set_partition() as below seem to help. Best regards, Emil Goode 8<

Re: [PATCH] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-22 Thread Emil Goode
:58, Emil Goode wrote: > >In the brcmf_count_20mhz_channels function we are looping through a list > >of channels received from firmware. Since the index of the first channel > >is 0 the condition leads to an off by one bug. This is causing us to hit > &g

[PATCH v2] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-22 Thread Emil Goode
discovered the bug. Introduced by: commit b48d891676f756d48b4d0ee131e4a7a5d43ca417 ("brcmfmac: rework wiphy structure setup") Acked-by: Arend van Spriel Signed-off-by: Emil Goode --- v2: Added Arends "Acked-by" tag. drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c |

Re: [PATCH] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-22 Thread Emil Goode
Hello Arend, Ok I will resend with your ack. Best regards, Emil On Mon, Sep 22, 2014 at 11:49:56AM +0200, Arend van Spriel wrote: > On 09/21/14 00:58, Emil Goode wrote: > >In the brcmf_count_20mhz_channels function we are looping through a list > >of channels received from

Re: [PATCH] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-22 Thread Emil Goode
Hello Arend, Ok I will resend with your ack. Best regards, Emil On Mon, Sep 22, 2014 at 11:49:56AM +0200, Arend van Spriel wrote: On 09/21/14 00:58, Emil Goode wrote: In the brcmf_count_20mhz_channels function we are looping through a list of channels received from firmware. Since the index

[PATCH v2] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-22 Thread Emil Goode
discovered the bug. Introduced by: commit b48d891676f756d48b4d0ee131e4a7a5d43ca417 (brcmfmac: rework wiphy structure setup) Acked-by: Arend van Spriel ar...@broadcom.com Signed-off-by: Emil Goode emilgo...@gmail.com --- v2: Added Arends Acked-by tag. drivers/net/wireless/brcm80211/brcmfmac

Re: [PATCH] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-22 Thread Emil Goode
, Emil Goode wrote: In the brcmf_count_20mhz_channels function we are looping through a list of channels received from firmware. Since the index of the first channel is 0 the condition leads to an off by one bug. This is causing us to hit the WARN_ON_ONCE(1) calls in the brcmu_d11n_decchspec

[PATCH] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-20 Thread Emil Goode
discovered the bug. Introduced by: commit b48d891676f756d48b4d0ee131e4a7a5d43ca417 ("brcmfmac: rework wiphy structure setup") Signed-off-by: Emil Goode --- drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-20 Thread Emil Goode
discovered the bug. Introduced by: commit b48d891676f756d48b4d0ee131e4a7a5d43ca417 (brcmfmac: rework wiphy structure setup) Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] usb: usb5303: make use of uninitialized err variable

2014-07-10 Thread Emil Goode
Hello Greg and Geert, On Thu, Jul 10, 2014 at 09:38:00AM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > On Thu, Jul 10, 2014 at 12:46 AM, Greg Kroah-Hartman > wrote: > > On Mon, Jun 02, 2014 at 07:45:25PM +0200, Emil Goode wrote: > >> The variable err is not initia

Re: [PATCH] usb: usb5303: make use of uninitialized err variable

2014-07-10 Thread Emil Goode
Hello Greg and Geert, On Thu, Jul 10, 2014 at 09:38:00AM +0200, Geert Uytterhoeven wrote: Hi Greg, On Thu, Jul 10, 2014 at 12:46 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Mon, Jun 02, 2014 at 07:45:25PM +0200, Emil Goode wrote: The variable err is not initialized here

Re: [PATCH v2] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-06 Thread Emil Goode
Hello Maciej, I didn't know it was possible to go beyond commit 1da177e, thank you for the info. Best regards, Emil On Sun, Jul 06, 2014 at 12:16:38PM +0100, Maciej W. Rozycki wrote: > On Sun, 6 Jul 2014, Emil Goode wrote: > > > > > diff --git a/arch/mips/mm/tlb-r3k.c b/arch

Re: [PATCH v2] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-06 Thread Emil Goode
Hello Maciej, I didn't know it was possible to go beyond commit 1da177e, thank you for the info. Best regards, Emil On Sun, Jul 06, 2014 at 12:16:38PM +0100, Maciej W. Rozycki wrote: On Sun, 6 Jul 2014, Emil Goode wrote: diff --git a/arch/mips/mm/tlb-r3k.c b/arch/mips/mm/tlb-r3k.c

[PATCH] MIPS: Remove incorrect NULL check in local_flush_tlb_page()

2014-07-05 Thread Emil Goode
of local_flush_tlb_page() don't bother checking if vma is NULL, also vma is dereferenced before being passed to local_flush_tlb_page(), thus it is safe to remove this NULL check. Signed-off-by: Emil Goode --- arch/mips/mm/tlb-r3k.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips

Re: [PATCH v2] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-05 Thread Emil Goode
Hello, On Sat, Jul 05, 2014 at 09:10:44PM +0200, Jonas Gorski wrote: > On Sat, Jul 5, 2014 at 8:26 PM, Emil Goode wrote: > > We check that the struct vm_area_struct pointer vma is NULL and then > > dereference it a few lines below. The intent must have been to make sure > >

[PATCH v2] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-05 Thread Emil Goode
We check that the struct vm_area_struct pointer vma is NULL and then dereference it a few lines below. The intent must have been to make sure that vma is not NULL and then to check the value from cpu_context() for the condition to be true. Signed-off-by: Emil Goode --- v2: Updated the commit

[PATCH v2] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-05 Thread Emil Goode
We check that the struct vm_area_struct pointer vma is NULL and then dereference it a few lines below. The intent must have been to make sure that vma is not NULL and then to check the value from cpu_context() for the condition to be true. Signed-off-by: Emil Goode emilgo...@gmail.com --- v2

Re: [PATCH v2] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-05 Thread Emil Goode
Hello, On Sat, Jul 05, 2014 at 09:10:44PM +0200, Jonas Gorski wrote: On Sat, Jul 5, 2014 at 8:26 PM, Emil Goode emilgo...@gmail.com wrote: We check that the struct vm_area_struct pointer vma is NULL and then dereference it a few lines below. The intent must have been to make sure that vma

[PATCH] MIPS: Remove incorrect NULL check in local_flush_tlb_page()

2014-07-05 Thread Emil Goode
of local_flush_tlb_page() don't bother checking if vma is NULL, also vma is dereferenced before being passed to local_flush_tlb_page(), thus it is safe to remove this NULL check. Signed-off-by: Emil Goode emilgo...@gmail.com --- arch/mips/mm/tlb-r3k.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-04 Thread Emil Goode
Hello Jonas, On Fri, Jul 04, 2014 at 11:52:51PM +0200, Jonas Gorski wrote: > On Fri, Jul 4, 2014 at 7:07 PM, Emil Goode wrote: > > We check that the struct vm_area_struct pointer vma is NULL and > > then dereference it. The intent must have been to check that > > vma

Re: [PATCH v3] i2c: busses: i2c-pxa.c: Fix for possible null pointer dereferenc

2014-07-04 Thread Emil Goode
Hello, I noticed one more thing. On Fri, Jul 04, 2014 at 07:07:48PM +0200, Rickard Strandqvist wrote: > 2014-07-04 11:10 GMT+02:00 Emil Goode : > > Hello Rickard, > > > > Since this is a probe function there is also no need to release the devm_* > > resources in

[PATCH] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-04 Thread Emil Goode
We check that the struct vm_area_struct pointer vma is NULL and then dereference it. The intent must have been to check that vma is not NULL before we dereference it in the next condition. Signed-off-by: Emil Goode --- arch/mips/mm/tlb-r3k.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH v3] i2c: busses: i2c-pxa.c: Fix for possible null pointer dereferenc

2014-07-04 Thread Emil Goode
2,9 @@ static int i2c_pxa_probe(struct platform_device *dev) > eadapt: > if (!i2c->use_pio) > free_irq(irq, i2c); The free_irq() call should also be removed since devm_request_irq() was used. > -ereqirq: > - clk_disable_unprepare(i2c->clk); > -

Re: [PATCH] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-04 Thread Emil Goode
Hello Jonas, On Fri, Jul 04, 2014 at 11:52:51PM +0200, Jonas Gorski wrote: On Fri, Jul 4, 2014 at 7:07 PM, Emil Goode emilgo...@gmail.com wrote: We check that the struct vm_area_struct pointer vma is NULL and then dereference it. The intent must have been to check that vma is not NULL

Re: [PATCH v3] i2c: busses: i2c-pxa.c: Fix for possible null pointer dereferenc

2014-07-04 Thread Emil Goode
, resource_size(res)); +err_nothing_to_release: return ret; } Best regards, Emil Goode -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

[PATCH] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-04 Thread Emil Goode
We check that the struct vm_area_struct pointer vma is NULL and then dereference it. The intent must have been to check that vma is not NULL before we dereference it in the next condition. Signed-off-by: Emil Goode emilgo...@gmail.com --- arch/mips/mm/tlb-r3k.c |2 +- 1 file changed, 1

Re: [PATCH v3] i2c: busses: i2c-pxa.c: Fix for possible null pointer dereferenc

2014-07-04 Thread Emil Goode
Hello, I noticed one more thing. On Fri, Jul 04, 2014 at 07:07:48PM +0200, Rickard Strandqvist wrote: 2014-07-04 11:10 GMT+02:00 Emil Goode emilgo...@gmail.com: Hello Rickard, Since this is a probe function there is also no need to release the devm_* resources in the i2c_pxa_remove

Re: [PATCH] Staging: rtl8192e: Fix potential NULL pointer dereference

2014-07-02 Thread Emil Goode
Hello Greg, On Wed, Jul 02, 2014 at 09:33:34AM -0700, Greg Kroah-Hartman wrote: > On Wed, Jul 02, 2014 at 11:25:51AM +0200, Emil Goode wrote: > > We need to make sure the struct rtllib_device pointer ieee is not NULL > > after the goto rx_dropped label since it

[PATCH] Staging: rtl8192e: Fix potential NULL pointer dereference

2014-07-02 Thread Emil Goode
We need to make sure the struct rtllib_device pointer ieee is not NULL after the goto rx_dropped label since it is dereferenced there. Signed-off-by: Emil Goode --- drivers/staging/rtl8192e/rtllib_rx.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH] Staging: rtl8192e: Fix potential NULL pointer dereference

2014-07-02 Thread Emil Goode
We need to make sure the struct rtllib_device pointer ieee is not NULL after the goto rx_dropped label since it is dereferenced there. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/staging/rtl8192e/rtllib_rx.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] Staging: rtl8192e: Fix potential NULL pointer dereference

2014-07-02 Thread Emil Goode
Hello Greg, On Wed, Jul 02, 2014 at 09:33:34AM -0700, Greg Kroah-Hartman wrote: On Wed, Jul 02, 2014 at 11:25:51AM +0200, Emil Goode wrote: We need to make sure the struct rtllib_device pointer ieee is not NULL after the goto rx_dropped label since it is dereferenced there. Signed-off

[PATCH] [SCSI] qla2xxx: Remove duplicate __iomem annotation

2014-07-01 Thread Emil Goode
/scsi/qla2xxx/qla_dbg.c:632:22: warning: duplicate [noderef] drivers/scsi/qla2xxx/qla_target.c:1435:22: warning: duplicate [noderef] Introduced by commit: f73cb695d3eccd171f03ed194e72d67732b17487 ("[SCSI] qla2xxx: Add support for ISP2071.") Signed-off-by: Emil Goode --- drivers/sc

[PATCH] [SCSI] qla2xxx: Remove duplicate __iomem annotation

2014-07-01 Thread Emil Goode
/scsi/qla2xxx/qla_dbg.c:632:22: warning: duplicate [noderef] drivers/scsi/qla2xxx/qla_target.c:1435:22: warning: duplicate [noderef] Introduced by commit: f73cb695d3eccd171f03ed194e72d67732b17487 ([SCSI] qla2xxx: Add support for ISP2071.) Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers

[PATCH 2/2] [media] Cleanup line > 80 character violations

2014-06-24 Thread Emil Goode
This cleans up some line over 80 character violations. Signed-off-by: Emil Goode --- drivers/media/dvb-frontends/stb6100_cfg.h | 12 drivers/media/dvb-frontends/tda8261_cfg.h |9 ++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/media/dvb

[PATCH 1/2] [media] Remove checks of struct member addresses

2014-06-24 Thread Emil Goode
This removes checks of struct member addresses since they likely result in the condition always being true. Also in the stb6100_get_bandwidth and tda8261_get_bandwidth functions the pointers frontend_ops and tuner_ops are assigned the same addresses twice. Signed-off-by: Emil Goode --- drivers

[PATCH 2/2] [media] Cleanup line 80 character violations

2014-06-24 Thread Emil Goode
This cleans up some line over 80 character violations. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/media/dvb-frontends/stb6100_cfg.h | 12 drivers/media/dvb-frontends/tda8261_cfg.h |9 ++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git

[PATCH 1/2] [media] Remove checks of struct member addresses

2014-06-24 Thread Emil Goode
This removes checks of struct member addresses since they likely result in the condition always being true. Also in the stb6100_get_bandwidth and tda8261_get_bandwidth functions the pointers frontend_ops and tuner_ops are assigned the same addresses twice. Signed-off-by: Emil Goode emilgo

[PATCH] video: Remove kfree call since devm_kzalloc() is used

2014-06-20 Thread Emil Goode
We use devm_kzalloc() to allocate memory for the struct vt8500lcd_info pointer fbi, so there is no need to free it in vt8500lcd_remove(). Signed-off-by: Emil Goode --- drivers/video/fbdev/vt8500lcdfb.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b

[PATCH] video: Remove kfree call since devm_kzalloc() is used

2014-06-20 Thread Emil Goode
We use devm_kzalloc() to allocate memory for the struct vt8500lcd_info pointer fbi, so there is no need to free it in vt8500lcd_remove(). Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/video/fbdev/vt8500lcdfb.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video

[PATCH] usb: usb5303: make use of uninitialized err variable

2014-06-02 Thread Emil Goode
The variable err is not initialized here, this patch uses it to store an eventual error value from devm_clk_get(). Signed-off-by: Emil Goode --- drivers/usb/misc/usb3503.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb

[PATCH] NFC: st21nfca: Remove double assignment of .owner in struct device_driver

2014-06-02 Thread Emil Goode
The .owner member of struct device_driver is assigned THIS_MODULE twice. Introduced by: commit c44cb2edd01ca31471d9385f0895891b006ab904 ("NFC: dts: st21nfca: Add device-tree (Open Firmware) support to st21nfca") Signed-off-by: Emil Goode --- drivers/nfc/st21nfca/i2c.c |1 - 1 fi

[PATCH] stmmac: Remove spin_lock call in stmmac_get_pauseparam()

2014-06-02 Thread Emil Goode
: driver: stmicro: Remove some useless the lock protection This introduced the following sparse warning: drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:424:1: warning: context imbalance in 'stmmac_get_pauseparam' - different lock contexts for basic block Signed-off-by: Emil Goode

[PATCH] stmmac: Remove spin_lock call in stmmac_get_pauseparam()

2014-06-02 Thread Emil Goode
Signed-off-by: Emil Goode emilgo...@gmail.com --- Hello, Some spin_lock/unlock calls where also left behind in stmmac_ethtool_setsettings(), I'm not sure if it was intentional? Best regards, Emil Goode drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c |2 -- 1 file changed, 2 deletions

[PATCH] NFC: st21nfca: Remove double assignment of .owner in struct device_driver

2014-06-02 Thread Emil Goode
The .owner member of struct device_driver is assigned THIS_MODULE twice. Introduced by: commit c44cb2edd01ca31471d9385f0895891b006ab904 (NFC: dts: st21nfca: Add device-tree (Open Firmware) support to st21nfca) Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/nfc/st21nfca/i2c.c |1

[PATCH] usb: usb5303: make use of uninitialized err variable

2014-06-02 Thread Emil Goode
The variable err is not initialized here, this patch uses it to store an eventual error value from devm_clk_get(). Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/usb/misc/usb3503.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/misc

[PATCH v2] mfd: fix unintentional NULL check in menelaus_set_voltage()

2014-05-28 Thread Emil Goode
. commit 59a9f7a32adf6537b4e4db8ca204eeb77d7a634e ("mfd: menelaus: Use NULL instead of 0") Signed-off-by: Emil Goode --- v2: Changed (vtg_val == 0) to (!vtg_val) drivers/mfd/menelaus.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/menelaus.c b/d

Re: [PATCH] mfd: fix unintentional NULL check in menelaus_set_voltage()

2014-05-28 Thread Emil Goode
Hello, On Wed, May 28, 2014 at 04:20:11PM +0100, Lee Jones wrote: > On Wed, 28 May 2014, Emil Goode wrote: > > > The struct menelaus_vtg pointer vtg cannot be NULL here > > so the condition is never true and if it ever was true > > it would lead to a NULL pointer

[PATCH] mfd: fix unintentional NULL check in menelaus_set_voltage()

2014-05-28 Thread Emil Goode
. commit 59a9f7a32adf6537b4e4db8ca204eeb77d7a634e ("mfd: menelaus: Use NULL instead of 0") Signed-off-by: Emil Goode --- Hello, This is only build tested, it would be good to get a comment from someone who is familiar with this code. Found using coccinelle. Best regards, Emil Goode d

[PATCH] mfd: fix unintentional NULL check in menelaus_set_voltage()

2014-05-28 Thread Emil Goode
. commit 59a9f7a32adf6537b4e4db8ca204eeb77d7a634e (mfd: menelaus: Use NULL instead of 0) Signed-off-by: Emil Goode emilgo...@gmail.com --- Hello, This is only build tested, it would be good to get a comment from someone who is familiar with this code. Found using coccinelle. Best regards, Emil

Re: [PATCH] mfd: fix unintentional NULL check in menelaus_set_voltage()

2014-05-28 Thread Emil Goode
Hello, On Wed, May 28, 2014 at 04:20:11PM +0100, Lee Jones wrote: On Wed, 28 May 2014, Emil Goode wrote: The struct menelaus_vtg pointer vtg cannot be NULL here so the condition is never true and if it ever was true it would lead to a NULL pointer dereference when we goto label

[PATCH v2] mfd: fix unintentional NULL check in menelaus_set_voltage()

2014-05-28 Thread Emil Goode
. commit 59a9f7a32adf6537b4e4db8ca204eeb77d7a634e (mfd: menelaus: Use NULL instead of 0) Signed-off-by: Emil Goode emilgo...@gmail.com --- v2: Changed (vtg_val == 0) to (!vtg_val) drivers/mfd/menelaus.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/menelaus.c b

Re: [PATCH 1/3] driver core/platform: don't leak memory allocated for dma_mask

2014-05-26 Thread Emil Goode
Hello, On Mon, May 26, 2014 at 10:30:46PM +0300, Dan Carpenter wrote: > On Mon, May 26, 2014 at 06:41:21PM +0200, Emil Goode wrote: > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > > index 9e9227e..dd1fa07 100644 > > --- a/drivers/base/platform.c &

Re: [PATCH 1/3] driver core/platform: don't leak memory allocated for dma_mask

2014-05-26 Thread Emil Goode
Hello Russell, On Mon, May 26, 2014 at 05:51:05PM +0100, Russell King - ARM Linux wrote: > On Mon, May 26, 2014 at 06:41:21PM +0200, Emil Goode wrote: > > @@ -211,6 +215,7 @@ struct platform_device *platform_device_alloc(const > > char *name, int id) > >

[PATCH 2/3] driver core/platform: make .name of struct platform_object a C99 flexible array

2014-05-26 Thread Emil Goode
the original patch, updated changelog and generated new data structure layout info] Signed-off-by: Emil Goode --- drivers/base/platform.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index dd1fa07..ba98219 100644

[PATCH 3/3] ARM: imx: don't allocate memory for .dma_mask of struct device

2014-05-26 Thread Emil Goode
using platform_device_alloc() and the u64 .dma_mask of struct platform_object that it points to will be freed when the release callback function platform_device_release is called. Signed-off-by: Emil Goode --- arch/arm/mach-imx/devices/platform-ipu-core.c |5 - 1 file changed, 5 deletions

[PATCH 1/3] driver core/platform: don't leak memory allocated for dma_mask

2014-05-26 Thread Emil Goode
/3480961/ [5] http://lkml.kernel.org/r/1386886207-2735-1-git-send-email-ydrone...@opteya.com Cc: Yann Droneaud Cc: Uwe Kleine-König Cc: Dmitry Torokhov Cc: Greg Kroah-Hartman Signed-off-by: Yann Droneaud [Emil: split v4 of the patch in two and updated changelog] Signed-off-by: Emil Goode --- Hello

[PATCH 1/3] driver core/platform: don't leak memory allocated for dma_mask

2014-05-26 Thread Emil Goode
ydrone...@opteya.com [Emil: split v4 of the patch in two and updated changelog] Signed-off-by: Emil Goode emilgo...@gmail.com --- Hello Greg, The first two patches in the series are created from v4 of the original patch, since I have not changed how the code works I think it is correct to keep

[PATCH 3/3] ARM: imx: don't allocate memory for .dma_mask of struct device

2014-05-26 Thread Emil Goode
using platform_device_alloc() and the u64 .dma_mask of struct platform_object that it points to will be freed when the release callback function platform_device_release is called. Signed-off-by: Emil Goode emilgo...@gmail.com --- arch/arm/mach-imx/devices/platform-ipu-core.c |5 - 1 file

[PATCH 2/3] driver core/platform: make .name of struct platform_object a C99 flexible array

2014-05-26 Thread Emil Goode
dmitry.torok...@gmail.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Signed-off-by: Yann Droneaud ydrone...@opteya.com [Emil: split the original patch, updated changelog and generated new data structure layout info] Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/base/platform.c |4

Re: [PATCH 1/3] driver core/platform: don't leak memory allocated for dma_mask

2014-05-26 Thread Emil Goode
Hello Russell, On Mon, May 26, 2014 at 05:51:05PM +0100, Russell King - ARM Linux wrote: On Mon, May 26, 2014 at 06:41:21PM +0200, Emil Goode wrote: @@ -211,6 +215,7 @@ struct platform_device *platform_device_alloc(const char *name, int id) strcpy(pa-name, name

Re: [PATCH 1/3] driver core/platform: don't leak memory allocated for dma_mask

2014-05-26 Thread Emil Goode
Hello, On Mon, May 26, 2014 at 10:30:46PM +0300, Dan Carpenter wrote: On Mon, May 26, 2014 at 06:41:21PM +0200, Emil Goode wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 9e9227e..dd1fa07 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c

Re: [PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-24 Thread Emil Goode
ny one of the resulting two patches. Perhaps keeping this information in the changelog is a good reason for applying the patch as it is? (I have attached the patch in question) Best regards, Emil Goode >From 66b72cb8eb71974903dd40ed67a34412faf818f0 Mon Sep 17 00:00:00 2001 From: Yann Droneaud Date: Mo

Re: [PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-24 Thread Emil Goode
of the resulting two patches. Perhaps keeping this information in the changelog is a good reason for applying the patch as it is? (I have attached the patch in question) Best regards, Emil Goode From 66b72cb8eb71974903dd40ed67a34412faf818f0 Mon Sep 17 00:00:00 2001 From: Yann Droneaud ydrone...@opteya.com Date

Re: [PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-22 Thread Emil Goode
Hello Uwe, On Thu, May 22, 2014 at 08:10:24PM +0200, Uwe Kleine-König wrote: > Hello Emil, > > On Thu, May 22, 2014 at 07:51:19PM +0200, Emil Goode wrote: > > We forgot to free pdev->dev.dma_mask on error after > > having called the imx_alloc_mx3_camera function. &

[PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-22 Thread Emil Goode
We forgot to free pdev->dev.dma_mask on error after having called the imx_alloc_mx3_camera function. This patch introduces the imx_free_mx3_camera function that adds the missing kfree call and is practical for future usage with imx_alloc_mx3_camera(). Signed-off-by: Emil Goode --- arch/arm/m

Re: [PATCH] ARM: imx: add missing kfree call in error paths

2014-05-22 Thread Emil Goode
Hello Dan, On Thu, May 22, 2014 at 04:50:16PM +0300, Dan Carpenter wrote: > On Thu, May 22, 2014 at 03:14:42PM +0200, Emil Goode wrote: > > We forgot to free pdev->dev.dma_mask as it is not freed > > by platform_device_put(). > > > > Every function which calls imx

[PATCH] ARM: imx: add missing kfree call in error paths

2014-05-22 Thread Emil Goode
We forgot to free pdev->dev.dma_mask as it is not freed by platform_device_put(). Signed-off-by: Emil Goode --- arch/arm/mach-imx/mach-mx31_3ds.c|4 +++- arch/arm/mach-imx/mach-mx31moboard.c |4 +++- arch/arm/mach-imx/mach-mx35_3ds.c|4 +++- arch/arm/mach-imx/mach-pcm03

Re: [PATCH 2/2] ARM: imx: convert camera init to use platform_device_register_full()

2014-05-22 Thread Emil Goode
Hello Uwe, On Mon, May 19, 2014 at 08:27:22AM +0200, Uwe Kleine-König wrote: > Hello Emil, > > thanks for your effort. > > On Sun, May 18, 2014 at 10:51:00PM +0200, Emil Goode wrote: > > This converts the imx camera allocation and initialization

Re: [PATCH 2/2] ARM: imx: convert camera init to use platform_device_register_full()

2014-05-22 Thread Emil Goode
Hello Uwe, On Mon, May 19, 2014 at 08:27:22AM +0200, Uwe Kleine-König wrote: Hello Emil, thanks for your effort. On Sun, May 18, 2014 at 10:51:00PM +0200, Emil Goode wrote: This converts the imx camera allocation and initialization functions to use platform_device_register_full() thus

[PATCH] ARM: imx: add missing kfree call in error paths

2014-05-22 Thread Emil Goode
We forgot to free pdev-dev.dma_mask as it is not freed by platform_device_put(). Signed-off-by: Emil Goode emilgo...@gmail.com --- arch/arm/mach-imx/mach-mx31_3ds.c|4 +++- arch/arm/mach-imx/mach-mx31moboard.c |4 +++- arch/arm/mach-imx/mach-mx35_3ds.c|4 +++- arch/arm/mach

Re: [PATCH] ARM: imx: add missing kfree call in error paths

2014-05-22 Thread Emil Goode
Hello Dan, On Thu, May 22, 2014 at 04:50:16PM +0300, Dan Carpenter wrote: On Thu, May 22, 2014 at 03:14:42PM +0200, Emil Goode wrote: We forgot to free pdev-dev.dma_mask as it is not freed by platform_device_put(). Every function which calls imx31_alloc_mx3_camera() is buggy

[PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-22 Thread Emil Goode
We forgot to free pdev-dev.dma_mask on error after having called the imx_alloc_mx3_camera function. This patch introduces the imx_free_mx3_camera function that adds the missing kfree call and is practical for future usage with imx_alloc_mx3_camera(). Signed-off-by: Emil Goode emilgo...@gmail.com

Re: [PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-22 Thread Emil Goode
Hello Uwe, On Thu, May 22, 2014 at 08:10:24PM +0200, Uwe Kleine-König wrote: Hello Emil, On Thu, May 22, 2014 at 07:51:19PM +0200, Emil Goode wrote: We forgot to free pdev-dev.dma_mask on error after having called the imx_alloc_mx3_camera function. This patch introduces

Re: [PATCH 2/2] ARM: imx: convert camera init to use platform_device_register_full()

2014-05-20 Thread Emil Goode
Hello Uwe, Thank you for the review and sorry for the late response. On Mon, May 19, 2014 at 08:27:22AM +0200, Uwe Kleine-König wrote: > Hello Emil, > > thanks for your effort. > > On Sun, May 18, 2014 at 10:51:00PM +0200, Emil Goode wrote: > > This converts the

Re: [PATCH 2/2] ARM: imx: convert camera init to use platform_device_register_full()

2014-05-20 Thread Emil Goode
Hello Uwe, Thank you for the review and sorry for the late response. On Mon, May 19, 2014 at 08:27:22AM +0200, Uwe Kleine-König wrote: Hello Emil, thanks for your effort. On Sun, May 18, 2014 at 10:51:00PM +0200, Emil Goode wrote: This converts the imx camera allocation

[PATCH 0/2] ARM: imx: bug fix and convertion to platform_device_register_full()

2014-05-18 Thread Emil Goode
backporting and git history. Emil Goode (2): ARM: imx: fix error handling in ipu device registration ARM: imx: convert camera init to use platform_device_register_full() arch/arm/mach-imx/devices/platform-ipu-core.c | 43 + arch/arm/mach-imx/mach-mx31_3ds.c

[PATCH 2/2] ARM: imx: convert camera init to use platform_device_register_full()

2014-05-18 Thread Emil Goode
This converts the imx camera allocation and initialization functions to use platform_device_register_full() thus simplifying the code. Signed-off-by: Emil Goode --- Only build tested, unfortunately I currently don't have the hardware. arch/arm/mach-imx/devices/platform-ipu-core.c | 43

[PATCH 1/2 v4] ARM: imx: fix error handling in ipu device registration

2014-05-18 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. This bug was found using coccinelle. Signed-off-by: Emil Goode --- v4: Simplified version that just fixes the bug. Also updated the changelog. v3: Made subject line more specific. v2: Changed

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-18 Thread Emil Goode
() dma_declare_coherent_memory() platform_device_add() Sorry about the mistake! Best regards, Emil Goode -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html P

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-18 Thread Emil Goode
Hello Uwe, On Sat, May 17, 2014 at 09:05:46PM +0200, Uwe Kleine-König wrote: > Hello Emil, > > On Sat, May 17, 2014 at 05:35:40PM +0200, Emil Goode wrote: > > On Fri, May 16, 2014 at 09:31:39PM +0200, Uwe Kleine-König wrote: > > > On Fri, May 16, 2014 at 01:49:10PM +

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-18 Thread Emil Goode
Hello Uwe, On Sat, May 17, 2014 at 09:05:46PM +0200, Uwe Kleine-König wrote: Hello Emil, On Sat, May 17, 2014 at 05:35:40PM +0200, Emil Goode wrote: On Fri, May 16, 2014 at 09:31:39PM +0200, Uwe Kleine-König wrote: On Fri, May 16, 2014 at 01:49:10PM +0200, walter harms wrote: Am

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-18 Thread Emil Goode
() dma_declare_coherent_memory() platform_device_add() Sorry about the mistake! Best regards, Emil Goode -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

[PATCH 2/2] ARM: imx: convert camera init to use platform_device_register_full()

2014-05-18 Thread Emil Goode
This converts the imx camera allocation and initialization functions to use platform_device_register_full() thus simplifying the code. Signed-off-by: Emil Goode emilgo...@gmail.com --- Only build tested, unfortunately I currently don't have the hardware. arch/arm/mach-imx/devices/platform-ipu

[PATCH 1/2 v4] ARM: imx: fix error handling in ipu device registration

2014-05-18 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. This bug was found using coccinelle. Signed-off-by: Emil Goode emilgo...@gmail.com --- v4: Simplified version that just fixes the bug. Also updated the changelog. v3: Made subject line more

[PATCH 0/2] ARM: imx: bug fix and convertion to platform_device_register_full()

2014-05-18 Thread Emil Goode
backporting and git history. Emil Goode (2): ARM: imx: fix error handling in ipu device registration ARM: imx: convert camera init to use platform_device_register_full() arch/arm/mach-imx/devices/platform-ipu-core.c | 43 + arch/arm/mach-imx/mach-mx31_3ds.c

  1   2   3   >