Re: [PATCH 3/3] mfd: cros_ec: Add ACPI GPE handler for LID0 devices

2017-01-05 Thread Thierry Escande
Hi Lee, On 05/01/2017 08:54, Lee Jones wrote: On Wed, 04 Jan 2017, Thierry Escande wrote: Hi Lee, On 04/01/2017 10:06, Lee Jones wrote: On Fri, 16 Dec 2016, Thierry Escande wrote: From: Archana Patni This patch installs an ACPI GPE handler for LID0 ACPI device to indicate ACPI core

[PATCH 3/5] firmware: google memconsole: Add coreboot support

2017-03-23 Thread Thierry Escande
-by: Thierry Escande --- drivers/firmware/google/Kconfig | 25 +- drivers/firmware/google/Makefile | 3 + drivers/firmware/google/coreboot_table-acpi.c | 88 + drivers/firmware/google/coreboot_table.c | 94 ++ drivers

[PATCH 5/5] firmware: google memconsole: Add ARM/ARM64 support

2017-03-23 Thread Thierry Escande
installed the 'coreboot' compatible device tree node that describes its base address and size. This patch is a rework/split/merge of patches from the chromeos v4.4 kernel tree originally authored by: Wei-Ning Huang Julius Werner Brian Norris Signed-off-by: Thierry Escande --- drivers

[PATCH 4/5] firmware: Add coreboot device tree binding documentation

2017-03-23 Thread Thierry Escande
). (An example implementation can be seen in the following patch) Signed-off-by: Julius Werner Signed-off-by: Thierry Escande --- .../devicetree/bindings/firmware/coreboot.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware

[PATCH 0/5] firmware: google memconsole

2017-03-23 Thread Thierry Escande
Thierry Escande (4): firmware: google memconsole: Remove useless submenu in Kconfig firmware: google memconsole: Move specific EBDA parts firmware: google memconsole: Add coreboot support firmware: google memconsole: Add ARM/ARM64 support .../devicetree/bindings/firmware/coreboot.txt | 33

[PATCH 1/5] firmware: google memconsole: Remove useless submenu in Kconfig

2017-03-23 Thread Thierry Escande
This patch removes the "Google Firmware Drivers" menu containing a menuconfig entry with the exact same name. The menuconfig is now directly under the "Firmware Drivers" entry. Signed-off-by: Thierry Escande --- drivers/firmware/google/Kconfig | 7 +++ 1 file changed

[PATCH 2/5] firmware: google memconsole: Move specific EBDA parts

2017-03-23 Thread Thierry Escande
-by: Thierry Escande --- drivers/firmware/google/Kconfig | 9 +- drivers/firmware/google/Makefile| 3 +- drivers/firmware/google/memconsole-x86-legacy.c | 154 +++ drivers/firmware/google/memconsole.c| 155 drivers

Re: [PATCH 3/3] mfd: cros_ec: Add ACPI GPE handler for LID0 devices

2017-01-05 Thread Thierry Escande
On 05/01/2017 15:43, Lee Jones wrote: Rafael, On Thu, 05 Jan 2017, Thierry Escande wrote: Hi Lee, On 05/01/2017 08:54, Lee Jones wrote: On Wed, 04 Jan 2017, Thierry Escande wrote: Hi Lee, On 04/01/2017 10:06, Lee Jones wrote: On Fri, 16 Dec 2016, Thierry Escande wrote: From: Archana

[PATCH] sd: Ignore sync cache failures when not supported

2017-03-16 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- drivers/scsi/sd.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions

[PATCH v2] sd: Ignore sync cache failures when not supported

2017-05-04 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- v2 changes: - Change sense_key type to u8 in sd_sync_cache() drivers/scsi/sd.c | 22

Re: [PATCH v2] sd: Ignore sync cache failures when not supported

2017-05-05 Thread Thierry Escande
On 05/05/2017 11:02, Christoph Hellwig wrote: Normally we'd just pass the scsi_sense_hdr structure in from the caler if we care about sense data. Is this something you considered? Not really as only the sense_key field is needed for only one call to sd_sync_cache() (out of two). Otherwise

Re: [alsa-devel] [PATCH 1/2] ASoc: cht_bsw_max98090_ti: Fix jack initialization

2017-05-05 Thread Thierry Escande
Hi, On 04/05/2017 19:01, Pierre-Louis Bossart wrote: On 05/02/2017 05:11 AM, Thierry Escande wrote: If the ts3a227e audio accessory detection hardware is present and its driver probed, the jack needs to be created before enabling jack detection in the ts3a227e driver. With this patch

[PATCH v2 0/2] Google VPD sysfs driver

2017-04-12 Thread Thierry Escande
Hi, This patchset adds support for accessing Google Vital Product Data (VPD) through the sysfs interface under /sys/firmware/vpd. This patchset contains the VPD decoding routines read from coreboot table entries and the driver responsible for creating the sysfs interface. This patchset depends

[PATCH v2 2/2] firmware: Google VPD sysfs driver

2017-04-12 Thread Thierry Escande
. Signed-off-by: Wei-Ning Huang Signed-off-by: Thierry Escande --- In this v2: - Fix coding style issues reported by 'checkpatch --strict' - Add missing vpd_ prefix to some functions --- drivers/firmware/google/Kconfig | 7 + drivers/firmware/google/Makefile | 3 + drivers/firmware

[PATCH v2 1/2] firmware: Google VPD: import lib_vpd source files

2017-04-12 Thread Thierry Escande
. The VPD string sections in the coreboot tables contain the type (1 byte set to 0x01 for strings), the key length, the key ascii array, the value length, and the value ascii array. The key and value arrays are not null terminated. Signed-off-by: Wei-Ning Huang Signed-off-by: Thierry Escande

[PATCH v2] [media] v4l2: Add support for go2001 PCI codec driver

2017-05-25 Thread Thierry Escande
in Linux v4.4. This driver is originally developed by: Pawel Osciak Ville-Mikko Rautio henryhsu Wu-Cheng Li Signed-off-by: Thierry Escande --- Changes in v2: - Removed unneeded call to dma_cache_sync() on coherent dma buffer. drivers/media/pci/Kconfig|2 + drivers/media

[PATCH 0/2] Add ACPI table for the ts3a227e driver

2017-05-02 Thread Thierry Escande
acpi table Thierry Escande (1): ASoc: cht_bsw_max98090_ti: Fix jack initialization sound/soc/codecs/ts3a227e.c | 10 ++ sound/soc/intel/boards/cht_bsw_max98090_ti.c | 52 +--- 2 files changed, 41 insertions(+), 21 deletions(-) -- 2.7.4

[PATCH 1/2] ASoc: cht_bsw_max98090_ti: Fix jack initialization

2017-05-02 Thread Thierry Escande
pointer dereference as the jack detection enabling function in the ts3a driver was called before the jack is created. Signed-off-by: Thierry Escande --- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 50 +--- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git

[PATCH 2/2] ASoC: ts3a227e: add acpi table

2017-05-02 Thread Thierry Escande
From: "Fang, Yang A" This patch adds the acpi match table for the ts3a227e audio accessory detection device. This enables headset features like jack plug/unplug notifications, mic presence, and button pressed events. Signed-off-by: Fang, Yang A Signed-off-by: Thierry Escande ---

[PATCH] [media] v4l2: Add support for go2001 PCI codec driver

2017-05-03 Thread Thierry Escande
in Linux v4.4. This driver is originally developed by: Pawel Osciak Ville-Mikko Rautio henryhsu Wu-Cheng Li Signed-off-by: Thierry Escande --- drivers/media/pci/Kconfig|2 + drivers/media/pci/Makefile |1 + drivers/media/pci/go2001/Kconfig | 11

[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 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] [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 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

[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 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 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 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 v3] sd: Ignore sync cache failures when not supported

2017-05-09 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- v3 changes: - Pass the sense_hdr structure to sd_sync_cache() instead of the lonely

[PATCH v4] sd: Ignore sync cache failures when not supported

2017-05-11 Thread Thierry Escande
for these drives, so we shouldn't fail to suspend for this error case. The drive may stay powered if that's the setup for the port it's plugged into. Signed-off-by: Derek Basehore Signed-off-by: Thierry Escande --- v4 changes: - Check sense header validity before checking the sense_key field - Get rid

Re: [PATCH v2 5/6] [media] s5p-jpeg: Add support for resolution change event

2017-06-20 Thread Thierry Escande
Hi Andrzej, On 20/06/2017 12:51, Andrzej Pietrasiewicz wrote: Hi Thierry, W dniu 19.06.2017 o 15:50, Thierry Escande pisze: Hi Andrzej, On 16/06/2017 17:38, Andrzej Pietrasiewicz wrote: Hi Thierry, Thank you for the patch. Can you give a use case for resolution change event

Re: [PATCH RESEND 09/13] platform/chrome: cros_ec_lpc: Add MKBP events support over ACPI

2017-06-23 Thread Thierry Escande
Hi Benson, On 22/06/2017 21:35, Benson Leung wrote: + adev = ACPI_COMPANION(dev); + if (adev) { + status = acpi_install_notify_handler(adev->handle, +ACPI_ALL_NOTIFY, Is there a reason you're using

[PATCH v2 4/6] [media] s5p-jpeg: Decode 4:1:1 chroma subsampling format

2017-06-12 Thread Thierry Escande
From: Tony K Nadackal This patch adds support for decoding 4:1:1 chroma subsampling in the jpeg header parsing function. Signed-off-by: Tony K Nadackal Signed-off-by: Thierry Escande --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2 0/6] [media] s5p-jpeg: Various fixes and improvements

2017-06-12 Thread Thierry Escande
Hi, This series contains various fixes and improvements for the Samsung s5p-jpeg driver. All these patches come from the Chromium v3.8 kernel tree. In this v2: - Remove IOMMU support patch (mapping now created automatically for single JPEG CODEC device). - Remove "Change sclk_jpeg to 166MHz"

[PATCH v2 3/6] [media] s5p-jpeg: Correct WARN_ON statement for checking subsampling

2017-06-12 Thread Thierry Escande
From: Tony K Nadackal Corrects the WARN_ON statement for subsampling based on the JPEG Hardware version. Signed-off-by: Tony K Nadackal Signed-off-by: Thierry Escande --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v2 5/6] [media] s5p-jpeg: Add support for resolution change event

2017-06-12 Thread Thierry Escande
-by: Thierry Escande --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 125 +++- drivers/media/platform/s5p-jpeg/jpeg-core.h | 7 ++ 2 files changed, 91 insertions(+), 41 deletions(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p

[PATCH v2 1/6] [media] s5p-jpeg: Reset the Codec before doing a soft reset

2017-06-12 Thread Thierry Escande
From: Abhilash Kesavan This patch resets the encoding and decoding register bits before doing a soft reset. Signed-off-by: Tony K Nadackal Signed-off-by: Thierry Escande --- drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers

[PATCH v2 6/6] [media] s5p-jpeg: Add stream error handling for Exynos5420

2017-06-12 Thread Thierry Escande
From: henryhsu On Exynos5420, the STREAM_STAT bit raised on the JPGINTST register means there is a syntax error or an unrecoverable error on compressed file when ERR_INT_EN is set to 1. Fix this case and report BUF_STATE_ERROR to videobuf2. Signed-off-by: Henry-Ruey Hsu Signed-off-by: Thierry

[PATCH v2 2/6] [media] s5p-jpeg: Call jpeg_bound_align_image after qbuf

2017-06-12 Thread Thierry Escande
header. If the width/height values of jpeg are not aligned, the decoder output will be corrupted. So in this patch we call jpeg_bound_align_image() to align the width/height values of Capture buffer in s5p_jpeg_buf_queue(). Signed-off-by: Tony K Nadackal Signed-off-by: Thierry Escande --- drivers

Re: [PATCH v2 5/6] [media] s5p-jpeg: Add support for resolution change event

2017-06-19 Thread Thierry Escande
see inline. W dniu 12.06.2017 o 19:13, Thierry Escande pisze: From: henryhsu @@ -1611,8 +1612,6 @@ static int s5p_jpeg_s_fmt(struct s5p_jpeg_ctx *ct, struct v4l2_format *f) FMT_TYPE_OUTPUT : FMT_TYPE_CAPTURE; q_data->fmt = s5p_jpeg_find_format(ct, pix->pixelformat,

Re: [PATCH 1/9] [media] s5p-jpeg: Reset the Codec before doing a soft reset

2017-06-07 Thread Thierry Escande
Hi Jacek, On 02/06/2017 21:50, Jacek Anaszewski wrote: Hi Thierry, On 06/02/2017 06:02 PM, Thierry Escande wrote: From: Abhilash Kesavan This patch resets the encoding and decoding register bits before doing a soft reset. Signed-off-by: Tony K Nadackal Signed-off-by: Thierry Escande

Re: [PATCH 6/9] [media] s5p-jpeg: Add support for resolution change event

2017-06-07 Thread Thierry Escande
Hi Jacek, On 02/06/2017 23:53, Jacek Anaszewski wrote: Hi Thierry, On 06/02/2017 06:02 PM, Thierry Escande wrote: From: henryhsu This patch adds support for resolution change event to notify clients so they can prepare correct output buffer. When resolution change happened, G_FMT

[PATCH] mfd: cros_ec: Send correct suspend/resume event to EC

2017-01-13 Thread Thierry Escande
From: Shawn Nematbakhsh pm_suspend_via_firmware() will return false for platforms with ACPI disabled and ACPI is a prerequisite for S0ix support. With this patch, sleep state event sent to EC is forced to S3 if ACPI is disabled. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Thierry Escande

[PATCH v2] mfd: cros_ec: Add ACPI GPE handler for LID0 devices

2017-02-01 Thread Thierry Escande
From: Archana Patni This patch installs an ACPI GPE handler for LID0 ACPI device to indicate ACPI core that this GPE should stay enabled for lid to work in suspend to idle path. Signed-off-by: Archana Patni Signed-off-by: Thierry Escande --- This patch depends on https://lkml.org/lkml/2017/1

[PATCH v2 2/3] cros_ec: Fix deadlock when EC is not responsive at probe

2017-02-14 Thread Thierry Escande
cros_ec_get_host_command_version_mask(). Also, this patch adds the function header indicating it must be called protected. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/platform/chrome/cros_ec_proto.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion

[PATCH v2 1/3] cros_ec: Don't return error when checking command version

2017-02-14 Thread Thierry Escande
With this patch, cros_ec_query_all() does not return an error if it fails to check for MKBP events support. Instead, the EC device structure indicates that it does not support MKBP events (mkbp_event_supported field) and cros_ec_query_all() returns 0. Signed-off-by: Thierry Escande --- drivers

[PATCH v2 0/3] mfd: cros_ec: non-wake host events support

2017-02-14 Thread Thierry Escande
wake event for non-wake host events Thierry Escande (1): cros_ec: Don't return error when checking command version drivers/mfd/cros_ec.c | 13 +++-- drivers/platform/chrome/cros_ec_proto.c | 96 ++--- include/linux/mfd/cros_ec.h | 16

[PATCH v2 3/3] cros_ec: Don't signal wake event for non-wake host events

2017-02-14 Thread Thierry Escande
attempts. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Thierry Escande --- drivers/mfd/cros_ec.c | 13 -- drivers/platform/chrome/cros_ec_proto.c | 76 ++--- include/linux/mfd/cros_ec.h | 5 ++- 3 files changed, 85 insertions(+), 9

Re: [PATCH 3/3] cros_ec: Don't signal wake event for non-wake host events

2017-02-13 Thread Thierry Escande
Hi Lee, On 07/02/2017 17:12, Lee Jones wrote: On Wed, 25 Jan 2017, Thierry Escande wrote: From: Shawn Nematbakhsh The subset of wake-enabled host events is defined by the EC, but the EC may still send non-wake host events if we're in the process of suspending. Get the mask of wake-enabled

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 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

[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

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

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 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 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 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] HID: magicmouse: Set multi-touch keybits for Magic Mouse

2017-04-07 Thread Thierry Escande
these keybits for self-configuration and thus they cannot operate properly if the keybits are not set. One of such troubles is that libevdev will not be able to emit correct touch count, causing gestures library failed to do fling stop. Signed-off-by: Che-Liang Chiou Signed-off-by: Thierry Escande

[PATCH 0/2] Google VPD sysfs driver

2017-04-11 Thread Thierry Escande
Hi, This patchset adds support for accessing Google Vital Product Data (VPD) through the sysfs interface under /sys/firmware/vpd. This patchset contains the VPD decoding routines read from coreboot table entries and the driver responsible for creating the sysfs interface. This patchset depends

[PATCH 1/2] firmware: Google VPD: import lib_vpd source files

2017-04-11 Thread Thierry Escande
. The VPD string sections in the coreboot tables contain the type (1 byte set to 0x01 for strings), the key length, the key ascii array, the value length, and the value ascii array. The key and value arrays are not null terminated. Signed-off-by: Wei-Ning Huang Signed-off-by: Thierry Escande

[PATCH 2/2] firmware: Google VPD sysfs driver

2017-04-11 Thread Thierry Escande
. Signed-off-by: Wei-Ning Huang Signed-off-by: Thierry Escande --- drivers/firmware/google/Kconfig | 7 + drivers/firmware/google/Makefile | 3 + drivers/firmware/google/vpd.c| 333 +++ 3 files changed, 343 insertions(+) create mode 100644 drivers

Re: [PATCH 1/2] firmware: Google VPD: import lib_vpd source files

2017-04-11 Thread Thierry Escande
Hi Greg On 11/04/2017 16:09, Greg Kroah-Hartman wrote: On Tue, Apr 11, 2017 at 11:14:30AM +0200, Thierry Escande wrote: +#include + +#include "vpd_decode.h" + +static int decode_len(const int32_t max_len, const uint8_t *in, + int32_t *length, int32_t *d

Re: [PATCH 1/2] firmware: Google VPD: import lib_vpd source files

2017-04-11 Thread Thierry Escande
On 11/04/2017 16:11, Greg Kroah-Hartman wrote: On Tue, Apr 11, 2017 at 04:10:12PM +0200, Greg Kroah-Hartman wrote: On Tue, Apr 11, 2017 at 11:14:30AM +0200, Thierry Escande wrote: ... + } + + return VPD_OK; +} +EXPORT_SYMBOL(decode_vpd_string); Normally put the prefix

[PATCH 1/3] cros_ec: Don't return error when checking command version

2017-01-25 Thread Thierry Escande
With this patch, cros_ec_query_all() does not return an error if it fails to check for MKBP events support. Instead, the EC device structure indicates that it does not support MKBP events (mkbp_event_supported field) and cros_ec_query_all() returns 0. Signed-off-by: Thierry Escande --- drivers

[PATCH 3/3] cros_ec: Don't signal wake event for non-wake host events

2017-01-25 Thread Thierry Escande
attempts. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Thierry Escande --- drivers/mfd/cros_ec.c | 14 ++-- drivers/platform/chrome/cros_ec_proto.c | 60 + include/linux/mfd/cros_ec.h | 12 +++ 3 files changed, 84 insertions

[PATCH 0/3] mfd: cros_ec: non-wake host events support

2017-01-25 Thread Thierry Escande
EC is not responsive at probe Shawn Nematbakhsh (1): cros_ec: Don't signal wake event for non-wake host events Thierry Escande (1): cros_ec: Don't return error when checking command version drivers/mfd/cros_ec.c | 14 +- drivers/platform/chrome/cros_ec_proto.c | 80

[PATCH 2/3] cros_ec: Fix deadlock when EC is not responsive at probe

2017-01-25 Thread Thierry Escande
cros_ec_get_host_command_version_mask(). Also, this patch adds the function header indicating it must be called protected. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/platform/chrome/cros_ec_proto.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion

[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

[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 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 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 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 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

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

[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

<    3   4   5   6   7   8