Re: [PATCH v9 2/7] staging: usage documentation for simple fpga bus

2015-07-22 Thread Pavel Machek
On Fri 2015-07-17 10:51:12, at...@opensource.altera.com wrote: > From: Alan Tull > > Add a document spelling out usage of the simple fpga bus. > +The DT overlay includes bindings (documented in bindings/simple-fpga-bus.txt) > +that specify: > + * Which fpga manager to use fpga->FPGA, globally.

Re: [PATCH v9 1/7] staging: usage documentation for FPGA manager core

2015-07-22 Thread Pavel Machek
On Fri 2015-07-17 10:51:11, at...@opensource.altera.com wrote: > From: Alan Tull > > Add a document on the new FPGA manager core. > > --- /dev/null > +++ b/drivers/staging/fpga/Documentation/fpga-mgr.txt > @@ -0,0 +1,117 @@ > + FPGA Manager Core > + > + Alan Tull 2015 > + > + Overview > + -

Re: [PATCH v9 3/7] staging: add bindings document for simple fpga bus

2015-07-22 Thread Pavel Machek
> +Optional properties: > +- fpga-mgr : should contain a phandle to a fpga manager. fpga->FPGA, globally. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ___ devel

Re: [PATCH 091/102] staging: rtl8192e: Rename IPSLeave

2015-07-22 Thread Greg KH
On Sun, Jul 19, 2015 at 07:47:21PM +0200, Mateusz Kulikowski wrote: > On 19.07.2015 19:33, Mateusz Kulikowski wrote: > > Use naming schema found in other rtlwifi devices. > > Rename IPSLeave to rtl92e_ips_leave. > > > > Signed-off-by: Mateusz Kulikowski > > --- > [...] > > Oops, I've broke the t

Re: [PATCH 15/15] staging: unisys: make module unremoveable

2015-07-22 Thread Greg KH
On Tue, Jul 21, 2015 at 09:55:49AM -0400, Benjamin Romer wrote: > From: Neil Horman > > As per the last commit, once a netdevice is registered, theres nothing to > unregister it, even if the module is removed. That's obviously a memory > leak and an easy oops vector. > > Fixing it isn't hard, bu

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-22 Thread Greg KH
On Fri, Jul 17, 2015 at 10:51:10AM -0500, at...@opensource.altera.com wrote: > From: Alan Tull > > This patchset adds two chunks plus documentation: > * fpga manager core: exports ABI functions that write an image to a FPGA > * DT Overlay support: simple-fpga-bus to handle FPGA from a DT overla

Re: [PATCH 1/5] drivers: staging: rtl8192u: fixing coding style issues in r8192U_core.c

2015-07-22 Thread Greg KH
On Fri, Jul 17, 2015 at 03:59:16PM +0200, Joseph-Eugene Winzer wrote: > Fixing several coding style issues, like > C99 Comment Style > Trailing whitespaces > Inconsistent spacing of operators > Started to reformat comments/expressions for 80 character limit These are multiple thing

Re: [PATCH 1/2] staging: sm750fb: ddk750_power.c: Remove optionnal parentheses.

2015-07-22 Thread Greg KH
On Fri, Jul 17, 2015 at 03:04:33PM +0200, Antoine BLIN wrote: > Fix up "return is not a function, parentheses are not required" error found by > the checkpatch.pl script. > > Signed-off-by: Antoine BLIN > --- > drivers/staging/sm750fb/ddk750_power.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

RE: [PATCH V3 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-22 Thread Dexuan Cui
> From: Dan Carpenter > Sent: Wednesday, July 22, 2015 18:36 > To: Dexuan Cui > On Wed, Jul 22, 2015 at 10:09:10AM +, Dexuan Cui wrote: > > > I'd suggest you do something like > > > > > > if (ret == -EAGIAIN) > > > return 0; > > > else if (ret) > > > return ret; > > > >

[PATCH v2 05/19] media: Convert graph_mutex to a spinlock and call it graph_lock

2015-07-22 Thread Shuah Khan
ALSA driver calls Media Controller start/stop pipeline interfaces from IRQ handler. Start/stop pipeline lock graph_mutex which is unsafe from a IRQ handler. Convert graph_mutex into a spinlock and call it graph_lock. IRQ safe start/stop pipeline interfaces will be added based on this change. Signe

[PATCH v2 09/19] media: platform vsp1: Update graph_mutex to graph_lock spinlock

2015-07-22 Thread Shuah Khan
Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/media/platform/vsp1/vsp1_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drive

[PATCH v2 04/19] media: au8522 change to create MC pad for ALSA Audio Out

2015-07-22 Thread Shuah Khan
Add new pad for ALSA Audio Out to au8522_media_pads. Move the au8522_media_pads enum to au8522.h from au8522_priv.h. This will allow au0828-core to use these defines instead of hard-coding the pad values when it creates media graph linking decode pads to other entities. Signed-off-by: Shuah Khan

[PATCH v2 03/19] media: Add ALSA Media Controller devnodes

2015-07-22 Thread Shuah Khan
Add ALSA Media Controller capture, playback, and mixer devnode defines. Signed-off-by: Shuah Khan --- include/uapi/linux/media.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 4e816be..4a30ea3 100644 --- a/include/uapi/linux

[PATCH v2 06/19] media: platform exynos4-is: Update graph_mutex to graph_lock spinlock

2015-07-22 Thread Shuah Khan
Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/media/platform/exynos4-is/fimc-isp-video.c | 8 drivers/media/platform/exynos4-is/fimc-lite.c | 8 drivers/media/platform/exynos4

[PATCH v2 07/19] media: platform omap3isp: Update graph_mutex to graph_lock spinlock

2015-07-22 Thread Shuah Khan
Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/media/platform/omap3isp/isp.c | 4 ++-- drivers/media/platform/omap3isp/ispvideo.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -

[PATCH v2 02/19] media: Media Controller register/unregister entity_notify API

2015-07-22 Thread Shuah Khan
Add new interfaces to register and unregister entity_notify hook to media device to allow drivers to take appropriate actions when as new entities get added to the shared media device.When a new entity is registered, all registered entity_notify hooks are invoked to allow drivers or modules that re

[PATCH v2 00/19] Update ALSA, and au0828 drivers to use Managed Media Controller API

2015-07-22 Thread Shuah Khan
This patch series updates ALSA driver, and au0828 core driver to use Managed Media controller API to share tuner. Please note that Managed Media Controller API and DVB and V4L2 drivers updates to use Media Controller API have been added in a prior patch series. Media Controller API is enhanced wit

[PATCH v2 01/19] Revert "[media] media: media controller entity framework enhancements for ALSA"

2015-07-22 Thread Shuah Khan
This reverts commit ed64cf1e182fb30fe67652386c0880fcf3302f97. This patch is no longer necessary as the entity register callback is implemented at media_device level. Signed-off-by: Shuah Khan --- drivers/media/media-device.c | 7 --- include/media/media-entity.h | 4 2 files changed, 11

[PATCH v2 10/19] media: platform xilinx: Update graph_mutex to graph_lock spinlock

2015-07-22 Thread Shuah Khan
Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/media/platform/xilinx/xilinx-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-dma.c b/d

[PATCH v2 19/19] sound/usb: Update ALSA driver to use Managed Media Controller API

2015-07-22 Thread Shuah Khan
Change ALSA driver to use Managed ~media Managed Controller API to share tuner with DVB and V4L2 drivers that control AU0828 media device. Media device is created based on a newly added field value in the struct snd_usb_audio_quirk. Using this approach, the media controller API usage can be added

[PATCH v2 16/19] media: Change v4l-core to check for tuner availability

2015-07-22 Thread Shuah Khan
Change s_input, s_fmt, s_tuner, s_frequency, querystd, s_hw_freq_seek, and vb2_streamon interfaces that alter the tuner configuration to check for tuner availability by calling v4l_enable_media_tuner(). If tuner isn't free, return -EBUSY. Signed-off-by: Shuah Khan --- drivers/media/v4l2-core/v4l

[PATCH v2 18/19] media: au0828 change to use Managed Media Controller API

2015-07-22 Thread Shuah Khan
Change au0828 to use Managed Media Controller API to coordinate creating/deleting media device on parent usb device it shares with the snd-usb-audio driver. With this change, au0828 uses media_device_get_devres() to allocate a new media device devres or return an existing one, if it finds one. au0

[PATCH v2 17/19] media: dvb-frontend change to check for tuner availability from open

2015-07-22 Thread Shuah Khan
Checking for tuner availability from frontend thread start disrupts video stream. Change to check for tuner and start pipeline from frontend open instead and stop pipeline from frontend release. Signed-off-by: Shuah Khan --- drivers/media/dvb-core/dvb_frontend.c | 43

[PATCH v2 15/19] media: v4l-core add v4l_enable_media_tuner() to check for tuner availability

2015-07-22 Thread Shuah Khan
Add a new interface to be used by v4l-core to invoke enable_source handler in the media_device to find tuner entity connected to the decoder and check is it is available. enable_source handler will activate the link if tuner is available. Signed-off-by: Shuah Khan --- drivers/media/v4l2-core/v4l

[PATCH v2 12/19] staging media: omap4iss: Update graph_mutex to graph_lock spinlock

2015-07-22 Thread Shuah Khan
Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/staging/media/omap4iss/iss.c | 4 ++-- drivers/staging/media/omap4iss/iss_video.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -

[PATCH v2 13/19] media: Add irq safe Media Controller start/stop pipeline API

2015-07-22 Thread Shuah Khan
Add irq safe Media Controller start/stop pipeline API media_entity_pipeline_start_irq() media_entity_pipeline_stop_irq() to be used from inside interrupt context. Signed-off-by: Shuah Khan --- drivers/media/media-entity.c | 80 +--- include/media/media-ent

[PATCH v2 11/19] staging media: davinci_vpfe: Update graph_mutex to graph_lock spinlock

2015-07-22 Thread Shuah Khan
Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/staging/media/davinci_vpfe/vpfe_video.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/davinci_vpf

[PATCH v2 14/19] media: Add enable_source handler field to struct media_device

2015-07-22 Thread Shuah Khan
Add a new field to enable_source handler to find source entity for the sink entity and check if it is available, and activate the link using media_entity_setup_link() interface. Bridge driver is expected to implement and set the handler when media_device is registered or when bridge driver finds th

[PATCH v2 08/19] media: platform s3c-camif: Update graph_mutex to graph_lock spinlock

2015-07-22 Thread Shuah Khan
Update graph_mutex to graph_lock spinlock to be in sync with the Media Conttroller change for the same. Signed-off-by: Shuah Khan --- drivers/media/platform/s3c-camif/camif-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/s3c-camif/camif-cor

Re: [PATCH v9 5/7] staging: fpga manager core

2015-07-22 Thread Moritz Fischer
Hi Alan, a couple of small things I found while reworking the Zynq version to match the v9 patchset: On Fri, Jul 17, 2015 at 8:51 AM, wrote: > From: Alan Tull > > API to support programming FPGA. > > The following functions are exported as GPL: > * fpga_mgr_buf_load >Load fpga from image i

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-22 Thread atull
On Wed, 22 Jul 2015, Jason Gunthorpe wrote: > On Wed, Jul 22, 2015 at 03:32:32PM -0500, atull wrote: > > > I looked some more; I don't see a simple way of deferring probing until > > after the filesystem is loaded (so that the image file would be > > available), late_initcall is still not late

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-22 Thread Jason Gunthorpe
On Wed, Jul 22, 2015 at 03:32:32PM -0500, atull wrote: > I looked some more; I don't see a simple way of deferring probing until > after the filesystem is loaded (so that the image file would be > available), late_initcall is still not late enough. That seems weird, are you saying you can't use

[PATCH v2] staging: lustre: obdclass: Make structure declerations static const

2015-07-22 Thread Cihangir Akturk
obd_device_list_sops and obd_device_list_fops are not referenced outside of linux-module.c, and in the general use case struct file_operations and struct seq_operations should be a const object, so make them static and const. This patch fixes the following sparse warnings: WARNING: struct seq_oper

[PATCH v2] lustre: obdclass: Miscellaneous fixes

2015-07-22 Thread Cihangir Akturk
Previously sent two patches merged into one single patch, as suggested by Dan Carpenter. Cihangir Akturk (1): staging: lustre: obdclass: Make structure declerations static const drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-22 Thread atull
On Fri, 17 Jul 2015, atull wrote: > On Fri, 17 Jul 2015, Jason Gunthorpe wrote: > > > On Fri, Jul 17, 2015 at 10:51:10AM -0500, at...@opensource.altera.com wrote: > > > From: Alan Tull > > > > > > This patchset adds two chunks plus documentation: > > > * fpga manager core: exports ABI function

[RFC] Generic VME UIO

2015-07-22 Thread Dmitry Kalinkin
Linux kernel has supported VME bus since 2009. The support comes in a form of kernel driver API that is backed by a couple drivers for PCI-VME bridges. There is also a vme_user driver that provides a generic userpsace interface to do data transfer and generate interrupts on the bus. Due to specifi

Re: [PATCH] staging: rtl8723au: fix incorrect type in assignment warning

2015-07-22 Thread Jes Sorensen
Steve Pennington writes: > Repaced calls to htons and memcpy with a single call to put_unaligned_be16 You may want an 'l' in replaced, but not a biggie to me. > to fix the following sparse warning: > drivers/staging/rtl8723au/core/rtw_recv.c:1557:21: warning: incorrect type in > assignment (dif

[PATCH] staging: rtl8723au: fix incorrect type in assignment warning

2015-07-22 Thread Steve Pennington
Repaced calls to htons and memcpy with a single call to put_unaligned_be16 to fix the following sparse warning: drivers/staging/rtl8723au/core/rtw_recv.c:1557:21: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/core/rtw_recv.c:1557:21:expected unsigned sh

[PATCH V2 net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-22 Thread K. Y. Srinivasan
The current code returns from probe without waiting for the proper handling of subchannels that may be requested. If the netvsc driver were to be rapidly loaded/unloaded, we can trigger a panic as the unload will be tearing down state that may not have been fully setup yet. We fix this issue by ma

Re: [PATCH V2 0/6] iio: mxs-lradc: Clean up and add datasheet names

2015-07-22 Thread Jonathan Cameron
On 19 July 2015 21:33:43 BST, Dan Carpenter wrote: >On Sun, Jul 19, 2015 at 10:45:29AM +0100, Jonathan Cameron wrote: >> Thanks for looking through these. >> >> Just to let you know, there is currently a rather extended discussion >going >> on (as part of a suggested topic for the kernel summi

Re: [PATCH V2 0/6] iio: mxs-lradc: Clean up and add datasheet names

2015-07-22 Thread Jonathan Cameron
On 19 July 2015 21:49:47 BST, Dan Carpenter wrote: >On Sun, Jul 19, 2015 at 11:33:43PM +0300, Dan Carpenter wrote: >> I didn't necessarily read the thread that way, but the thread was >> long... > >I read the thread as saying that you sometimes get: > >Reviewed-by: Some Person > >With no other

Re: [PATCH V3 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-22 Thread Dan Carpenter
On Wed, Jul 22, 2015 at 10:09:10AM +, Dexuan Cui wrote: > > I'd suggest you do something like > > > > if (ret == -EAGIAIN) > > return 0; > > else if (ret) > > return ret; > > > > to make it future-proof (e.g. when a new error is returned by > > hv_ringbuffer_peek). And

RE: [PATCH V3 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-22 Thread Dexuan Cui
> From: Vitaly Kuznetsov > Sent: Tuesday, July 21, 2015 22:07 > > diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c >> ... > > +int vmbus_recvpacket_hvsock(struct vmbus_channel *channel, void *buffer, > > + u32 bufferlen, u32 *buffer_actual_len) > > +{ > > + struct vm

Re: [PATCH] Alternate rtl8192cu driver.

2015-07-22 Thread P. Varet
Back home! Thanks for the reply, Greg. I'll do that, then. Cheers, -- P. On 10/07/15 21:28, Greg KH wrote: On Fri, Jul 10, 2015 at 07:54:30PM +0200, P. Varet wrote: Here's what I see on my side. I'll try to be as thorough as I can. Please send this to the maintainer of the driver, and th