[PATCH 2/3] platform/chrome: cros_ec_lpc: Add power management ops

2016-12-16 Thread Thierry Escande
From: Archana Patni This patch adds suspend and resume pm ops to the LPC ChromeOS EC driver. These LPC handlers call the croc_ec generic handlers. Signed-off-by: Archana Patni Signed-off-by: Thierry Escande --- drivers/platform/chrome/cros_ec_lpc.c | 21 + 1 file changed

[PATCH 3/3] platform/chrome: cros_ec_lpc: Add MKBP events support over ACPI

2016-12-16 Thread Thierry Escande
From: Gwendal Grignou This patch installs a notify handler to process MKBP events for EC firmware directing them over ACPI. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/platform/chrome/cros_ec_lpc.c | 32 1 file changed, 32

[PATCH 0/3] platform/chrome: cros_ec_lpc: MKBP events over ACPI

2016-12-16 Thread Thierry Escande
Hi, This series adds support for MKBP events over ACPI. The ChromeOS EC LCP driver is also now probed upon detection of the ACPI GOOG0004 device. Last, a patch adds power management suspend and resume handlers. This patchset depends on [1] to apply. [1] https://lkml.org/lkml/2016/12/2/360

[PATCH 0/3] platform/chrome: cros_ec_lpc: MKBP events over ACPI

2016-12-16 Thread Thierry Escande
Hi, This series adds support for MKBP events over ACPI. The ChromeOS EC LCP driver is also now probed upon detection of the ACPI GOOG0004 device. Last, a patch adds power management suspend and resume handlers. This patchset depends on [1] to apply. [1] https://lkml.org/lkml/2016/12/2/360

[PATCH 1/3] platform/chrome: cros_ec_lpc: Add support for GOOG004 ACPI device

2016-12-16 Thread Thierry Escande
From: Gwendal Grignou <gwen...@chromium.org> This patch removes platform_device_register() call and adds an ACPI device id structure. The driver is now automatically probed for devices with a GOOG0004 ACPI entry. Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off

[PATCH 1/3] platform/chrome: cros_ec_lpc: Add support for GOOG004 ACPI device

2016-12-16 Thread Thierry Escande
From: Gwendal Grignou This patch removes platform_device_register() call and adds an ACPI device id structure. The driver is now automatically probed for devices with a GOOG0004 ACPI entry. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/platform/chrome/Kconfig

[PATCH 3/3] iio: cros_ec_activity: add ChromeOS EC Activity Sensors

2016-12-05 Thread Thierry Escande
ed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/iio/common/cros_ec_sensors/Kconfig | 10 + drivers/iio/common/cros_ec_sensors/Makefile| 1 + .../iio/common/cros_ec_sensors/cros_ec

[PATCH 3/3] iio: cros_ec_activity: add ChromeOS EC Activity Sensors

2016-12-05 Thread Thierry Escande
Signed-off-by: Thierry Escande --- drivers/iio/common/cros_ec_sensors/Kconfig | 10 + drivers/iio/common/cros_ec_sensors/Makefile| 1 + .../iio/common/cros_ec_sensors/cros_ec_activity.c | 300 + .../common/cros_ec_sensors/cros_ec_sensors_core.c | 24

[PATCH 0/3] Add ChromeOS EC Activity Sensors driver

2016-12-05 Thread Thierry Escande
Hi, This patchset adds support for an activity sensors driver handling activity/gesture recognition coming from the EC. Only significant motion is currently supported. Moreover it is an incomplete driver: activity can be set and ring buffer must be used to receive interruption. This patchset

[PATCH 0/3] Add ChromeOS EC Activity Sensors driver

2016-12-05 Thread Thierry Escande
Hi, This patchset adds support for an activity sensors driver handling activity/gesture recognition coming from the EC. Only significant motion is currently supported. Moreover it is an incomplete driver: activity can be set and ring buffer must be used to receive interruption. This patchset

[PATCH 2/3] iio: core: Add double tap as possible gesture

2016-12-05 Thread Thierry Escande
From: Gwendal Grignou <gwen...@chromium.org> This adds the IIO_MOD_DOUBLE_TAP entry to the iio_modifier enum and the corresponding "double_tap" string to the iio_modifier_names array. Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Thierry

[PATCH 2/3] iio: core: Add double tap as possible gesture

2016-12-05 Thread Thierry Escande
From: Gwendal Grignou This adds the IIO_MOD_DOUBLE_TAP entry to the iio_modifier enum and the corresponding "double_tap" string to the iio_modifier_names array. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/iio/industrialio-core.c | 1 + include/uapi

[PATCH 1/3] mfd: cros_ec: Add activity motion sense definitions

2016-12-05 Thread Thierry Escande
g> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- include/linux/mfd/cros_ec_commands.h | 35 +++ 1 file changed, 35 insertions(+) diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index 16830

[PATCH 1/3] mfd: cros_ec: Add activity motion sense definitions

2016-12-05 Thread Thierry Escande
From: Gwendal Grignou This adds motion sense definitions to the commands header related to the activity sensors attached behind the ChromeOS Embedded Controller. Supported activities are MOTION and DOUBLE_TAP. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- include/linux

[PATCH v2 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-12-02 Thread Thierry Escande
g> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/platform/chrome/Kconfig | 12 +++ drivers/platform/chrome/Makefile | 1 + drivers/platform/chrome/cros_ec_lpc.c | 5 ++ drivers/platform/chrome/cros_

[PATCH v2 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-12-02 Thread Thierry Escande
From: Shawn Nematbakhsh This adds support for the ChromeOS LPC Microchip Embedded Controller (mec1322) variant. mec1322 accesses I/O region [800h, 9ffh] through embedded memory interface (EMI) rather than LPC. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Thierry Escande --- drivers

[PATCH v2 0/2] platform/chrome: Add support for mec1322 EC

2016-12-02 Thread Thierry Escande
Hi Benson, This series adds support for the LPC Microchip Embedded Controller 1322. v2: -Add a few lines in Kconfig description -Fixed coding style issues -Updated copyright to year 2016 Shawn Nematbakhsh (2): platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

[PATCH v2 1/2] platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

2016-12-02 Thread Thierry Escande
From: Shawn Nematbakhsh <sha...@chromium.org> Call common functions for read / write to prepare support for future LPC protocol variants which use different I/O ops than inb / outb. Signed-off-by: Shawn Nematbakhsh <sha...@chromium.org> Signed-off-by: Thierry Escande &

[PATCH v2 0/2] platform/chrome: Add support for mec1322 EC

2016-12-02 Thread Thierry Escande
Hi Benson, This series adds support for the LPC Microchip Embedded Controller 1322. v2: -Add a few lines in Kconfig description -Fixed coding style issues -Updated copyright to year 2016 Shawn Nematbakhsh (2): platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

[PATCH v2 1/2] platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

2016-12-02 Thread Thierry Escande
From: Shawn Nematbakhsh Call common functions for read / write to prepare support for future LPC protocol variants which use different I/O ops than inb / outb. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Thierry Escande --- drivers/platform/chrome/Makefile | 3 +- drivers

Re: [PATCH RESEND 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-12-01 Thread Thierry Escande
, and I've a question about runtime detection of the EC (see below), but guess the answer is no. Reviewed-by: Enric Balletbo i Serra <enric.balle...@collabora.com> 2016-11-08 13:27 GMT+01:00 Thierry Escande <thierry.esca...@collabora.com>: From: Shawn Nematbakhsh <sha...@chromium.org>

Re: [PATCH RESEND 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-12-01 Thread Thierry Escande
, and I've a question about runtime detection of the EC (see below), but guess the answer is no. Reviewed-by: Enric Balletbo i Serra 2016-11-08 13:27 GMT+01:00 Thierry Escande : From: Shawn Nematbakhsh This adds support for the ChromeOS LPC Microchip Embedded Controller (mec1322) variant. mec1322

Re: [PATCH v5] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-11-22 Thread Thierry Escande
Hi Mauro, On 18/11/2016 19:59, Mauro Carvalho Chehab wrote: Em Tue, 25 Oct 2016 10:22:29 +0200 Thierry Escande <thierry.esca...@collabora.com> escreveu: From: Pawel Osciak <posc...@chromium.org> When this flag is set for CAPTURE queues by the driver on calling vb2_queue_init(

Re: [PATCH v5] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-11-22 Thread Thierry Escande
Hi Mauro, On 18/11/2016 19:59, Mauro Carvalho Chehab wrote: Em Tue, 25 Oct 2016 10:22:29 +0200 Thierry Escande escreveu: From: Pawel Osciak When this flag is set for CAPTURE queues by the driver on calling vb2_queue_init(), it forces the buffers on the queue to be allocated/mapped

[PATCH RESEND 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-11-08 Thread Thierry Escande
g> Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Guenter Roeck <gro...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/platform/chrome/Kconfig | 9 ++ drivers/platform/chrome/Makefile |

[PATCH RESEND 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-11-08 Thread Thierry Escande
-by: Guenter Roeck Signed-off-by: Thierry Escande --- drivers/platform/chrome/Kconfig | 9 ++ drivers/platform/chrome/Makefile | 1 + drivers/platform/chrome/cros_ec_lpc.c | 5 ++ drivers/platform/chrome/cros_ec_lpc_mec.c | 144 ++ drivers/platform

[PATCH RESEND 0/2] platform/chrome: Add support for mec1322 EC

2016-11-08 Thread Thierry Escande
Hi, This serie adds support for the LPC Microchip Embedded Controller 1322. Shawn Nematbakhsh (2): platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants platform/chrome: cros_ec_lpc: Add support for mec1322 EC drivers/platform/chrome/Kconfig | 9 ++

[PATCH RESEND 0/2] platform/chrome: Add support for mec1322 EC

2016-11-08 Thread Thierry Escande
Hi, This serie adds support for the LPC Microchip Embedded Controller 1322. Shawn Nematbakhsh (2): platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants platform/chrome: cros_ec_lpc: Add support for mec1322 EC drivers/platform/chrome/Kconfig | 9 ++

[PATCH RESEND 1/2] platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

2016-11-08 Thread Thierry Escande
..@chromium.org> Signed-off-by: Guenter Roeck <li...@roeck-us.net> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/platform/chrome/Makefile | 3 +- drivers/platform/chrome/cros_ec_lpc.c | 87 ++- drivers/platform

[PATCH RESEND 1/2] platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

2016-11-08 Thread Thierry Escande
From: Shawn Nematbakhsh Call common functions for read / write to prepare support for future LPC protocol variants which use different I/O ops than inb / outb. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Gwendal Grignou Signed-off-by: Guenter Roeck Signed-off-by: Thierry Escande

[PATCH v3 2/2] [media] videobuf2-dc: Support cacheable MMAP

2016-10-26 Thread Thierry Escande
istent DMA attribute is set). Signed-off-by: Heng-Ruey Hsu <henry...@chromium.org> Tested-by: Heng-ruey Hsu <henry...@chromium.org> Reviewed-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/media/v4l2-co

[PATCH v3 2/2] [media] videobuf2-dc: Support cacheable MMAP

2016-10-26 Thread Thierry Escande
). Signed-off-by: Heng-Ruey Hsu Tested-by: Heng-ruey Hsu Reviewed-by: Tomasz Figa Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-contig.c b/drivers/media

[PATCH v3 1/2] [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks

2016-10-26 Thread Thierry Escande
This patch moves vb2_dc_get_base_sgt() function above mmap buffers callbacks, particularly vb2_dc_alloc() and vb2_dc_mmap() from where it will be called for cacheable MMAP support introduced in the next patch. Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/medi

[PATCH v3 1/2] [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks

2016-10-26 Thread Thierry Escande
This patch moves vb2_dc_get_base_sgt() function above mmap buffers callbacks, particularly vb2_dc_alloc() and vb2_dc_mmap() from where it will be called for cacheable MMAP support introduced in the next patch. Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-dma-contig.c

[PATCH v3 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2016-10-26 Thread Thierry Escande
comments Changes in v3: - Remove redundant test on NO_KERNEL_MAPPING DMA attribute in mmap() Heng-Ruey Hsu (1): [media] videobuf2-dc: Support cacheable MMAP Thierry Escande (1): [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks drivers/media/v4l2-core/videobuf2-dma

[PATCH v3 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2016-10-26 Thread Thierry Escande
comments Changes in v3: - Remove redundant test on NO_KERNEL_MAPPING DMA attribute in mmap() Heng-Ruey Hsu (1): [media] videobuf2-dc: Support cacheable MMAP Thierry Escande (1): [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks drivers/media/v4l2-core/videobuf2-dma

[PATCH v5] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-25 Thread Thierry Escande
o mark pages as dirty. Signed-off-by: Pawel Osciak <posc...@chromium.org> Tested-by: Pawel Osciak <posc...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- Changes in v2: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Add

[PATCH v5] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-25 Thread Thierry Escande
. Signed-off-by: Pawel Osciak Tested-by: Pawel Osciak Signed-off-by: Thierry Escande --- Changes in v2: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Added a VB2_DMA_DIR() macro Changes in v3: - Get rid of dma_dir field and therefore squashed the previous patch Changes in v4

[PATCH v2 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2016-10-24 Thread Thierry Escande
comments Heng-Ruey Hsu (1): [media] videobuf2-dc: Support cacheable MMAP Thierry Escande (1): [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks drivers/media/v4l2-core/videobuf2-dma-contig.c | 62 +- 1 file changed, 40 insertions(+), 22 deletions

[PATCH v2 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2016-10-24 Thread Thierry Escande
comments Heng-Ruey Hsu (1): [media] videobuf2-dc: Support cacheable MMAP Thierry Escande (1): [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks drivers/media/v4l2-core/videobuf2-dma-contig.c | 62 +- 1 file changed, 40 insertions(+), 22 deletions

[PATCH v2 1/2] [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks

2016-10-24 Thread Thierry Escande
This patch moves vb2_dc_get_base_sgt() function above mmap buffers callbacks, particularly vb2_dc_alloc() and vb2_dc_mmap() from where it will be called for cacheable MMAP support introduced in the next patch. Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/medi

[PATCH v2 1/2] [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks

2016-10-24 Thread Thierry Escande
This patch moves vb2_dc_get_base_sgt() function above mmap buffers callbacks, particularly vb2_dc_alloc() and vb2_dc_mmap() from where it will be called for cacheable MMAP support introduced in the next patch. Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-dma-contig.c

[PATCH v2 2/2] [media] videobuf2-dc: Support cacheable MMAP

2016-10-24 Thread Thierry Escande
kernel mapping is present and non-consistent DMA attribute set. Signed-off-by: Heng-Ruey Hsu <henry...@chromium.org> Tested-by: Heng-ruey Hsu <henry...@chromium.org> Reviewed-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com>

[PATCH v2 2/2] [media] videobuf2-dc: Support cacheable MMAP

2016-10-24 Thread Thierry Escande
-consistent DMA attribute set. Signed-off-by: Heng-Ruey Hsu Tested-by: Heng-ruey Hsu Reviewed-by: Tomasz Figa Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/media/v4l2-core

[PATCH v4] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-24 Thread Thierry Escande
o mark pages as dirty. Signed-off-by: Pawel Osciak <posc...@chromium.org> Tested-by: Pawel Osciak <posc...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- Changes since v1: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Add

[PATCH v4] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-24 Thread Thierry Escande
. Signed-off-by: Pawel Osciak Tested-by: Pawel Osciak Signed-off-by: Thierry Escande --- Changes since v1: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Added a VB2_DMA_DIR() macro Changes since v2: - Get rid of dma_dir field and therefore squashed the previous patch Changes

Re: [PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-21 Thread Thierry Escande
Hi Sakari, On 21/10/2016 09:48, Sakari Ailus wrote: Hi Thierry, On Fri, Oct 21, 2016 at 09:25:05AM +0200, Thierry Escande wrote: From: Pawel Osciak <posc...@chromium.org> When this flag is set for CAPTURE queues by the driver on calling vb2_queue_init(), it forces the buffers on the

Re: [PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-21 Thread Thierry Escande
Hi Sakari, On 21/10/2016 09:48, Sakari Ailus wrote: Hi Thierry, On Fri, Oct 21, 2016 at 09:25:05AM +0200, Thierry Escande wrote: From: Pawel Osciak When this flag is set for CAPTURE queues by the driver on calling vb2_queue_init(), it forces the buffers on the queue to be allocated/mapped

[PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-21 Thread Thierry Escande
<posc...@chromium.org> Tested-by: Pawel Osciak <posc...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- Changes since v1: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Added a VB2_DMA_DIR() macro Changes since v2: -

[PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-21 Thread Thierry Escande
Signed-off-by: Thierry Escande --- Changes since v1: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Added a VB2_DMA_DIR() macro Changes since v2: - Get rid of dma_dir field and therefore squashed the previous patch Changes since v3: - Fixed typos in include/media/videobuf2

[PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-20 Thread Thierry Escande
<posc...@chromium.org> Tested-by: Pawel Osciak <posc...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- Changes since v1: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Added a VB2_DMA_DIR() macro Changes since v2: -

[PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-20 Thread Thierry Escande
Signed-off-by: Thierry Escande --- Changes since v1: - Renamed use_dma_bidirectional field as capture_dma_bidirectional - Added a VB2_DMA_DIR() macro Changes since v2: - Get rid of dma_dir field and therefore squashed the previous patch drivers/media/v4l2-core/videobuf2-core.c | 9

Re: [PATCH 1/2] [media] vb2: Store dma_dir in vb2_queue

2016-10-20 Thread Thierry Escande
Hi Sakari, On 19/10/2016 23:29, Sakari Ailus wrote: Hi Thierry, On Wed, Oct 19, 2016 at 10:24:16AM +0200, Thierry Escande wrote: From: Pawel Osciak <posc...@chromium.org> Store dma_dir in struct vb2_queue and reuse it, instead of recalculating it each time. Signed-off-by: Pawel Osciak

Re: [PATCH 1/2] [media] vb2: Store dma_dir in vb2_queue

2016-10-20 Thread Thierry Escande
Hi Sakari, On 19/10/2016 23:29, Sakari Ailus wrote: Hi Thierry, On Wed, Oct 19, 2016 at 10:24:16AM +0200, Thierry Escande wrote: From: Pawel Osciak Store dma_dir in struct vb2_queue and reuse it, instead of recalculating it each time. Signed-off-by: Pawel Osciak Tested-by: Pawel Osciak

[PATCH 1/2] [media] vb2: Store dma_dir in vb2_queue

2016-10-19 Thread Thierry Escande
t; Reviewed-by: Owen Lin <owen...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/media/v4l2-core/videobuf2-core.c | 12 +++- drivers/media/v4l2-core/videobuf2-v4l2.c | 2 ++ include/media/videobuf2-core.h | 2 ++ 3 files c

[PATCH 1/2] [media] vb2: Store dma_dir in vb2_queue

2016-10-19 Thread Thierry Escande
From: Pawel Osciak Store dma_dir in struct vb2_queue and reuse it, instead of recalculating it each time. Signed-off-by: Pawel Osciak Tested-by: Pawel Osciak Reviewed-by: Tomasz Figa Reviewed-by: Owen Lin Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-core.c | 12

[PATCH 2/2] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-19 Thread Thierry Escande
<posc...@chromium.org> Tested-by: Pawel Osciak <posc...@chromium.org> Reviewed-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/media/v4l2-core/videobuf2-v4l2.c | 3 +-- include/media/videobuf2-core.h

[PATCH 2/2] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-19 Thread Thierry Escande
Reviewed-by: Tomasz Figa Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-v4l2.c | 3 +-- include/media/videobuf2-core.h | 14 ++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-v4l2.c b/drivers/media

[PATCH 0/2] [media] DMA direction support in vb2_queue

2016-10-19 Thread Thierry Escande
Hi, This series adds a dma_dir field to the vb2_queue structure in order to store the DMA direction once for all in vb2_queue_init(); It also adds a new capture_dma_bidirectional flag to the vb2_queue structure allowing the hardware to read from the CAPTURE buffer. This flag is ignored for

[PATCH 0/2] [media] DMA direction support in vb2_queue

2016-10-19 Thread Thierry Escande
Hi, This series adds a dma_dir field to the vb2_queue structure in order to store the DMA direction once for all in vb2_queue_init(); It also adds a new capture_dma_bidirectional flag to the vb2_queue structure allowing the hardware to read from the CAPTURE buffer. This flag is ignored for

Re: [PATCH 2/2] [media] vb2: Add support for use_dma_bidirectional queue flag

2016-10-18 Thread Thierry Escande
Hi Sakari, On 17/10/2016 12:06, Sakari Ailus wrote: Hi Thierry, Thanks for the set. A few comments below. On Fri, Oct 14, 2016 at 02:08:14PM +0200, Thierry Escande wrote: From: Pawel Osciak <posc...@chromium.org> When this flag is set for CAPTURE queues by the driver on c

Re: [PATCH 2/2] [media] vb2: Add support for use_dma_bidirectional queue flag

2016-10-18 Thread Thierry Escande
Hi Sakari, On 17/10/2016 12:06, Sakari Ailus wrote: Hi Thierry, Thanks for the set. A few comments below. On Fri, Oct 14, 2016 at 02:08:14PM +0200, Thierry Escande wrote: From: Pawel Osciak When this flag is set for CAPTURE queues by the driver on calling vb2_queue_init(), it forces

[PATCH] [media] videobuf2-dma-contig: Support cacheable MMAP

2016-10-14 Thread Thierry Escande
g> Tested-by: Heng-ruey Hsu <henry...@chromium.org> Reviewed-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 19 +++ 1 file changed, 19 insertions(+) diff -

[PATCH] [media] videobuf2-dma-contig: Support cacheable MMAP

2016-10-14 Thread Thierry Escande
Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-contig.c b/drivers/media/v4l2-core/videobuf2-dma-contig.c index fb6a177..c953c24 100644 --- a/drivers

[PATCH 0/2] [media] DMA direction support in vb2_queue

2016-10-14 Thread Thierry Escande
Hi, This series adds a dma_dir field to the vb2_queue structure in order to store the DMA direction once for all in vb2_queue_init(); It also adds a new use_dma_bidirectional flag to the vb2_queue structure allowing the hardware to read from the CAPTURE buffer. This flag is ignored for OUTPUT

[PATCH 1/2] [media] vb2: Store dma_dir in vb2_queue

2016-10-14 Thread Thierry Escande
t; Reviewed-by: Owen Lin <owen...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/media/v4l2-core/videobuf2-core.c | 12 +++- drivers/media/v4l2-core/videobuf2-v4l2.c | 2 ++ include/media/videobuf2-core.h | 2 ++ 3 files c

[PATCH 0/2] [media] DMA direction support in vb2_queue

2016-10-14 Thread Thierry Escande
Hi, This series adds a dma_dir field to the vb2_queue structure in order to store the DMA direction once for all in vb2_queue_init(); It also adds a new use_dma_bidirectional flag to the vb2_queue structure allowing the hardware to read from the CAPTURE buffer. This flag is ignored for OUTPUT

[PATCH 1/2] [media] vb2: Store dma_dir in vb2_queue

2016-10-14 Thread Thierry Escande
From: Pawel Osciak Store dma_dir in struct vb2_queue and reuse it, instead of recalculating it each time. Signed-off-by: Pawel Osciak Tested-by: Pawel Osciak Reviewed-by: Tomasz Figa Reviewed-by: Owen Lin Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-core.c | 12

[PATCH 2/2] [media] vb2: Add support for use_dma_bidirectional queue flag

2016-10-14 Thread Thierry Escande
<posc...@chromium.org> Tested-by: Pawel Osciak <posc...@chromium.org> Reviewed-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/media/v4l2-core/videobuf2-v4l2.c | 8 ++-- include/media/videobuf2-core.h

[PATCH 2/2] [media] vb2: Add support for use_dma_bidirectional queue flag

2016-10-14 Thread Thierry Escande
Reviewed-by: Tomasz Figa Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-v4l2.c | 8 ++-- include/media/videobuf2-core.h | 4 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-v4l2.c b/drivers/media/v4l2-core

[PATCH] driver-core: add test module for asynchronous probing

2016-09-29 Thread Thierry Escande
p time. Signed-off-by: Dmitry Torokhov <d...@chromium.org> Reviewed-by: Olof Johansson <ol...@chromium.org> Signed-off-by: Guenter Roeck <gro...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/base/Kconfig

[PATCH] driver-core: add test module for asynchronous probing

2016-09-29 Thread Thierry Escande
-by: Dmitry Torokhov Reviewed-by: Olof Johansson Signed-off-by: Guenter Roeck Signed-off-by: Thierry Escande --- drivers/base/Kconfig| 2 + drivers/base/Makefile | 2 + drivers/base/test/Kconfig | 9 ++ drivers/base/test/Makefile

[PATCH 0/2] platform/chrome: Add support for mec1322 EC

2016-09-07 Thread Thierry Escande
Hi, This serie adds support for the LPC Microchip Embedded Controller 1322. Shawn Nematbakhsh (2): platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants platform/chrome: cros_ec_lpc: Add support for mec1322 EC drivers/platform/chrome/Kconfig | 9 ++

[PATCH 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-09-07 Thread Thierry Escande
g> Signed-off-by: Gwendal Grignou <gwen...@chromium.org> Signed-off-by: Guenter Roeck <gro...@chromium.org> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/platform/chrome/Kconfig | 9 ++ drivers/platform/chrome/Makefile |

[PATCH 0/2] platform/chrome: Add support for mec1322 EC

2016-09-07 Thread Thierry Escande
Hi, This serie adds support for the LPC Microchip Embedded Controller 1322. Shawn Nematbakhsh (2): platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants platform/chrome: cros_ec_lpc: Add support for mec1322 EC drivers/platform/chrome/Kconfig | 9 ++

[PATCH 2/2] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2016-09-07 Thread Thierry Escande
-by: Guenter Roeck Signed-off-by: Thierry Escande --- drivers/platform/chrome/Kconfig | 9 ++ drivers/platform/chrome/Makefile | 1 + drivers/platform/chrome/cros_ec_lpc.c | 5 ++ drivers/platform/chrome/cros_ec_lpc_mec.c | 144 ++ drivers/platform

[PATCH 1/2] platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

2016-09-07 Thread Thierry Escande
..@chromium.org> Signed-off-by: Guenter Roeck <li...@roeck-us.net> Signed-off-by: Thierry Escande <thierry.esca...@collabora.com> --- drivers/platform/chrome/Makefile | 3 +- drivers/platform/chrome/cros_ec_lpc.c | 87 ++- drivers/platform

[PATCH 1/2] platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

2016-09-07 Thread Thierry Escande
From: Shawn Nematbakhsh Call common functions for read / write to prepare support for future LPC protocol variants which use different I/O ops than inb / outb. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Gwendal Grignou Signed-off-by: Guenter Roeck Signed-off-by: Thierry Escande

<    3   4   5   6   7   8