[PATCH] spi: spidev: add exclusive bus access lock via ioctls

2017-08-12 Thread Vikram N
shares the spi bus. This becomes even harder if we don't have access to the source code of the application which is using the spi channel. Signed-off-by: Vikram N <vicky...@gmail.com> --- drivers/spi/spidev.c| 14 +- include/uapi/linux/spi/spidev.h |4 +++- 2

[PATCH] spi: spidev: add exclusive bus access lock via ioctls

2017-08-12 Thread Vikram N
shares the spi bus. This becomes even harder if we don't have access to the source code of the application which is using the spi channel. Signed-off-by: Vikram N --- drivers/spi/spidev.c| 14 +- include/uapi/linux/spi/spidev.h |4 +++- 2 files changed, 16 insertions

[PATCH] spi: omap2-mcspi: Fix modifying platform resource data

2016-09-30 Thread Vikram N
. Signed-off-by: Vikram N <vicky...@gmail.com> --- drivers/spi/spi-omap2-mcspi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index d5157b2..3567e1d 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/d

[PATCH] spi: omap2-mcspi: Fix modifying platform resource data

2016-09-30 Thread Vikram N
. Signed-off-by: Vikram N --- drivers/spi/spi-omap2-mcspi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index d5157b2..3567e1d 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c