patch to add a success/failure message to comedi autoconfig

2013-12-22 Thread Bernd Porr
Hi all, I've added a success / fail message to comedi autoconfig. That's badly needed to see which driver has been associated with which comedi dev in udev. Also, as far as I know an error in the USB probe callback won't cause the kernel to print any errors so tracking down failures in

[PATCH 01/31] staging: r8188eu: Replace wrappers ODM_sleep_us and rtw_usleep_os

2013-12-22 Thread Larry Finger
Each of the uses in the code asks for a sleep of 100 usec or so. On Linux, these are converted to msleep(1). Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 2 +- drivers/staging/rtl8188eu/hal/odm_interface.c | 6 --

[PATCH 07/31] staging: r8188eu: Replace wrappers for atomic_inc and atomic_inc_return

2013-12-22 Thread Larry Finger
Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 12 ++-- drivers/staging/rtl8188eu/include/osdep_service.h | 4 drivers/staging/rtl8188eu/include/usb_ops.h | 2 +- drivers/staging/rtl8188eu/os_dep/osdep_service.c

[PATCH 02/31] staging: r8188eu: Replace wrapper rtw_yield_os

2013-12-22 Thread Larry Finger
a simple yield() is sufficient. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 2 +- drivers/staging/rtl8188eu/include/osdep_service.h | 2 --

[PATCH 11/31] staging: r8188eu: Remove wrapper around mutex_destroy

2013-12-22 Thread Larry Finger
Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 2 +- drivers/staging/rtl8188eu/include/osdep_service.h | 1 - drivers/staging/rtl8188eu/os_dep/osdep_service.c | 5 - drivers/staging/rtl8188eu/os_dep/usb_intf.c | 4 ++-- 4

[PATCH 08/31] staging: r8188eu: Remove daemonize conditional

2013-12-22 Thread Larry Finger
The current kernels do not include this entry point. Delete the call. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/include/osdep_service.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h

[PATCH 03/31] staging: r8188eu: Remove wrapper code for rtw_suspend_lock_init, rtw_suspend_lock_uninit, rtw_lock_suspend, and rtw_unlock_suspend

2013-12-22 Thread Larry Finger
All of these routines are empty. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/include/osdep_service.h | 5 - drivers/staging/rtl8188eu/os_dep/osdep_service.c | 16 drivers/staging/rtl8188eu/os_dep/rtw_android.c| 2 --

[PATCH 05/31] staging: r8188eu: Replace wrapper around atomic_set()

2013-12-22 Thread Larry Finger
Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 +- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8188eu/include/osdep_service.h | 1 - drivers/staging/rtl8188eu/include/usb_ops.h | 2 +-

[PATCH 20/31] staging: r8188eu: Remove even more empty routines

2013-12-22 Thread Larry Finger
This patch removes the following: odm_DynamicTxPowerAP odm_RSSIMonitorCheckMP odm_RSSIMonitorCheckAP odm_TXPowerTrackingCheckMP odm_TXPowerTrackingCheckAP odm_SwAntDivInit ODM_SwAntDivChkPerPktRssi odm_SwAntDivChkAntSwitch ODM_SwAntDivRestAfterLink dm_GlobalAdapterCheck odm_dtc Signed-off-by:

[PATCH 15/31] staging: r8188eu: Remove macro ODM_GetRFReg

2013-12-22 Thread Larry Finger
This one is a duplicate od macro PHY_QueryRFReg. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c| 4 ++-- drivers/staging/rtl8188eu/hal/odm.c | 4 ++-- drivers/staging/rtl8188eu/hal/odm_interface.c | 6 --

[PATCH 21/31] staging: r8188eu: Simplify code concerning SupportPlatform

2013-12-22 Thread Larry Finger
This member of struct odm_dm_struct is always set to ODM_CE in this driver. As a result, a number of switch and if statements can be simplified. In addition, a number of routines are no longer used and can be removed. Signed-off-by: Larry Finger larry.fin...@lwfinger.net ---

[PATCH 14/31] staging: r8188eu: Remove macro ODM_SetRFReg

2013-12-22 Thread Larry Finger
It is a duplicate of macro PHY_SetRFReg. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c | 32 +++--- drivers/staging/rtl8188eu/hal/odm.c| 8 +++--- drivers/staging/rtl8188eu/hal/odm_RegConfig8188E.c |

[PATCH 28/31] staging: r8188eu: Fix sparse warning in core/rtw_pwrctrl.c

2013-12-22 Thread Larry Finger
Sparse reports the following: CHECK drivers/staging/rtl8188eu/core/rtw_pwrctrl.c drivers/staging/rtl8188eu/core/rtw_pwrctrl.c:525:6: warning: symbol 'rtw_free_pwrctrl_priv' was not declared. Should it be static? That routine is not used and has been deleted. Signed-off-by: Larry Finger

[PATCH 18/31] staging: r8188eu: Remove - number of dummy and unused routines

2013-12-22 Thread Larry Finger
These routines include: ODM_StartWorkItem() ODM_StopWorkItem() ODM_FreeWorkItem() ODM_ScheduleWorkItem() ODM_IsWorkItemScheduled() Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/odm_interface.c | 20

[PATCH 19/31] staging: r8188eu: Remove more empty routines

2013-12-22 Thread Larry Finger
This batch includes ODM_StartWorkItem ODM_StopWorkItem ODM_FreeWorkItem ODM_AcquireSpinLoc ODM_ReleaseSpinLock ODM_ReleaseTimer ODM_ReleaseAllTimers Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/odm.c | 7 ---

[PATCH 17/31] staging: r8188eu: Remove macro ODM_GetMACReg

2013-12-22 Thread Larry Finger
This is equivalent to PHY_GetBBReg. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/odm_RTL8188E.c | 8 drivers/staging/rtl8188eu/hal/odm_interface.c | 6 -- drivers/staging/rtl8188eu/include/odm_interface.h | 2 -- 3 files changed, 4

[PATCH 29/31] staging: r8188eu: Fix sparse warning in core/rtw_xmit.c

2013-12-22 Thread Larry Finger
Sparse reports the following warning: CHECK drivers/staging/rtl8188eu/core/rtw_xmit.c drivers/staging/rtl8188eu/core/rtw_xmit.c:809:23: warning: incorrect type in initializer (different base types) drivers/staging/rtl8188eu/core/rtw_xmit.c:809:23:expected unsigned short [usertype]

[PATCH 13/31] staging: r8188eu: Remove macro ODM_GetBBReg

2013-12-22 Thread Larry Finger
This one is a duplicate of PHY_QueryBBReg. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c| 68 +++ drivers/staging/rtl8188eu/hal/odm.c | 49

[PATCH 31/31] staging: r8188eu: Fix smatch error

2013-12-22 Thread Larry Finger
Smatch shows the following: CHECK drivers/staging/rtl8188eu/core/rtw_mlme_ext.c drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1401 OnAssocReq() error: buffer overflow 'pstapriv-sta_aid' 32 = 32 Signed-off-by: Larry Finger larry.fin...@lwfinger.net ---

[PATCH 26/31] staging: r8188eu: Eliminate enum ODM_RADIO_PATH in favor of rf_radio_path

2013-12-22 Thread Larry Finger
There are two different enum statements that have been combined. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/HalHWImg8188E_RF.c | 4 +-- drivers/staging/rtl8188eu/hal/odm_HWConfig.c | 32 +++---

[PATCH 09/31] staging: r8188eu: Replace wrapper around sema_init

2013-12-22 Thread Larry Finger
Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 6 +++--- drivers/staging/rtl8188eu/core/rtw_recv.c | 2 +- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 +++--- drivers/staging/rtl8188eu/include/osdep_service.h | 1 -

[PATCH 06/31] staging: r8188eu: Remove unused atomic_xxx wrappers

2013-12-22 Thread Larry Finger
Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/include/osdep_service.h | 7 - drivers/staging/rtl8188eu/os_dep/osdep_service.c | 35 --- 2 files changed, 42 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h

[PATCH 16/31] staging: r8188eu: Remove macro ODM_SetMACReg

2013-12-22 Thread Larry Finger
This is the same as macro PHY_SetBBReg. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/odm_RTL8188E.c | 14 +++--- drivers/staging/rtl8188eu/hal/odm_interface.c | 6 -- drivers/staging/rtl8188eu/include/odm_interface.h | 3 --- 3

[PATCH 25/31] staging: r8188eu: Cleanup of include/hal_intf.h

2013-12-22 Thread Larry Finger
This driver only handles RTL8188EU with USB interface, thus several hardware defines and macros can be removed. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/rtl8188e_dm.c | 2 -- drivers/staging/rtl8188eu/hal/rtl8188e_mp.c | 18 +++--

[PATCH 23/31] staging: r8188eu: Remove unneeded prototypes from include/odm.h

2013-12-22 Thread Larry Finger
This header contains a number of routines that do not to be available globally. Once this change was made, a number of the routines were not used, and could be removed. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/hal/odm.c | 67

[PATCH 22/31] staging: r8188eu: Simplify code related to SupportICType

2013-12-22 Thread Larry Finger
This member of struct odm_dm_struct is always set to ODM_RTL8188E for this driver. Accordingly, the code can be simplified. A number of routines now are no longer needed and are deleted. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- .../staging/rtl8188eu/hal/Hal8188ERateAdaptive.c

[PATCH 10/31] staging: r8188eu: Remove wrappers _rtw_free_sema, _rtw_up_sema, and _rtw_mutex_init

2013-12-22 Thread Larry Finger
Any routines that are empty as a result of these changes are also removed. Signed-off-by: Larry Finger larry.fin...@lwfinger.net --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 11 --- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 7 ---

[PATCH 24/31] staging: r8188eu: Additional cleanup of include/odm.h

2013-12-22 Thread Larry Finger
This driver only works with the USB bus. Accordingly, enum odm_interface_def can be removed along with all code that uses ODM_ITRF_XXX, where XXX is not USB. In enum odm_ic_type, only ODM_RTL8188E is used. Remove the enum, all references to the others, and define the needed value. Signed-off-by:

[PATCH 1/3] [staging] lustre: Fix space required before the open parenthesis in mgc_required.c

2013-12-22 Thread Masanari Iida
This patch fixed ERROR: space required before the open parenthesis'(' found by checkpatch.pl in lustre/lustre/mgc/mgc_request.c Signed-off-by: Masanari Iida standby2...@gmail.com --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 3/3] staging: lustre: Fix do not use C99 // comments in mgc_request.c

2013-12-22 Thread Masanari Iida
This patch fixed ERROR: do not use C99 // comments found by checkpatch.pl in lustre/lustre/mgc_request.c Signed-off-by: Masanari Iida standby2...@gmail.com --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/3] staging: lustre: Fix brace {} are not necessary for single statement blocks

2013-12-22 Thread Masanari Iida
This patch fixed WARNING: braces {} are not necessary for single statement blocks in lustre/lustre/mgc_request.c Signed-off-by: Masanari Iida standby2...@gmail.com --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 08/21] ozwpan: slight optimization of addr compare

2013-12-22 Thread Ding Tianhong
Use the recently added and possibly more efficient ether_addr_equal_unaligned to instead of memcmp. Cc: Rupesh Gujare rupesh.guj...@atmel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: de...@driverdev.osuosl.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Tan Xiaojun

Re: [PATCH v3 0/2] fix sd power bug and modify phase-searching method

2013-12-22 Thread micky
Hi, Is there anything wrong with this patch? It seems a long time, but I didn't got any reply. On 12/03/2013 10:34 AM, micky_ch...@realsil.com.cn wrote: From: Micky Ching micky_ch...@realsil.com.cn If the driver removed while sd card still in the slot, the card power will not power down