Re: [PATCH v3 1/2] mfd: rtsx: reduce code duplication in rtl8411

2013-12-16 Thread Dan Carpenter
On Tue, Dec 17, 2013 at 10:36:58AM +0800, micky_ch...@realsil.com.cn wrote: > diff --git a/drivers/mfd/rtsx_pcr.h b/drivers/mfd/rtsx_pcr.h > index 947e79b..26b52ec 100644 > --- a/drivers/mfd/rtsx_pcr.h > +++ b/drivers/mfd/rtsx_pcr.h > @@ -63,4 +63,12 @@ static inline u8 map_sd_drive(int idx) > #de

Re: [PATCH 0/4] Fix some bugs/races in imx-drm

2013-12-16 Thread Sascha Hauer
On Mon, Dec 16, 2013 at 11:33:01AM +, Russell King - ARM Linux wrote: > The following patch series fixes some bugs and races in the imx-drm > code, which should probably be applied to an -rc kernel. > > drivers/staging/imx-drm/imx-drm-core.c | 21 - > drivers/staging/im

Re: [PATCH 0/8] Fix some bugs/races in imx-drm

2013-12-16 Thread Shawn Guo
On Mon, Dec 16, 2013 at 12:38:23PM +, Russell King - ARM Linux wrote: > Russell King (8): > imx-drm: imx-drm-core: fix error cleanup path for imx_drm_add_crtc() > imx-drm: imx-drm-core: fix DRM cleanup paths > imx-drm: fix missing symbol exports Except the little doubt I repl

Re: [PATCH 3/4] imx-drm: fix missing symbol exports

2013-12-16 Thread Shawn Guo
On Mon, Dec 16, 2013 at 11:34:05AM +, Russell King wrote: > Trying to build a modular imx-drm results in a number of missing symbol > exports, caused by the recent changes to this driver. Add the necessary > exports, and the missing MODULE_LICENSE() tag. Since commit 9c74360 (staging: imx-drm

[PATCH 4/8] staging: dgap: Fixed trailing white space in digi.h

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within digi.h Signed-off-by: Masanari Iida --- drivers/staging/dgap/digi.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/dgap/digi.h b/drivers/staging/dgap/digi.

[PATCH 7/8] staging: dgap: Fixed trailing white space in dgap_sysfs.c

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within dgap_sysfs.c --- drivers/staging/dgap/dgap_sysfs.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/dgap/dgap_sysfs.c b/drivers/staging/dgap/dgap_sysfs.c index 7f4ec9a..a

[PATCH 1/8] staging: dgap: Fixed trailing white space

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within dgap_downld.h and dgap_sysfs.h. Signed-off-by: Masanari Iida --- drivers/staging/dgap/dgap_downld.h | 4 ++-- drivers/staging/dgap/dgap_sysfs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dri

[PATCH 3/8] staging: dgap: Fixed trailing white space

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within dgap_fep5.h Signed-off-by: Masanari Iida --- drivers/staging/dgap/dgap_fep5.h | 45 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/drivers/staging/dgap/dgap_fep5

[PATCH 8/8] staging: dgap: Fixed trailing white space in dgap_parse.c

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within dgap_parse.c Signed-off-by: Masanari Iida --- drivers/staging/dgap/dgap_parse.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/dgap/dgap_parse.c b/drivers/staging/d

[PATCH 6/8] staging: dgap: Fixed trailing white space in dgap_driver.c

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within dgap_driver.c Signed-off-by: Masanari Iida --- drivers/staging/dgap/dgap_driver.c | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/staging/dgap/dgap_dr

[PATCH 5/8] staging: dgap: Fixed trailing white space in dgap_fep5.c

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within dgap_fep5.c Signed-off-by: Masanari Iida --- drivers/staging/dgap/dgap_fep5.c | 86 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/drivers/staging/dgap/dgap_fep5

[PATCH 2/8] staging: dgap: Fixed trailing white space

2013-12-16 Thread Masanari Iida
This patch fixes "ERROR: trailing whitespace" found by checkpatch.pl, within dgap_driver.h Signed-off-by: Masanari Iida --- drivers/staging/dgap/dgap_driver.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/dgap/dgap_driver.h b/driver

[PATCH -next] gpu: ion: fix sparse non static symbol warnings

2013-12-16 Thread Wei Yongjun
From: Wei Yongjun Fixes the following sparse warnings: drivers/staging/android/ion/tegra/tegra_ion.c:23:19: warning: symbol 'idev' was not declared. Should it be static? drivers/staging/android/ion/tegra/tegra_ion.c:24:19: warning: symbol 'tegra_user_mapper' was not declared. Should it be stat

[PATCH -next] gpu: ion: use module_platform_driver to simplify the code

2013-12-16 Thread Wei Yongjun
From: Wei Yongjun module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun --- drivers/staging/android/ion/tegra/tegra_ion.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/staging/android/ion/tegra/te

[PATCH v3 1/2] mfd: rtsx: reduce code duplication in rtl8411

2013-12-16 Thread micky_ching
From: Micky Ching in order to remove duplicated code in rtl8411, we make 8411 as the base init params, and other like-8411 chips will just change the different value with 8411, this can save some source code. Signed-off-by: Lee Jones Signed-off-by: Micky Ching --- drivers/mfd/rtl8411.c | 6

[PATCH v3 0/2] mfd: rtsx: decrease driver size and add new device

2013-12-16 Thread micky_ching
From: Micky Ching With the recent added support request of yet another device, the burden of duplicated code was becoming a little messy. To rectify is, we init rtl8411-like chips to 8411 param first, then modify the different values according each chip. And rtl8402 is supported from this patch.

[PATCH v3 2/2] mfd: rtsx: add card reader rtl8402

2013-12-16 Thread micky_ching
From: Micky Ching Add card reader rtl8042, rtl8402 is much like rtl8411, so just add it to rtl8411.c Signed-off-by: Micky Ching --- drivers/mfd/rtl8411.c | 28 drivers/mfd/rtsx_pcr.c |5 + drivers/mfd/rtsx_pcr.h |1 + 3 files changed, 30 insertions(+

[patch] [media] v4l: omap4iss: use snprintf() to make smatch happy

2013-12-16 Thread Dan Carpenter
Smatch complains here because name is a 32 character buffer and we adding the "OMAP4 ISS " prefix as well for a total of 42 characters. The sd->name buffer can only hold 32 characters. I've changed it to use snprintf() to silence the overflow warning. Also I have removed the call to strlcpy() whi

[PATCH 0/3] rtl8188eu: cleanup

2013-12-16 Thread Matthias Wirth
This patchset cleans up the 2 files having the most checkpatch warnings/errors in the rtl8188eu driver. The intention is to improve the coding style according to guidelines. The 2 remaining warnings in osdep_service.h are macros requiring structural change accommpanied by modifying every use of t

[PATCH 1/3] rtl8188eu: fix whitespace and indentation

2013-12-16 Thread Matthias Wirth
Signed-off-by: Matthias Wirth Signed-off-by: Lukas Senger --- drivers/staging/rtl8188eu/include/osdep_service.h | 50 ++- drivers/staging/rtl8188eu/include/rtw_cmd.h | 103 +++--- 2 files changed, 80 insertions(+), 73 deletions(-) diff --git a/drivers/staging/rtl8

[PATCH 3/3] rtl8188eu: remove unused code

2013-12-16 Thread Matthias Wirth
These two macros needed reformatting but as they are not used anywhere we just removed them. Signed-off-by: Matthias Wirth Signed-off-by: Lukas Senger --- drivers/staging/rtl8188eu/include/osdep_service.h | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/staging/rtl8

[PATCH 2/3] rtl8188eu: fix coding style

2013-12-16 Thread Matthias Wirth
Signed-off-by: Matthias Wirth Signed-off-by: Lukas Senger --- drivers/staging/rtl8188eu/include/osdep_service.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h b/drivers/staging/rtl8188eu/include/osdep_service.h index eb8

[media] v4l: omap4iss: Restore irq flags correctly in omap4iss_video_buffer_next()

2013-12-16 Thread Dan Carpenter
The spin_lock_irqsave() macro is not nestable. The second call will overwrite the first record of "flags" so the IRQs will not be enabled correctly at the end of the function. I haven't looked at all the callers but it could be that this function is always called with interrupts disabled and the

[PATCH] staging: xillybus: Return -ENOMEM if *_iomap fails instead of 0

2013-12-16 Thread Eli Billauer
Bug fix: The error code was not set, so the error condition wasn't reflected in the return value. Reported-by: Wei Yongjun Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_of.c |2 +- drivers/staging/xillybus/xillybus_pcie.c |2 +- 2 files changed, 2 insertions(+), 2

Re: [v3.11][Regression] HID: hyperv: convert alloc+memcpy to memdup

2013-12-16 Thread Jiri Kosina
On Fri, 27 Sep 2013, Joseph Salisbury wrote: > >> commit b1a1442a23776756b254b69786848a94d92445ba > >> Author: Jiri Kosina > >> Date: Mon Jun 3 11:27:48 2013 +0200 > >> > >> HID: core: fix reporting of raw events > >> > >> Reverting this commit in v3.12-rc2 prevents the system from locking up

Re: [PATCH -next] staging: xillybus: fix error return code in xilly_probe()

2013-12-16 Thread Eli Billauer
Thanks for reporting this bug. The same bug exists in the driver for OF (xillybus_of.c). As for the choice of -EIO, I've surveyed several drivers calling of_iomap() and pci_iomap(), and it turns out that some fail on -ENOMEM, some on -EIO and some on -EBUSY. Personally, I'm inclined towards

Re: [PATCH 0/8] Fix some bugs/races in imx-drm

2013-12-16 Thread Russell King - ARM Linux
On Mon, Dec 16, 2013 at 11:33:01AM +, Russell King - ARM Linux wrote: > The following patch series fixes some bugs and races in the imx-drm > code, which should probably be applied to an -rc kernel. > > drivers/staging/imx-drm/imx-drm-core.c | 21 - > drivers/staging/im

[PATCH 5/8] imx-drm: imx-tve: don't call sleeping functions beneath enable_lock spinlock

2013-12-16 Thread Russell King
Enable lock claims that it is serializing tve_enable/disable calls. However, DRM already serialises mode sets with a mutex, which prevents encoder/connector functions being called concurrently. Secondly, holding a spinlock while calling clk_prepare_enable() is wrong; it will cause a might_sleep()

[PATCH 7/8] imx-drm: imx-drm-core: make imx_drm_crtc_register() safer

2013-12-16 Thread Russell King
imx_drm_crtc_register() doesn't clean up the CRTC upon failure, which leaves the CRTC attached to the DRM device. Also, it does setup after attaching the CRTC to the DRM device. Fix this by reordering the function such that we do the setup before drm_crtc_init(): this fixes both issues. Signed-o

[PATCH 8/8] imx-drm: imx-drm-core: improve safety of imx_drm_add_crtc()

2013-12-16 Thread Russell King
We must not add more CRTCs than we have declared to the vblank helpers, otherwise we overflow their arrays. Force failure if we exceed the number of CRTCs. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-)

[PATCH 6/8] imx-drm: imx-drm-core: use defined constant for number of CRTCs.

2013-12-16 Thread Russell King
We have this definition, there's no reason not to use it. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c index aff4

[PATCH 3/4] imx-drm: fix missing symbol exports

2013-12-16 Thread Russell King
Trying to build a modular imx-drm results in a number of missing symbol exports, caused by the recent changes to this driver. Add the necessary exports, and the missing MODULE_LICENSE() tag. Signed-off-by: Russell King --- drivers/staging/imx-drm/ipuv3-plane.c | 10 ++ 1 files changed

[PATCH 4/4] imx-drm: ipu-v3: fix potential CRTC device registration race

2013-12-16 Thread Russell King
Clean up the IPUv3 CRTC device registration; we don't need a separate function just to call platform_device_register_data(), and we don't need the return value converted at all. Update the IPU client id under a mutex, so that parallel probing doesn't race. Signed-off-by: Russell King --- driver

[PATCH 2/4] imx-drm: imx-drm-core: fix DRM cleanup paths

2013-12-16 Thread Russell King
We must call drm_vblank_cleanup() on the error cleanup and unload paths after we've had a successful call to drm_vblank_init(). Ensure that the calls are in the reverse order to the initialisation order. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 20 +

[PATCH 1/4] imx-drm: imx-drm-core: fix error cleanup path for imx_drm_add_crtc()

2013-12-16 Thread Russell King
imx_drm_add_crtc() was kfree'ing the imx_drm_crtc structure while leaving it on the list of CRTCs. Delete it from the list first. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/staging/imx-d

[PATCH 0/4] Fix some bugs/races in imx-drm

2013-12-16 Thread Russell King - ARM Linux
The following patch series fixes some bugs and races in the imx-drm code, which should probably be applied to an -rc kernel. drivers/staging/imx-drm/imx-drm-core.c | 21 - drivers/staging/imx-drm/ipu-v3/ipu-common.c | 32 +- drivers/staging/imx-drm

Re: [PATCH -next] staging: xillybus: fix error return code in xilly_probe()

2013-12-16 Thread Jingoo Han
On Monday, December 16, 2013 2:51 PM, Wei Yongjun wrote: > > From: Wei Yongjun > > Fix to return negative error code -EIO from the error handling > case instead of 0. > > Signed-off-by: Wei Yongjun > --- > drivers/staging/xillybus/xillybus_pcie.c | 2 +- It looks good. Reviewed-by: Jingoo Han

[PATCH] Staging: bcm: DDRInit: fixed bracing issues.

2013-12-16 Thread Gary Rookard
removed braces from single statement conditonals. if, else, while opening brace placement was moved to last on first line of each, and closing brace moved to first on new line to follow the linux kernel coding style thus removing checkpatch errors respectfully. Signed-off-by: Gary Alan Rookard -