Re: [PATCH v5 2/2] Staging: iio: ade7758: Expand buf_lock to cover both buffer and state protection

2018-02-05 Thread Ardelean, Alexandru
On Tue, 2018-02-06 at 01:10 +0530, Shreeya Patel wrote: > iio_dev->mlock is to be used only by the IIO core for protecting > device mode changes between INDIO_DIRECT and INDIO_BUFFER. > > This patch replaces the use of mlock with the already established > buf_lock mutex. > > Introducing 'unlocked

Re: [PATCH v6 1/2] staging: fsl-mc: Move core bus out of staging

2018-02-05 Thread Horia Geantă
On 2/5/2018 4:08 PM, Bogdan Purcareata wrote: > Move the source files out of staging into their final locations: > -mc.h include file in drivers/staging/fsl-mc/include go to include/linux/fsl > -source files in drivers/staging/fsl-mc/bus go to drivers/bus/fsl-mc > -overview.rst, providing an

[PATCH v5 2/2] Staging: iio: ade7758: Expand buf_lock to cover both buffer and state protection

2018-02-05 Thread Shreeya Patel
iio_dev->mlock is to be used only by the IIO core for protecting device mode changes between INDIO_DIRECT and INDIO_BUFFER. This patch replaces the use of mlock with the already established buf_lock mutex. Introducing 'unlocked' forms of read and write registers. The read/write frequency function

[PATCH 1/2] Staging: iio: ade7758: Remove iio_dev mlock

2018-02-05 Thread Shreeya Patel
In the ade7758 file, read raw does not require iio_dev->mlock for reads. It can run concurrently as resource protection is handled by buf_lock in read register. Signed-off-by: Shreeya Patel --- drivers/staging/iio/meter/ade7758_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/

[PATCH 0/2] Remove usage of mlocks from ade7758 file

2018-02-05 Thread Shreeya Patel
This patchset has been introduced for the removal of mlocks from the ade7758 file and replace it with the already established buf_lock. Patch *[1/2] removes the unnecessary mlocks i.e. which are taken around the read cases. Patch *[2/2] replaces other mlocks with buf_locks and introduces unlocked f

[PATCH] uio_hv_generic: support sub-channels

2018-02-05 Thread Stephen Hemminger
Use sysfs to allow supporting sub-channels. The userspace application makes request to host to create sub-channels and the UIO kernel driver populates the sysfs per-channel directory with a binary attribute file that can be used to read/write ring. Signed-off-by: Stephen Hemminger --- Patch again

[PATCH v6 0/2] staging: fsl-mc: Move bus driver out of staging

2018-02-05 Thread Bogdan Purcareata
Previous submission: https://lkml.org/lkml/2018/1/26/215 Split the code into moving out the core bus infrastructure separate from the irqchip glue code. Add a Kconfig dependency on ARM_GIC_V3_ITS. Integrate the documentation with the kernel build system. This patchset only handles moving the fsl-

[PATCH v6 1/2] staging: fsl-mc: Move core bus out of staging

2018-02-05 Thread Bogdan Purcareata
Move the source files out of staging into their final locations: -mc.h include file in drivers/staging/fsl-mc/include go to include/linux/fsl -source files in drivers/staging/fsl-mc/bus go to drivers/bus/fsl-mc -overview.rst, providing an overview of DPAA2, goes to Documentation/networking

[PATCH v6 2/2] staging: fsl-mc: Move irqchip code out of staging

2018-02-05 Thread Bogdan Purcareata
Now that the fsl-mc bus core infrastructure is out of staging, the remaining irqchip glue code used (irq-gic-v3-its-fsl-mc-msi.c) goes to drivers/irqchip. Create new Kconfig option for irqchip code that depends on FSL_MC_BUS and ARM_GIC_V3_ITS. This ensures irqchip code only gets built on ARM64 pl