Re: [PATCH 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Joe Perches
On Wed, 2016-04-20 at 16:18 -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > This function had copies in 3 different files. Unify them in kernel.h. [] > diff --git a/include/linux/kernel.h b/include/linux/kernel.h [] > @@ -53,6 +53,12 @@ > >  #define ARRAY_SIZE(arr) (sizeof(arr) / sizeo

金牌面试官{高效招聘与精准面试法

2016-04-20 Thread Pejo
67023579135791357 高效招聘与精准面试法.xls Description: Binary data ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH] staging: rtl8192u: Fix crash due to pointers being "confusing"

2016-04-20 Thread Ben Hutchings
There's no net_device stashed in skb->cb, there's a net_device * there. To make it *really* clear, also change the write of the dev pointer into skb->cb from a memcpy() to an assignment. Fixes: 3fe563249374 ("staging: rtl8192u: r8192U_core.c: Cleaning up ...") Signed-off-by: Ben Hutchings --- It

Re: [PATCH 1/3] staging/android: remove redundant comments on sync_merge_data

2016-04-20 Thread Gustavo Padovan
I messed up with the subject prefix, but this is v11, adds typecheck() to patch 2. 2016-04-20 Gustavo Padovan : > From: Gustavo Padovan > > struct sync_merge_data already have documentation on top of the > struct definition. No need to duplicate it. > > Signed-off-by: Gustavo Padovan > Review

[PATCH 1/3] staging/android: remove redundant comments on sync_merge_data

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan Reviewed-by: Maarten Lankhorst --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 3/3] staging/android: refactor SYNC IOCTLs

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan Change SYNC_IOC_FILE_INFO (former SYNC_IOC_FENCE_INFO) behaviour to avoid future API breaks and optimize buffer allocation. Now num_fences can be filled by the caller to inform how many fences it wants to retrieve from the kernel. If the num_fences passed is greater than ze

[PATCH 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan This function had copies in 3 different files. Unify them in kernel.h. Cc: Joe Perches Cc: Andrew Morton Cc: David Airlie Cc: Daniel Vetter Cc: Rob Clark Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 11 +++ drivers/gpu/drm

Re: [PATCH v10 RESEND 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Gustavo Padovan
2016-04-20 Maarten Lankhorst : > Op 19-04-16 om 22:42 schreef Gustavo Padovan: > > From: Gustavo Padovan > > > > This function had copies in 3 different files. Unify them in kernel.h. > > > > Cc: Joe Perches > > Cc: Andrew Morton > > Cc: David Airlie > > Cc: Daniel Vetter > > Cc: Rob Clark >

[PATCH] [media] tw686x-kh: use the cached value

2016-04-20 Thread Mauro Carvalho Chehab
the dma_requests field is cached, but cache is not used: drivers/staging/media/tw686x-kh/tw686x-kh-video.c: In function 'tw686x_video_irq': drivers/staging/media/tw686x-kh/tw686x-kh-video.c:622:6: warning: variable 'requests' set but not used [-Wunused-but-set-variable] u32 requests; ^

[PATCH v2 09/15] staging: comedi: mite: introduce mite_ack_linkc()

2016-04-20 Thread H Hartley Sweeten
Introduce a helper function to handle the ack of a LINKC interrupt. Tidy up the drivers that use the new helper. The extra check for CHSR_INT in the ni_pcidio driver is not necessary. This bit will be set if any of the interrupt sources, including CHSR_LINKC, have generated an interrupt. Remove th

[PATCH v2 10/15] staging: comedi: mite: don't expose unnecessary register/bit info

2016-04-20 Thread H Hartley Sweeten
Most of the mite registers are only accessed by the mite driver. There is no reason to expose the register/bit info. Remove this info from the header. For aesthetics, convert the bit info enums into defines and use the BIT() macro to define them. Tidy up the inline functions for the retry limit an

[PATCH v2 05/15] staging: comedi: mite: remove mite_struct member 'mite_phys_addr'

2016-04-20 Thread H Hartley Sweeten
This member of mite_struct is set but never used. Just remove it. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 1 - drivers/staging/comedi/drivers/mite.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/

[PATCH v2 13/15] staging: comedi: mite: document the mite_struct spinlock_t

2016-04-20 Thread H Hartley Sweeten
Add a comment to fix the checkpatch.pl issue: CHECK: spinlock_t definition without comment Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/comedi/driver

[PATCH v2 12/15] staging: comedi: mite: rename CamelCase CHSR bit enums

2016-04-20 Thread H Hartley Sweeten
Rename the CamelCase symbols to fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/mite.

[PATCH v2 03/15] staging: comedi: mite: remove mite_dma_tcr()

2016-04-20 Thread H Hartley Sweeten
This exported function is not used by any of the comedi drivers. The only call point in mite.c is commented out. Remove the unused function and the export. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 9 - d

[PATCH v2 07/15] staging: comedi: ni_pcidio: remove redundant mite disarm/reset

2016-04-20 Thread H Hartley Sweeten
The mite_release_channel() will disarm and reset the mite channel. Remove the redundant calls in ni_pcidio_release_di_mite_channel(). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_pcidio.c | 2 -- 1 file changed, 2 deletio

[PATCH v2 08/15] staging: comedi: mite: don't expose mite_dma_reset()

2016-04-20 Thread H Hartley Sweeten
This function is only called by the mite driver. Remove the inline function from the header and make it static in the driver. Use the function in mite_prep_dma() instead of duplicating the code. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH v2 14/15] staging: comedi: mite: remove BUG_ON() in MITE_IODWBSR_1_WSIZE_bits()

2016-04-20 Thread H Hartley Sweeten
Prior to calling this function pci_ioremap_bar() is called. If the pci_resource_len(), i.e. the 'size', was 0 the ioremap would fail so this function would never be called. So the first BUG_ON() can never occur. The 'order' returned by ilog2() will always be > 0 so the second BUG_ON() will also ne

[PATCH v2 15/15] staging: comedi: mite: cleanup remaining mite register/bits

2016-04-20 Thread H Hartley Sweeten
For aesthetics, convert the register/bit enums into defines and use the BIT() macro to define the bits. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.h | 88 +-- 1 file changed, 44 inserti

[PATCH v2 02/15] staging: comedi: mite: remove TOP_OF_PAGE() macro

2016-04-20 Thread H Hartley Sweeten
This macro is not used. Remove it. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/mite.c b/drivers/staging/comedi/drivers/mite.c index

[PATCH v2 11/15] staging: comedi: mite: introduce mite_sync_dma()

2016-04-20 Thread H Hartley Sweeten
The struct mite_channel 'dir' member specifies if the dma is input or output. Wrap the mite_sync_input_dma() and mite_sync_output_dma() functions with a single mite_sync_dma() so that the drivers don't have to worry about the sync direction. The functions that actually sync the input/output dma cu

[PATCH v2 00/15] staging: comedi: mite: cleanup driver

2016-04-20 Thread H Hartley Sweeten
Fix all the checkpatch.pl issues and tidy up this driver. v2 changes: * Ian Abbott spotted an error in Patch 09/15. * Rebase Patch 11/15 after fixing Patch 09/15. * Add Ian's Reviewed-by tag to all patches except 09/15. H Hartley Sweeten (15): staging: comedi: mite: Prefer 'unsigned int'

[PATCH v2 04/15] staging: comedi: mite: don't export internal functions

2016-04-20 Thread H Hartley Sweeten
The functions that get the number of bytes written to and read from memory are only used internally by the mite driver when syncing the dma channel. Make them static and remove the exports. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/come

[PATCH v2 01/15] staging: comedi: mite: Prefer 'unsigned int' to bare use of 'unsigned'

2016-04-20 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 29 +++-- drivers/staging/comedi/drivers/mite.h | 17 + 2 files changed, 24 insertions(+), 22 deleti

[PATCH v2 06/15] staging: comedi: mite: remove mite_struct member 'daq_phys_addr'

2016-04-20 Thread H Hartley Sweeten
This member of mite_struct is only used to map the mite I/O window. For aesthetics, remove it and use a local variable instead. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 7 --- drivers/staging/comedi/dri

RE: [PATCH 09/15] staging: comedi: mite: introduce mite_ack_linkc()

2016-04-20 Thread Hartley Sweeten
On Wednesday, April 20, 2016 2:44 AM, Ian Abbott wrote: > I've seen occasional (but unresolved) threads on the COMEDI mailing > lists from people getting the "unknown mite interrupt" messages, so it's > probably best to leave them in for now. > > For example, this one: > > https://groups.google.c

RE: [PATCH 09/15] staging: comedi: mite: introduce mite_ack_linkc()

2016-04-20 Thread Hartley Sweeten
On Wednesday, April 20, 2016 2:44 AM, Ian Abbott wrote: > On 19/04/16 17:41, Hartley Sweeten wrote: >> Side-note regarding the CHSR bits. Some of the subdevices that use mite >> also check for "unknown" interrupts. >> >> ni_pcimiofor the DIO "read_subdev" >> ni_mio_commonfor the

RE: [PATCH 11/14] staging: fsl-mc: add quirk handling for dpseci objects < 4.0

2016-04-20 Thread Stuart Yoder
> -Original Message- > From: Horia Ioan Geanta Neag > Sent: Wednesday, April 20, 2016 6:42 AM > To: Stuart Yoder ; Jose Rivera > Cc: gre...@linuxfoundation.org; de...@driverdev.osuosl.org; > linux-ker...@vger.kernel.org; > ag...@suse.de; a...@arndb.de; Yang-Leo Li > Subject: Re: [PATCH

RE: [Intel-wired-lan] [PATCH net-next V5 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-20 Thread KY Srinivasan
> -Original Message- > From: Jeff Kirsher [mailto:jeffrey.t.kirs...@intel.com] > Sent: Tuesday, April 19, 2016 11:25 PM > To: KY Srinivasan ; da...@davemloft.net; > net...@vger.kernel.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

Re: [PATCH 11/14] staging: fsl-mc: add quirk handling for dpseci objects < 4.0

2016-04-20 Thread Horia Ioan Geanta Neag
On 4/11/2016 7:50 PM, Stuart Yoder wrote: > From: Horia Geanta > > dpseci objects < 4.0 are not coherent-- in spite of the fact > that the MC reports them to be coherent in certain versions. > Add a special case to set the no shareability flag for dpseci > objects < 4.0. > > Signed-off-by: Horia

Re: [PATCH 09/15] staging: comedi: mite: introduce mite_ack_linkc()

2016-04-20 Thread Ian Abbott
On 19/04/16 17:41, Hartley Sweeten wrote: On Tuesday, April 19, 2016 3:23 AM, Ian Abbott wrote: On 18/04/16 21:28, H Hartley Sweeten wrote: Introduce a helper function to handle the ack of a LINKC interrupt. Tidy up the drivers that use the new helper. The mite_get_status() function is not onl

[PATCH] staging: vt6656: Add space to align functions

2016-04-20 Thread han tai
Issue found by checkpatch.pl CHECK: Alignment should match open parenthesis Signed-off-by: han tai --- drivers/staging/vt6656/baseband.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/ba

Re: [PATCH v10 RESEND 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Maarten Lankhorst
Op 19-04-16 om 22:42 schreef Gustavo Padovan: > From: Gustavo Padovan > > This function had copies in 3 different files. Unify them in kernel.h. > > Cc: Joe Perches > Cc: Andrew Morton > Cc: David Airlie > Cc: Daniel Vetter > Cc: Rob Clark > Signed-off-by: Gustavo Padovan > --- > drivers/gp