[PATCH v7 3/8] mfd: cros_ec: Move protocol helpers out of the MFD driver

2015-06-09 Thread Javier Martinez Canillas
The MFD driver should only have the logic to instantiate its child devices and setup any shared resources that will be used by the subdevices drivers. The cros_ec MFD is more complex than expected since it also has helpers to communicate with the EC. So the driver will only get more bigger as

Re: exynos4412: Audio dies after one day on kernel 4.0

2015-06-09 Thread gabriel
On 06/03/2015 02:05 AM, Krzysztof Kozlowski wrote: On 03.06.2015 04:51, gabr...@unseen.is wrote: On 05/31/2015 08:47 AM, Krzysztof Kozlowski wrote: 2015-05-31 2:32 GMT+09:00 gabr...@unseen.is: Hello, I've been successfully using a self compiled linux kernel until version 3.19 together

[PATCH v7 0/8] mfd: cros_ec: Add multi EC and proto v3 support

2015-06-09 Thread Javier Martinez Canillas
Hello, This is a v7 of a series that adds support for multiple EC in a system and also for the protocol version 3 that is used on newer ECs. Most patches were taken from the downstream ChromiumOS v3.14 tree with fixes squashed, split to minimise the cross subsystem churn and changes for mainline

[PATCH v7 8/8] mfd: cros_ec: spi: Add delay for asserting CS

2015-06-09 Thread Javier Martinez Canillas
From: Alexandru M Stan ams...@chromium.org Some ECs need a little time for waking up before they can accept SPI data at a high speed. This is configurable via a DT property google,cros-ec-spi-pre-delay. This patch makes the cros_ec_spi driver to cause a delay before the beginning of a SPI

[PATCH v7 7/8] mfd: cros_ec: spi: Add a DT property to delay asserting the CS

2015-06-09 Thread Javier Martinez Canillas
From: Alexandru M Stan ams...@chromium.org Some ECs need a little time for waking up before they can accept SPI data at a high speed. Add a google,cros-ec-spi-pre-delay property to the DT binding to configure this. If this property isn't set, then no delay will be added. However, if set it will

Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-09 Thread Javier Martinez Canillas
Hello Olof, On 06/08/2015 10:46 PM, Olof Johansson wrote: On Fri, Jun 05, 2015 at 11:17:30AM +0100, Lee Jones wrote: On Thu, 04 Jun 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec

[PATCH v7 5/8] mfd: cros_ec: add bus-specific proto v3 code

2015-06-09 Thread Javier Martinez Canillas
From: Stephen Barber smbar...@chromium.org Add proto v3 support to the SPI, I2C, and LPC. Signed-off-by: Stephen Barber smbar...@chromium.org Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Tested-by: Heiko Stuebner he...@sntech.de Reviewed-by: Gwendal Grignou

[PATCH v7 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-09 Thread Javier Martinez Canillas
From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec device id has to be incremented for each EC registered. Add a new structure to represent multiple EC as different char devices (e.g: /dev/cros_ec, /dev/cros_pd). It connects to

[PATCH v7 2/8] mfd: cros_ec: rev cros_ec_commands.h

2015-06-09 Thread Javier Martinez Canillas
From: Stephen Barber smbar...@chromium.org Update cros_ec_commands.h to the latest version in the EC firmware sources and add power domain and passthru commands. Also, update lightbar to use new command names. Signed-off-by: Stephen Barber smbar...@chromium.org Reviewed-by: Randall Spangler

[PATCH v7 4/8] mfd: cros_ec: add proto v3 skeleton

2015-06-09 Thread Javier Martinez Canillas
From: Stephen Barber smbar...@chromium.org Add support in cros_ec.c to handle EC host command protocol v3. For v3+, probe for maximum shared protocol version and max request, response, and passthrough sizes. For now, this will always fall back to v2, since there is no bus-specific code for

[PATCH v7 1/8] mfd: cros_ec: Use a zero-length array for command data

2015-06-09 Thread Javier Martinez Canillas
Commit 1b84f2a4cd4a (mfd: cros_ec: Use fixed size arrays to transfer data with the EC) modified the struct cros_ec_command fields to not use pointers for the input and output buffers and use fixed length arrays instead. This change was made because the cros_ec ioctl API uses that struct

Re: [PATCH] cpufreq:exynos-cpufreq - Fix for memory leak in case SOC name does not match.

2015-06-09 Thread Lukasz Majewski
Hi Rafael, On Monday, June 08, 2015 10:31:00 AM Lukasz Majewski wrote: Hi Viresh, On 25-05-15, 07:39, Shailendra Verma wrote: During probe free the memory allocated to exynos_info in case of unknown SOC type. Signed-off-by: Shailendra Verma shailendra.capric...@gmail.com

Re: [PATCH] cpufreq:exynos-cpufreq - Fix for memory leak in case SOC name does not match.

2015-06-09 Thread Krzysztof Kozlowski
On 09.06.2015 16:07, Lukasz Majewski wrote: Hi Rafael, On Monday, June 08, 2015 10:31:00 AM Lukasz Majewski wrote: Hi Viresh, On 25-05-15, 07:39, Shailendra Verma wrote: During probe free the memory allocated to exynos_info in case of unknown SOC type. Signed-off-by: Shailendra Verma

Re: [PATCH 9/9] drm/exynos: unify exynos_drm_plane names with drm core

2015-06-09 Thread Gustavo Padovan
Hi Inki and Joonyoung, Any comments on this series? 2015-06-03 Gustavo Padovan gust...@padovan.org: From: Gustavo Padovan gustavo.pado...@collabora.co.uk Rename crtc_{widht,height} to crtc_{w,h} and src_{width,height} to src_{w,h} to make it similar to the atomic state names.

[PATCH 11/15] pinctrl: kill off set_irq_flags usage

2015-06-09 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID - !IRQ_NOREQUEST IRQF_PROBE - !IRQ_NOPROBE IRQF_NOAUTOEN - IRQ_NOAUTOEN For

[PATCH 01/15] ARM: kill off set_irq_flags usage

2015-06-09 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID - !IRQ_NOREQUEST IRQF_PROBE - !IRQ_NOPROBE IRQF_NOAUTOEN - IRQ_NOAUTOEN For

[PATCH 07/15] irqchip: kill off set_irq_flags usage

2015-06-09 Thread Rob Herring
set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID - !IRQ_NOREQUEST IRQF_PROBE - !IRQ_NOPROBE IRQF_NOAUTOEN - IRQ_NOAUTOEN For

Re: [PATCH 2/3] drm/exynos: fix broken component binding in case of multiple pipelines

2015-06-09 Thread Gustavo Padovan
Hi Andrzej, 2015-06-08 Andrzej Hajda a.ha...@samsung.com: In case there are multiple pipelines and deferred probe occurs, only components of the first pipeline were bound. As a result only one pipeline was available. The main cause of this issue was dynamic generation of component match

Re: [PATCH 3/3] drm/exynos: remove SoC checking code

2015-06-09 Thread Gustavo Padovan
Hi Andrzej, 2015-06-08 Andrzej Hajda a.ha...@samsung.com: SoC checking code is not necessary anymore, as exynos_drm_match_add and exynos_drm_platform_probe already properly handles situation when there are no Exynos DRM components. Signed-off-by: Andrzej Hajda a.ha...@samsung.com ---

Re: [RESEND] ARM: dts: odroidxu3: Enable USB3 regulators

2015-06-09 Thread Krzysztof Kozlowski
W dniu 07.06.2015 o 20:53, Anand Moon pisze: Enable regulator for usbdrd3_0 and usbdrd3_1. Looking at the schematic pin diagram for MAX77802 USB3_0 and USB3_1 is regulated by LDO9 and LD011. Fix the boot message of failed. [3.503539] exynos-dwc3 usb@1200: Looking up vdd33-supply

Re: [PATCH 3/3] drm/exynos: remove SoC checking code

2015-06-09 Thread Hyungwon Hwang
Hi Andrzej, On Tue, 09 Jun 2015 16:46:52 -0300 Gustavo Padovan gust...@padovan.org wrote: Hi Andrzej, 2015-06-08 Andrzej Hajda a.ha...@samsung.com: SoC checking code is not necessary anymore, as exynos_drm_match_add and exynos_drm_platform_probe already properly handles situation

Re: [PATCHv2] ARM: exynos_defconfig: Enable CONFIG_SND_SOC_ODROIDX2 for Odroid-XU3

2015-06-09 Thread Krzysztof Kozlowski
On 09.06.2015 13:07, Anand Moon wrote: Enable CONFIG_SND_SOC_ODROIDX2 and CONFIG_SND_SIMPLE_CARD to enable sound on Odroid-XU3 board using the max98090 audio codec. Signed-off-by: Anand Moon linux.am...@gmail.com Reviewed-by: Lukasz Majewski l.majew...@samsung.com --- Changes v2: Fixed the