[patch] staging: lustre: remove the CFS_HOP() macro

2015-01-21 Thread Dan Carpenter
CFS_HOP() is a terrible macro. It chops the struct member name in half so that it's not possible to use tools like grep or to search for how a function pointer is used. I removed a couple calls to: LASSERT(CFS_HOP(hs, put_locked) != NULL); because they isn't a need for them. Anyway der

[RESEND PATCH v2 6/9] mfd: rtsx: remove LCTLR defination

2015-01-21 Thread micky_ching
From: Micky Ching To enable/disable ASPM we should find LINK CONTROL register in PCI config space. All old chip use 0x80 address, but new chip may use another address, so we using pci_find_capability() to get LINK CONTROL address. rtsx_gops.c was removed, we consider to put some common operation

[RESEND PATCH v2 3/9] mfd: rtsx: update PETXCFG address

2015-01-21 Thread micky_ching
From: Micky Ching PETXCFG is defined at 0xFF03, the old 0xFE49 not used any more. Signed-off-by: Micky Ching Acked-by: Lee Jones --- drivers/mfd/rts5227.c| 6 ++ drivers/mfd/rts5249.c| 6 ++ include/linux/mfd/rtsx_pci.h | 2 +- 3 files changed, 5 insertions(+), 9 delet

[RESEND PATCH v2 1/9] mfd: rtsx: replace TAB by SPC after #define

2015-01-21 Thread micky_ching
From: Micky Ching Re-format coding-style, using uniform SPC after "#define" keyword instead of mixing using TAB and SPC. Signed-off-by: Micky Ching Acked-by: Lee Jones --- include/linux/mfd/rtsx_pci.h | 254 +-- 1 file changed, 127 insertions(+), 127 de

[RESEND PATCH v2 8/9] mfd: rtsx: add support for rts525A

2015-01-21 Thread micky_ching
From: Micky Ching add support for new chip rts525A. Signed-off-by: Micky Ching --- drivers/mfd/rts5249.c| 104 ++- drivers/mfd/rtsx_pcr.c | 13 -- drivers/mfd/rtsx_pcr.h | 1 + include/linux/mfd/rtsx_pci.h | 15 +++ 4 file

[RESEND PATCH v2 7/9] mfd: rtsx: add support for rts524A

2015-01-21 Thread micky_ching
From: Micky Ching add support for new chip rts524A. Signed-off-by: Micky Ching --- drivers/mfd/rts5249.c| 186 --- drivers/mfd/rtsx_pcr.c | 25 +- drivers/mfd/rtsx_pcr.h | 7 ++ include/linux/mfd/rtsx_pci.h | 125 ++

[RESEND PATCH v2 0/9] mfd: rtsx: add support for new rts524A and rts525A

2015-01-21 Thread micky_ching
From: Micky Ching resend: - add lee jones ack for some patch. v2: - remove debug info when access failed. - using macro list for phy register init. - rename function for multi chip prefix with rtsx_base_ - save pcie_cap offset when init chip, not calling pci_find_capacity() every time. - add pc

[RESEND PATCH v2 4/9] mfd: rtsx: update driving settings

2015-01-21 Thread micky_ching
From: Micky Ching update card drive settings, This setting can be used for rts5249 rts524A and rts525A. Signed-off-by: Micky Ching Acked-by: Lee Jones --- drivers/mfd/rts5249.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/rts5249.c b/drivers/mfd

[RESEND PATCH v2 9/9] mfd: rtsx: using pcr_dbg replace dev_dbg

2015-01-21 Thread micky_ching
From: Micky Ching pcr_dbg is a wrapper of dev_dbg, which can save some code, and help to enable/disable debug message static. Signed-off-by: Micky Ching Acked-by: Lee Jones --- drivers/mfd/rtl8411.c | 11 +-- drivers/mfd/rts5209.c | 4 ++-- drivers/mfd/rts5227.c | 4 ++-- drivers

[RESEND PATCH v2 2/9] mfd: rtsx: place register address and values togather

2015-01-21 Thread micky_ching
From: Micky Ching It is more readable to place register address and values define togather. The values define add two leading space indicate belong to the register address defined above. Signed-off-by: Micky Ching Acked-by: Lee Jones --- include/linux/mfd/rtsx_pci.h | 836 +++-

[RESEND PATCH v2 5/9] mfd: rtsx: update phy register

2015-01-21 Thread micky_ching
From: Micky Ching update phy register value and using direct value instead of macros. It is much easier to debug using constant value than a lot of macros. We usually need compare the value directly to check the configure. Signed-off-by: Micky Ching --- drivers/mfd/rts5249.c| 55 +

Re: [PATCH v2 0/9] mfd: rtsx: add support for new rts524A and rts525A

2015-01-21 Thread Lee Jones
Have you reworked all of these patches? If not, why haven't my Acks been carried forward? Please [RESEND] with the Acks applied. > From: Micky Ching > > v2: > - remove debug info when access failed. > - using macro list for phy register init. > - rename function for multi chip prefix with rtsx

[PATCH v2 7/9] mfd: rtsx: add support for rts524A

2015-01-21 Thread micky_ching
From: Micky Ching add support for new chip rts524A. Signed-off-by: Micky Ching --- drivers/mfd/rts5249.c| 186 --- drivers/mfd/rtsx_pcr.c | 25 +- drivers/mfd/rtsx_pcr.h | 7 ++ include/linux/mfd/rtsx_pci.h | 125 ++

[PATCH v2 9/9] mfd: rtsx: using pcr_dbg replace dev_dbg

2015-01-21 Thread micky_ching
From: Micky Ching pcr_dbg is a wrapper of dev_dbg, which can save some code, and help to enable/disable debug message static. Signed-off-by: Micky Ching --- drivers/mfd/rtl8411.c | 11 +-- drivers/mfd/rts5209.c | 4 ++-- drivers/mfd/rts5227.c | 4 ++-- drivers/mfd/rts5229.c | 4

[PATCH v2 0/9] mfd: rtsx: add support for new rts524A and rts525A

2015-01-21 Thread micky_ching
From: Micky Ching v2: - remove debug info when access failed. - using macro list for phy register init. - rename function for multi chip prefix with rtsx_base_ - save pcie_cap offset when init chip, not calling pci_find_capacity() every time. - add pcr->ops: write_phy/read_phy for special chip.

[PATCH v2 4/9] mfd: rtsx: update driving settings

2015-01-21 Thread micky_ching
From: Micky Ching update card drive settings, This setting can be used for rts5249 rts524A and rts525A. Signed-off-by: Micky Ching --- drivers/mfd/rts5249.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/rts5249.c b/drivers/mfd/rts5249.c index 225a

[PATCH v2 6/9] mfd: rtsx: remove LCTLR defination

2015-01-21 Thread micky_ching
From: Micky Ching To enable/disable ASPM we should find LINK CONTROL register in PCI config space. All old chip use 0x80 address, but new chip may use another address, so we using pci_find_capability() to get LINK CONTROL address. rtsx_gops.c was removed, we consider to put some common operation

[PATCH v2 2/9] mfd: rtsx: place register address and values togather

2015-01-21 Thread micky_ching
From: Micky Ching It is more readable to place register address and values define togather. The values define add two leading space indicate belong to the register address defined above. Signed-off-by: Micky Ching --- include/linux/mfd/rtsx_pci.h | 836 +++--

[PATCH v2 8/9] mfd: rtsx: add support for rts525A

2015-01-21 Thread micky_ching
From: Micky Ching add support for new chip rts525A. Signed-off-by: Micky Ching --- drivers/mfd/rts5249.c| 104 ++- drivers/mfd/rtsx_pcr.c | 13 -- drivers/mfd/rtsx_pcr.h | 1 + include/linux/mfd/rtsx_pci.h | 15 +++ 4 file

[PATCH v2 5/9] mfd: rtsx: update phy register

2015-01-21 Thread micky_ching
From: Micky Ching update phy register value and using direct value instead of macros. It is much easier to debug using constant value than a lot of macros. We usually need compare the value directly to check the configure. Signed-off-by: Micky Ching --- drivers/mfd/rts5249.c| 55 +

[PATCH v2 3/9] mfd: rtsx: update PETXCFG address

2015-01-21 Thread micky_ching
From: Micky Ching PETXCFG is defined at 0xFF03, the old 0xFE49 not used any more. Signed-off-by: Micky Ching --- drivers/mfd/rts5227.c| 6 ++ drivers/mfd/rts5249.c| 6 ++ include/linux/mfd/rtsx_pci.h | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a

[PATCH v2 1/9] mfd: rtsx: replace TAB by SPC after #define

2015-01-21 Thread micky_ching
From: Micky Ching Re-format coding-style, using uniform SPC after "#define" keyword instead of mixing using TAB and SPC. Signed-off-by: Micky Ching --- include/linux/mfd/rtsx_pci.h | 254 +-- 1 file changed, 127 insertions(+), 127 deletions(-) diff --gi

[PATCH] staging: rtl8712: remove unused function

2015-01-21 Thread Sudip Mukherjee
mp_query_drv_var() was only being used by oid_rt_pro_query_dr_variable_hdl() but after commit mp_query_drv_var() became unused. so it is safe to remove it. Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8712/rtl871x_mp_ioctl.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/dri

Re: [PATCH 55/69] staging: unisys: get rid of LOGWRN() macro and uisklog.h

2015-01-21 Thread Greg KH
On Wed, Jan 21, 2015 at 06:53:31PM +0300, Dan Carpenter wrote: > Generally "delete code" patches are easy to review. But sometimes you > have to change formatting and remove variables and curly braces. > > $ grep LOG drivers/staging/unisys/ -R | wc -l > 415 > > There isn't a firm rule on way a p

BANK TRANSFER NOTIFICATION

2015-01-21 Thread ALPHA BANK PLC
RE: RELEASE/TRANSFER NOTICE OF YOUR APPROVED FUNDS ($800,000.00USD) COMPENSATION FUND FROM UNITED NATION, WORLD BANK,EUROPEAN UNION AND AFRICA UNION. YOU ARE TO CONTACT THE FUNDS TRANSFER MANAGER MR ERIC MOORE FOR MORE INFORMATION'S ON HOW YOU CAN RECEIVED YOUR FUND AND FORWARD TO HIM YOUR FULL DET

Re: [PATCH] staging: rts5028: use msecs_to_jiffies for timeouts

2015-01-21 Thread 敬锐
the title should be 5208. On 01/19/2015 03:25 PM, Nicholas Mc Guire wrote: > This is only an API consolidation and should make things more readable > > Signed-off-by: Nicholas Mc Guire > --- > > Converting milliseconds to jiffies by val * HZ / 1000 is technically > not wrong but msecs_to_jiffies(

[PATCH 1/2] staging: comedi: vmk80xx: GPCT_RESET is not an (*insn_config) instruction

2015-01-21 Thread H Hartley Sweeten
The data[0] parameter to (*insn_config) functions is the "configuration instruction" that should be handled. These are defined by the enum configuration_ids in comedi.h. This driver is currently checking the data[0] value to be INSN_CONFIG_RESET or GPCT_RESET in order to reset a counter channel.

[PATCH 2/2] staging: comedi: vmk80xx: tidy up vmk80xx_cnt_insn_config()

2015-01-21 Thread H Hartley Sweeten
Tidy up this (*insn_config) function to follow the normal format in comedi drivers. INSN_CONFIG_RESET instructions do not have any extra parameters (insn->n is always 1) so the for loop used to write the packet doesn't make any sense. Remove it and just write the single packet. Signed-off-by: H H

[PATCH 0/2] staging: comedi: vmk80xx: misc cleanup

2015-01-21 Thread H Hartley Sweeten
A couple cleanup patches for the vmk80xx driver. H Hartley Sweeten (2): staging: comedi: vmk80xx: GPCT_RESET is not an (*insn_config) instruction staging: comedi: vmk80xx: tidy up vmk80xx_cnt_insn_config() drivers/staging/comedi/drivers/vmk80xx.c | 46 ++-- 1 file

[PATCH 3/6] staging: comedi: ni_labpc: remove unnecessary private data validation

2015-01-21 Thread H Hartley Sweeten
The labpc_free_dma_chan() function validates the private data. Remove the unnecessary validation in labpc_datach(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) d

[PATCH 5/6] staging: comedi: ni_labpc_common: use DIV_ROUND_CLOSEST to round divisor values

2015-01-21 Thread H Hartley Sweeten
Use the DIV_ROUND_CLOSEST macro to clarify the (((x) + ((divisor) / 2)) / (divisor)) calculations. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_common.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --

[PATCH 1/6] staging: comedi: ni_labpc_common: move comedi_alloc_devpriv() to common code

2015-01-21 Thread H Hartley Sweeten
The ni_labpc_common module is used by the ni_labpc, ni_labpc_pci, and ni_labpc_cs drivers to provide the common code support. Those drivers currently all call comedi_alloc_devpriv() to allocate the private data before calling the common attach function. For aesthetics, move the private data alloc

[PATCH 6/6] staging: comedi: ni_labpc_common: use the cfc_check_trigger_arg_*() helpers

2015-01-21 Thread H Hartley Sweeten
For aesthetics, use the helper functions to check the min/max divisor values. Remove the const int local variables and open code the values. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_common.c | 25

[PATCH 2/6] staging: comedi: ni_labpc_cs: remove unnecessary includes

2015-01-21 Thread H Hartley Sweeten
This driver includes a number of unnecessary headers. Remove them. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_cs.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi/drive

[PATCH 0/6] staging: comedi: ni_labpc: misc cleanup

2015-01-21 Thread H Hartley Sweeten
A couple misc patches for the ni_labpc drivers. H Hartley Sweeten (6): staging: comedi: ni_labpc_common: move comedi_alloc_devpriv() to common code staging: comedi: ni_labpc_cs: remove unnecessary includes staging: comedi: ni_labpc: remove unnecessary private data validation staging: comed

[PATCH 4/6] staging: comedi: ni_labpc_common: use DIV_ROUND_UP to round divisor values

2015-01-21 Thread H Hartley Sweeten
Use the DIV_ROUND_UP macro to clarify the (((n) + (d) - 1) / (d)) calculations. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_common.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/stagin

[PATCH] checkpatch: Add types for other OS typedefs

2015-01-21 Thread Joe Perches
bsd and sysv use different typedefs for unsigned types. These are in types.h but not in checkpatch, so add them to checkpatch's ability to know types. This can avoid false positives for code like: void foo(void) { int x; uint y; [...]; } where checkpatch incorrectly emi

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-21 Thread Pantelis Antoniou
Hi Jason, > On Jan 21, 2015, at 22:27 , Jason Gunthorpe > wrote: > > On Wed, Jan 21, 2015 at 06:33:12PM +0200, Pantelis Antoniou wrote: >> Hi Alan, >> >>> On Jan 21, 2015, at 18:01 , One Thousand Gnomes >>> wrote: >>> >>> On Thu, 15 Jan 2015 22:54:46 +0200 >>> Pantelis Antoniou wrote: >>>

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-21 Thread Jason Gunthorpe
On Wed, Jan 21, 2015 at 06:33:12PM +0200, Pantelis Antoniou wrote: > Hi Alan, > > > On Jan 21, 2015, at 18:01 , One Thousand Gnomes > > wrote: > > > > On Thu, 15 Jan 2015 22:54:46 +0200 > > Pantelis Antoniou wrote: > > > >> Hi Alan, > >> > >>> On Jan 15, 2015, at 22:45 , One Thousand Gnomes

Re: [PATCH] staging: iio: tsl2x7x_core: fix format string warnings

2015-01-21 Thread Jonathan Cameron
On 20/01/15 09:27, Asaf Vertz wrote: > Fixed the following warnings (reported by cppcheck): > [drivers/staging/iio/light/tsl2x7x_core.c:1150]: (warning) %d in format > string (no. 1) > requires 'int' but the argument type is 'unsigned int'. > [drivers/staging/iio/light/tsl2x7x_core.c:1150]: (warni

[PATCH 3/3] Drivers: hv: vmbus: teardown hv_vmbus_con workqueue and vmbus_connection pages on shutdown

2015-01-21 Thread Vitaly Kuznetsov
We need to destroy hv_vmbus_con on module shutdown, otherwise the following crash is sometimes observed: [ 76.569845] hv_vmbus: Hyper-V Host Build:9600-6.3-17-0.17039; Vmbus version:3.0 [ 82.598859] BUG: unable to handle kernel paging request at a0003480 [ 82.599287] IP: [] 0xff

[PATCH 0/3] Drivers: hv: vmbus: fix crashes on hv_vmbus load/unload path

2015-01-21 Thread Vitaly Kuznetsov
It is possible (since 93e5bd06a953: "Drivers: hv: Make the vmbus driver unloadable") to unload hv_vmbus driver if no other devices are connected. 1aec169673d7: "x86: Hyperv: Cleanup the irq mess" fixed doulble interrupt gate setup. However, if we try to unload hv_vmbus and then load it back crashes

[PATCH 1/3] Drivers: hv: vmbus: avoid double kfree for device_obj

2015-01-21 Thread Vitaly Kuznetsov
On driver shutdown device_obj is being freed twice: 1) In vmbus_free_channels() 2) vmbus_device_release() (which is being triggered by device_unregister() in vmbus_device_unregister(). This double kfree leads to the following sporadic crash on driver unload: [ 23.469876] general protection fa

[PATCH 2/3] Drivers: hv: vmbus: introduce vmbus_acpi_remove

2015-01-21 Thread Vitaly Kuznetsov
In case we do request_resource() in vmbus_acpi_add() we need to tear it down to be able to load the driver again. Otherwise the following crash in oberved when hv_vmbus unload/load sequence is performed on Generation2 instance: [ 38.165701] BUG: unable to handle kernel paging request at

Re: [PATCH] staging: lustre: fix sparse warnings related to lock context imbalance

2015-01-21 Thread Loïc Pefferkorn
On Sat, Jan 17, 2015 at 03:29:01PM -0800, Greg KH wrote: > On Sat, Dec 13, 2014 at 03:58:46PM +0100, Loïc Pefferkorn wrote: > > > >>> Don't hide "implementation of locks" in functions like this, it only > > > >>> causes problems. This code has layers of layers of layers of > > > >>> abstractions d

Re: [RFC PATCH 0/5] unisys: kthread cleanup

2015-01-21 Thread Romer, Benjamin M
On Wed, 2015-01-21 at 04:03 -0500, Devendra Naga wrote: > The 1st patch (replace kthread_create..) replace the > kthread_create and wake_up_process with a call to > kthread_run. > > The 2nd patch changes the library API uisthread_start > and uisthread_stop to use the kthread API. > > The 3rd patc

Re: [PATCH] staging: comedi: aio_iiro_16: return input state in async command sample

2015-01-21 Thread Ian Abbott
On 21/01/15 16:36, Hartley Sweeten wrote: On Wednesday, January 21, 2015 4:00 AM, Ian Abbott wrote: On 20/01/15 19:00, H Hartley Sweeten wrote: Modify the sample data returned by the async command to include the current state of the digital inputs. Otherwise the command needs to be canceled in

Re: [PATCH] staging: rtl8712: fix Missing a blank line after declarations

2015-01-21 Thread Joe Perches
On Wed, 2015-01-21 at 16:41 +0200, Lin Kassem wrote: > This patch fixes the following checkpatch.pl warning: > fix Missing a blank line after declarations False positives. Unnecessary changes. > diff --git a/drivers/staging/rtl8712/drv_types.h > b/drivers/staging/rtl8712/drv_types.h [] > @@ -12

RE: [PATCH] staging: comedi: aio_iiro_16: return input state in async command sample

2015-01-21 Thread Hartley Sweeten
On Wednesday, January 21, 2015 4:00 AM, Ian Abbott wrote: > On 20/01/15 19:00, H Hartley Sweeten wrote: >> Modify the sample data returned by the async command to include the current >> state of the digital inputs. Otherwise the command needs to be canceled in >> order for the user to do an (*insn_

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-21 Thread Pantelis Antoniou
Hi Alan, > On Jan 21, 2015, at 18:01 , One Thousand Gnomes > wrote: > > On Thu, 15 Jan 2015 22:54:46 +0200 > Pantelis Antoniou wrote: > >> Hi Alan, >> >>> On Jan 15, 2015, at 22:45 , One Thousand Gnomes >>> wrote: >>> >>> On Thu, 15 Jan 2015 11:47:26 -0700 >>> Jason Gunthorpe wrote:

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-21 Thread One Thousand Gnomes
On Thu, 15 Jan 2015 22:54:46 +0200 Pantelis Antoniou wrote: > Hi Alan, > > > On Jan 15, 2015, at 22:45 , One Thousand Gnomes > > wrote: > > > > On Thu, 15 Jan 2015 11:47:26 -0700 > > Jason Gunthorpe wrote: > >> It is a novel idea, my concern would be that embedding the FPGA in the > >> DT ma

Re: [PATCH] staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)

2015-01-21 Thread Joe Perches
On Wed, 2015-01-21 at 18:44 +0200, Lin Kassem wrote: > This patch fixes the following checkpatch.pl warning: > fix Prefer ether_addr_copy() over memcpy() > if the Ethernet addresses are __aligned(2) > > Pahole showed that the 2 structs are aligned to u16 [] > diff --git a/drivers/staging/vt6656/r

Re: [PATCH 55/69] staging: unisys: get rid of LOGWRN() macro and uisklog.h

2015-01-21 Thread Dan Carpenter
Generally "delete code" patches are easy to review. But sometimes you have to change formatting and remove variables and curly braces. $ grep LOG drivers/staging/unisys/ -R | wc -l 415 There isn't a firm rule on way a patch is just too big and annoying to review. Probably break it up into: [pa

Here is the Bank Draft RefNo: 972 7742 431 002626

2015-01-21 Thread United nation
Kindly open the attachment and contact him for your bank darft. Contact Person : Dr.Jim Ovia. Bank Name : Zenith Bank Plc Email: zenithbank-ng-...@cd2.com Personal Phone: +234-814-820-2663 DRAFT.rtf Description: RTF file ___ devel mailing list de...@

[PATCH] staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)

2015-01-21 Thread Lin Kassem
This patch fixes the following checkpatch.pl warning: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) Pahole showed that the 2 structs are aligned to u16 struct ieee80211_hdr { __le16 frame_control;/* 0 2 */

Re: [PATCH 55/69] staging: unisys: get rid of LOGWRN() macro and uisklog.h

2015-01-21 Thread Romer, Benjamin M
On Fri, 2015-01-09 at 17:40 -0800, Greg KH wrote: > On Fri, Dec 05, 2014 at 05:09:30PM -0500, Benjamin Romer wrote: > > Get rid of LOGWRN() and all related macros, and call pr_warn() directly > > instead. > > Side note, are you setting pr_fmt() properly so that everything is > "unified" with thes

Re: [PATCH 2/2] staging: emxx_udc: remove macro ERR

2015-01-21 Thread Tobias Klauser
On 2015-01-21 at 23:56:06 +0100, Ahmad Hassan wrote: > Removed ERR macro since it is not used anymore in the emxx_udc.c file. > > Signed-off-by: Ahmad Hassan > --- > drivers/staging/emxx_udc/emxx_udc.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/emxx_udc/emxx_udc.h

Re: [PATCH 0/2] mmc: rtsx: add check before sending request

2015-01-21 Thread Ulf Hansson
On 14 January 2015 at 04:09, wrote: > From: Micky Ching > > Add check before sending request can make request return faster. > - finish request if no card exist > This can make request finish faster, especial for some sdio card, > when card removed, there still a lot of command pending, >

Re: [PATCH 1/2] staging: emxx_udc: Replace ERR by dev_err

2015-01-21 Thread Jeremiah Mahler
Ahmad, On Wed, Jan 21, 2015 at 01:55:11PM -0900, Ahmad Hassan wrote: [...] > if (udc == NULL) { > - ERR("%s udc == NULL\n", __func__); > + dev_err(udc->dev,"%s udc == NULL\n", __func__); ^ Always check your patches with checkpatch.pl before

[PATCH] staging: rtl8712: fix Missing a blank line after declarations

2015-01-21 Thread Lin Kassem
This patch fixes the following checkpatch.pl warning: fix Missing a blank line after declarations Signed-off-by: Lin Kassem --- drivers/staging/rtl8712/drv_types.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8712/drv_types.h b/drivers/staging/rtl8712/drv_types.h

Re: [PATCH 00/28] staging: comedi: adv_pci1710: driver cleanup

2015-01-21 Thread Ian Abbott
On 20/01/15 21:52, H Hartley Sweeten wrote: Following is the initial cleanup of the comedi adv_pci1710 driver. H Hartley Sweeten (28): staging: comedi: adv_pci1710: change boardinfo 'n_counter' to 'has_counter' staging: comedi: adv_pci1710: simplify digital input and output boardinfo st

[PATCH 2/2] staging: emxx_udc: remove macro ERR

2015-01-21 Thread Ahmad Hassan
Removed ERR macro since it is not used anymore in the emxx_udc.c file. Signed-off-by: Ahmad Hassan --- drivers/staging/emxx_udc/emxx_udc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h index ee1b80d..0758cd5 100644 -

[PATCH 1/2] staging: emxx_udc: Replace ERR by dev_err

2015-01-21 Thread Ahmad Hassan
Replaced all occurences of ERR with dev_err. The device passed to dev_err is udc->dev. Signed-off-by: Ahmad Hassan --- drivers/staging/emxx_udc/emxx_udc.c | 80 ++--- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc

[PATCH 0/2] Replacing ERR by dev_err

2015-01-21 Thread Ahmad Hassan
This patch set removes the macro ERR from emxx_udc.h and accordingly emxx_udc.c occurrences of ERR changes to dev_err Ahmad Hassan (2): staging: emxx_udc: Replace ERR by dev_err staging: emxx_udc: remove macro ERR drivers/staging/emxx_udc/emxx_udc.c | 80 ++---

Re: [PATCH 0/6] staging: comedi: misc cleanup

2015-01-21 Thread Ian Abbott
On 20/01/15 19:05, H Hartley Sweeten wrote: Following are a couple random comedi cleanup patches that I have had hanging around. H Hartley Sweeten (6): staging: comedi: comedidev.h: remove unused "minor bits" information staging: comedi: comedidev.h: remove unused "polling" function protot

[PATCH] staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)

2015-01-21 Thread Heba Aamer
This patch fixes the following checkpatch.pl warning: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) Pahole showed that the 2 structs are aligned to u16 struct vnt_mic_hdr { u8 id; /* 0 1 */

[PATCH] staging: fbtft: fb_agm1264k-fl: add static keyword

2015-01-21 Thread Noralf Trønnes
Add missing static keyword to function reset(). This was detected by the kbuild test robot. Signed-off-by: Noralf Trønnes --- drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft

Re: [PATCH] staging: comedi: addi_apci_1500: rewrite the subdevice support functions

2015-01-21 Thread Ian Abbott
On 20/01/15 19:01, H Hartley Sweeten wrote: This driver is a mess. It violates the comedi API so much that I doubt anything actually works. Drop the addi-data/hwdrv_apci1500.c file and rewrite the subdevice support functions. This board has 16 digital inputs (subdevice 0) and 16 digital outputs

Re: [PATCH] staging: comedi: aio_iiro_16: return input state in async command sample

2015-01-21 Thread Ian Abbott
On 20/01/15 19:00, H Hartley Sweeten wrote: Modify the sample data returned by the async command to include the current state of the digital inputs. Otherwise the command needs to be canceled in order for the user to do an (*insn_bits) operation to check the digital inputs. Signed-off-by: H Hart

Re: [PATCH] staging: dgnc: Fixing a warning of line over 80 characters

2015-01-21 Thread Dan Carpenter
On Wed, Jan 21, 2015 at 12:46:59PM +0200, menna_tarek wrote: > This patch fixes the following checkpatch.pl warning: > WARNING: line over 80 characters > > Signed-off-by: menna_tarek These are supposed to be your actual name that you use to sign legal documents with correct capitalization etc.

[PATCH] staging: dgnc: Fixing a warning of line over 80 characters

2015-01-21 Thread menna_tarek
This patch fixes the following checkpatch.pl warning: WARNING: line over 80 characters Signed-off-by: menna_tarek --- drivers/staging/dgnc/dgnc_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index f81a37

[PATCH] staging: vt6655: fix that open brace { should be on the previous line

2015-01-21 Thread MariamMohamedFawzy
This patch fixes the following checkpatch.pl error: fix that open brace { should be on the previous line Signed-off-by: MariamMohamedFawzy --- drivers/staging/vt6655/card.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6

[RFC PATCH 2/5] unisys: use simpler kthread_ API

2015-01-21 Thread Devendra Naga
The code does the checks on should_stop variable in the kernel threads. The uisthread_stop function sets the should_stop and calls KILL (eventually kill_pid) to stop the thread. The checking of should_stop variable can be replaced to a call to kthread_should_stop function and the setting of the sh

[RFC PATCH 1/5] unisys: replace kthread_create and wake_up_process with kthread_run

2015-01-21 Thread Devendra Naga
kthread_run calls kthread_create and if the thread is created it then calls wake_up_process on the corresponding returned task struct. So the code can be simplified by calling just kthread_run. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/uislib/uisthr

[RFC PATCH 4/5] unisys: use kthread_should_stop API in the lib thread

2015-01-21 Thread Devendra Naga
convert the users of should_stop into using kthread_should_stop API. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/uislib/uislib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/uislib/uislib.c b/drivers/

[RFC PATCH 0/5] unisys: kthread cleanup

2015-01-21 Thread Devendra Naga
The 1st patch (replace kthread_create..) replace the kthread_create and wake_up_process with a call to kthread_run. The 2nd patch changes the library API uisthread_start and uisthread_stop to use the kthread API. The 3rd patch and 4th patch checks on kthread_should_stop instead of checking should

[RFC PATCH 3/5] unisys: use kthread_should_stop in the thread

2015-01-21 Thread Devendra Naga
convert the users of should_stop variable into kthread_should_stop() API. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/virthba/virthba.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/virthba/virthba.c b

[RFC PATCH 5/5] unisys: remove the thread variable and API

2015-01-21 Thread Devendra Naga
remove the should_stop variable and KILL API as they are no longer required Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/include/uisthread.h | 1 - drivers/staging/unisys/uislib/uisthread.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers

Re: [RFC PATCH 0/5] unisys: kthread cleanup

2015-01-21 Thread devendra.aaru
Oops, I have forgotten the RFC before the patches from 1 to 5 also i have missed two email addresses (i have added them now). I will resend the whole series again with RFC tag before each PATCH and also proper cc's. Sorry On Wed, Jan 21, 2015 at 3:55 AM, Devendra Naga wrote: > The 1st patch (rep

[PATCH 5/5] unisys: remove the thread variable and API

2015-01-21 Thread Devendra Naga
remove the should_stop variable and KILL API as they are no longer required Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/include/uisthread.h | 1 - drivers/staging/unisys/uislib/uisthread.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers

[PATCH 4/5] unisys: use kthread_should_stop API in the lib thread

2015-01-21 Thread Devendra Naga
convert the users of should_stop into using kthread_should_stop API. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/uislib/uislib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/uislib/uislib.c b/drivers/

[RFC PATCH 0/5] unisys: kthread cleanup

2015-01-21 Thread Devendra Naga
The 1st patch (replace kthread_create..) replace the kthread_create and wake_up_process with a call to kthread_run. The 2nd patch changes the library API uisthread_start and uisthread_stop to use the kthread API. The 3rd patch and 4th patch checks on kthread_should_stop instead of checking should

[PATCH 2/5] unisys: use simpler kthread_ API

2015-01-21 Thread Devendra Naga
The code does the checks on should_stop variable in the kernel threads. The uisthread_stop function sets the should_stop and calls KILL (eventually kill_pid) to stop the thread. The checking of should_stop variable can be replaced to a call to kthread_should_stop function and the setting of the sh

[PATCH 1/5] unisys: replace kthread_create and wake_up_process with kthread_run

2015-01-21 Thread Devendra Naga
kthread_run calls kthread_create and if the thread is created it then calls wake_up_process on the corresponding returned task struct. So the code can be simplified by calling just kthread_run. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/uislib/uisthr

[PATCH 3/5] unisys: use kthread_should_stop in the thread

2015-01-21 Thread Devendra Naga
convert the users of should_stop variable into kthread_should_stop() API. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga --- drivers/staging/unisys/virthba/virthba.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/virthba/virthba.c b