Re: [PATCH] iommu: Ignore -ENODEV errors from add_device call-back returning -ENODEV

2015-06-29 Thread Joerg Roedel
On Mon, Jun 29, 2015 at 10:53:43AM +0200, Marek Szyprowski wrote: On 2015-06-29 10:35, Joerg Roedel wrote: The -ENODEV error just means that the device is not translated by an IOMMU. We shouldn't bail out of iommu driver initialization when that happens, as this is a common scenario on ARM.

[PATCH] ARM: dts: exynos4: add DMA support for serial ports

2015-06-29 Thread Robert Baldyga
Enable DMA transfers for serial ports. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index e20cdc2..21b839b 100644 ---

[PATCHv7 09/15] DocBook/media: add CEC documentation

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hverk...@xs4all.nl Add DocBook documentation for the CEC API. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: add documentation for passthrough mode] [k.deb...@samsung.com: minor fixes and change of reserved field sizes] Signed-off-by: Kamil Debski

[PATCHv7 12/15] adv7842: add cec support

2015-06-29 Thread Hans Verkuil
Add CEC support to the adv7842 driver. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/adv7842.c | 211 +++- 1 file changed, 208 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c

[PATCH 1/4] Makefile.am: copy cec headers with make sync-with-kernel

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Copy the new cec headers. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- Makefile.am | 4 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 1a61592..b8c450d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,6

[PATCH 0/4] cec-ctl/compliance: new CEC utilities

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This patch series adds two new utilities to the v4l-utils git repository (http://git.linuxtv.org/cgit.cgi/v4l-utils.git/). It assumes that the new CEC framework available in the kernel:

[PATCH 2/4] sync-with-kernel

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- contrib/freebsd/include/linux/input.h| 13 + include/linux/cec-funcs.h| 1516 ++ include/linux/cec.h | 709

[PATCH 3/4] cec-compliance: add new CEC compliance utility

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This utility will attempt to test whether the CEC protocol was implemented correctly. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- configure.ac| 1 + utils/Makefile.am | 1 +

[PATCH 4/4] cec-ctl: CEC control utility

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Generic CEC utility that can be used to send/receive/monitor CEC messages. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- configure.ac |1 + utils/Makefile.am |1 + utils/cec-ctl/Makefile.am |8 +

Re: [RESEND PATCH v3] clocksource: exynos_mct: fix for sleeping in atomic ctx handling cpu hotplug notif.

2015-06-29 Thread Krzysztof Kozlowski
2015-06-29 18:19 GMT+09:00 Daniel Lezcano daniel.lezc...@linaro.org: On 06/26/2015 03:23 PM, Damian Eppel wrote: This is to fix an issue of sleeping in atomic context when processing hotplug notifications in Exynos MCT(Multi-Core Timer). The issue was reproducible on Exynos 3250 (Rinato

[PATCHv7 00/15] HDMI CEC framework

2015-06-29 Thread Hans Verkuil
Hi all, The seventh version of this patchset addresses comments on the mailing list and many changes due to the work I did on the cec-compliance and cec-ctl utilities (will be posted in a separate patch series). Please see the changelog below for details. Note: I have taken over from Kamil: he

[PATCHv7 06/15] rc: Add HDMI CEC protocol handling

2015-06-29 Thread Hans Verkuil
From: Kamil Debski ka...@wypas.org Add handling of remote control events coming from the HDMI CEC bus. This patch includes a new keymap that maps values found in the CEC messages to the keys pressed and released. Also, a new protocol has been added to the core. Signed-off-by: Kamil Debski

[PATCHv7 02/15] dts: exynos4: add node for the HDMI CEC device

2015-06-29 Thread Hans Verkuil
From: Kamil Debski ka...@wypas.org This patch adds HDMI CEC node specific to the Exynos4210/4x12 SoC series. Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi |

[PATCHv7 01/15] dts: exynos4*: add HDMI CEC pin definition to pinctrl

2015-06-29 Thread Hans Verkuil
From: Kamil Debski ka...@wypas.org Add pinctrl nodes for the HDMI CEC device to the Exynos4210 and Exynos4x12 SoCs. These are required by the HDMI CEC device. Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Krzysztof Kozlowski

[PATCHv7 03/15] dts: exynos4412-odroid*: enable the HDMI CEC device

2015-06-29 Thread Hans Verkuil
From: Kamil Debski ka...@wypas.org Add a dts node entry and enable the HDMI CEC device present in the Exynos4 family of SoCs. Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Krzysztof Kozlowski k.kozlow...@samsung.com ---

[PATCHv7 04/15] HID: add HDMI CEC specific keycodes

2015-06-29 Thread Hans Verkuil
From: Kamil Debski ka...@wypas.org Add HDMI CEC specific keycodes to the keycodes definition. Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- include/uapi/linux/input.h | 12 1 file changed, 12 insertions(+) diff --git

Re: [RESEND PATCH v3] clocksource: exynos_mct: fix for sleeping in atomic ctx handling cpu hotplug notif.

2015-06-29 Thread Daniel Lezcano
On 06/29/2015 11:24 AM, Thomas Gleixner wrote: On Mon, 29 Jun 2015, Daniel Lezcano wrote: On 06/26/2015 03:23 PM, Damian Eppel wrote: This is to fix an issue of sleeping in atomic context when processing hotplug notifications in Exynos MCT(Multi-Core Timer). The issue was reproducible on

Re: [RESEND PATCH v3] clocksource: exynos_mct: fix for sleeping in atomic ctx handling cpu hotplug notif.

2015-06-29 Thread Thomas Gleixner
On Mon, 29 Jun 2015, Daniel Lezcano wrote: On 06/26/2015 03:23 PM, Damian Eppel wrote: This is to fix an issue of sleeping in atomic context when processing hotplug notifications in Exynos MCT(Multi-Core Timer). The issue was reproducible on Exynos 3250 (Rinato board) and Exynos 5420

[PATCHv7 15/15] cobalt: add cec support

2015-06-29 Thread Hans Verkuil
Add CEC support to the cobalt driver. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/pci/cobalt/cobalt-driver.c | 37 +-- drivers/media/pci/cobalt/cobalt-driver.h | 2 + drivers/media/pci/cobalt/cobalt-v4l2.c | 110 +-- 3 files

[PATCHv7 13/15] cec: adv7511: add cec support.

2015-06-29 Thread Hans Verkuil
Add CEC support to the adv7511 driver. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/i2c/adv7511.c |

[PATCHv7 14/15] cec: s5p-cec: Add s5p-cec driver

2015-06-29 Thread Hans Verkuil
From: Kamil Debski ka...@wypas.org Add CEC interface driver present in the Samsung Exynos range of SoCs. The following files were based on work by SangPil Moon: - exynos_hdmi_cec.h - exynos_hdmi_cecctl.c Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil

[PATCHv7 08/15] cec.txt: add CEC framework documentation

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hansv...@cisco.com Document the new HDMI CEC framework. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: add DocBook documentation by Hans Verkuil, with Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil hans.verk...@cisco.com ---

[PATCHv7 11/15] cec: adv7604: add cec support.

2015-06-29 Thread Hans Verkuil
From: Hans Verkuil hverk...@xs4all.nl Add CEC support to the adv7604 driver. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] [k.deb...@samsung.com: add missing methods cec/io_write_and_or] [k.deb...@samsung.com: change

[PATCHv7 05/15] input.h: add BUS_CEC type

2015-06-29 Thread Hans Verkuil
Inputs can come in over the HDMI CEC bus, so add a new type for this. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- include/uapi/linux/input.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index 7430a3f..0af80b2 100644 ---

[PATCHv7 10/15] v4l2-subdev: add HDMI CEC ops

2015-06-29 Thread Hans Verkuil
Add CEC callbacks to the v4l2_subdev_video_ops. These are the low-level CEC ops that subdevs that support CEC have to implement. Signed-off-by: Hans Verkuil hansv...@cisco.com [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] Signed-off-by: Kamil Debski

[PATCH v2 4/4] cpufreq: exynos: remove Exynos5250 specific cpufreq driver support

2015-06-29 Thread Bartlomiej Zolnierkiewicz
Exynos5250 based platforms have switched over to use generic cpufreq driver for cpufreq functionality. So the Exynos specific cpufreq support for these platforms can be removed. Based on the earlier work by Thomas Abraham. Cc: Viresh Kumar viresh.ku...@linaro.org Cc: Javier Martinez Canillas

[PATCH v2 0/4] cpufreq: use generic cpufreq drivers for Exynos5250 platform

2015-06-29 Thread Bartlomiej Zolnierkiewicz
on top of next-20150629 branch of linux-next kernel tree - dropped dependency on [PATCH 0/6] cpufreq: use generic cpufreq drivers for Exynos4x12 platform patch series as it needs more work (Viresh has requested porting of cpufreq-dt's boost mode support over opp-v2 patches) Depends on: - next

[PATCH v2 3/4] ARM: Exynos: switch to using generic cpufreq driver for Exynos5250

2015-06-29 Thread Bartlomiej Zolnierkiewicz
From: Thomas Abraham thomas...@samsung.com The new CPU clock type allows the use of generic CPUfreq driver. Switch Exynos5250 to using generic cpufreq driver. Changes by Bartlomiej: - split Exynos5250 support from the original patch Cc: Tomasz Figa tomasz.f...@gmail.com Cc: Kukjin Kim

[PATCH] clk: samsung: fix cpu clock's flags checking

2015-06-29 Thread Bartlomiej Zolnierkiewicz
CLK_CPU_HAS_DIV1 and CLK_CPU_NEEDS_DEBUG_ALT_DIV masks were incorrectly used as a bit numbers. Fix it. Tested on Exynos4210 based Origen board and on Exynos5250 based Arndale board. Cc: Tomasz Figa tomasz.f...@gmail.com Cc: Michael Turquette mturque...@baylibre.com Cc: Javier Martinez Canillas

[PATCH v2 2/4] ARM: dts: Exynos5250: add CPU OPP and regulator supply property

2015-06-29 Thread Bartlomiej Zolnierkiewicz
From: Thomas Abraham thomas...@samsung.com For Exynos5250 platforms, add CPU operating points and CPU regulator supply properties for migrating from Exynos specific cpufreq driver to using generic cpufreq driver. Changes by Bartlomiej: - split Exynos5250 support from the original patch - added

[PATCH v2 1/4] clk: samsung: exynos5250: add cpu clock configuration data and instantiate cpu clock

2015-06-29 Thread Bartlomiej Zolnierkiewicz
From: Thomas Abraham thomas...@samsung.com With the addition of the new Samsung specific cpu-clock type, the arm clock can be represented as a cpu-clock type. Add the CPU clock configuration data and instantiate the CPU clock type for Exynos5250. Changes by Bartlomiej: - split Exynos5250 support

Re: [RESEND PATCH v3] clocksource: exynos_mct: fix for sleeping in atomic ctx handling cpu hotplug notif.

2015-06-29 Thread Daniel Lezcano
On 06/26/2015 03:23 PM, Damian Eppel wrote: This is to fix an issue of sleeping in atomic context when processing hotplug notifications in Exynos MCT(Multi-Core Timer). The issue was reproducible on Exynos 3250 (Rinato board) and Exynos 5420 (Arndale Octa board). Whilst testing cpu hotplug

Re: [PATCH] drm/exynos: iommu: fix potential NULL pointer dereference

2015-06-29 Thread Hyungwon Hwang
Dear Marek, On Thu, 25 Jun 2015 15:10:12 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: Some drivers (like Exynos mixer) calls drm_iommu_attach_device_if_possible before registering crtc, so additional check for NULL crtc pointer is required. It seems reasonable. Reviewed-by:

[PATCH] iommu: Ignore -ENODEV errors from add_device call-back returning -ENODEV

2015-06-29 Thread Joerg Roedel
Hi Marek, On Thu, Jun 25, 2015 at 03:10:44PM +0200, Marek Szyprowski wrote: + /* skip devices which doesn't have sysmmu controller */ if (!has_sysmmu(dev)) - return -ENODEV; + return 0; Thanks for reporting this! But I think that the -ENODEV return value

Re: [PATCH] clocksource: exynos_mct: remove unneeded container_of()

2015-06-29 Thread Daniel Lezcano
On 06/21/2015 10:41 PM, Alexey Klimov wrote: Patch removes unneeded container_of() macro in exynos4_local_timer_setup(). Instead let's pass mevt pointer to setup and stop functions from exynos4_mct_cpu_notify() and let them get evt pointer. Tested on odroid-xu3. Signed-off-by: Alexey Klimov

Re: [PATCH] iommu: Ignore -ENODEV errors from add_device call-back returning -ENODEV

2015-06-29 Thread Marek Szyprowski
Hello, On 2015-06-29 10:35, Joerg Roedel wrote: Hi Marek, On Thu, Jun 25, 2015 at 03:10:44PM +0200, Marek Szyprowski wrote: + /* skip devices which doesn't have sysmmu controller */ if (!has_sysmmu(dev)) - return -ENODEV; + return 0; Thanks for

Re: [PATCH v2 2/4] ARM: dts: Exynos5250: add CPU OPP and regulator supply property

2015-06-29 Thread Krzysztof Kozlowski
On 30.06.2015 02:26, Bartlomiej Zolnierkiewicz wrote: From: Thomas Abraham thomas...@samsung.com For Exynos5250 platforms, add CPU operating points and CPU regulator supply properties for migrating from Exynos specific cpufreq driver to using generic cpufreq driver. Changes by Bartlomiej:

Re: [PATCH v2 4/4] cpufreq: exynos: remove Exynos5250 specific cpufreq driver support

2015-06-29 Thread Krzysztof Kozlowski
On 30.06.2015 02:26, Bartlomiej Zolnierkiewicz wrote: Exynos5250 based platforms have switched over to use generic cpufreq driver for cpufreq functionality. So the Exynos specific cpufreq support for these platforms can be removed. Based on the earlier work by Thomas Abraham. Cc: Viresh

Re: [PATCH v2 3/4] ARM: Exynos: switch to using generic cpufreq driver for Exynos5250

2015-06-29 Thread Krzysztof Kozlowski
On 30.06.2015 02:26, Bartlomiej Zolnierkiewicz wrote: From: Thomas Abraham thomas...@samsung.com The new CPU clock type allows the use of generic CPUfreq driver. Switch Exynos5250 to using generic cpufreq driver. Changes by Bartlomiej: - split Exynos5250 support from the original patch

Re: [PATCH] ARM: dts: exynos4: add DMA support for serial ports

2015-06-29 Thread Krzysztof Kozlowski
On 29.06.2015 22:22, Robert Baldyga wrote: Enable DMA transfers for serial ports. Signed-off-by: Robert Baldyga r.bald...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi | 8 1 file changed, 8 insertions(+) Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com Best regards,

Re: [PATCH] clk: samsung: fix cpu clock's flags checking

2015-06-29 Thread Krzysztof Kozlowski
On 30.06.2015 02:29, Bartlomiej Zolnierkiewicz wrote: CLK_CPU_HAS_DIV1 and CLK_CPU_NEEDS_DEBUG_ALT_DIV masks were incorrectly used as a bit numbers. Fix it. Tested on Exynos4210 based Origen board and on Exynos5250 based Arndale board. Cc: Tomasz Figa tomasz.f...@gmail.com Cc: Michael

Re: [PATCHv7 04/15] HID: add HDMI CEC specific keycodes

2015-06-29 Thread Dmitry Torokhov
On Mon, Jun 29, 2015 at 12:14:49PM +0200, Hans Verkuil wrote: From: Kamil Debski ka...@wypas.org Add HDMI CEC specific keycodes to the keycodes definition. Signed-off-by: Kamil Debski ka...@wypas.org Signed-off-by: Hans Verkuil hans.verk...@cisco.com Could you please describe the intended

Re: [PATCHv7 05/15] input.h: add BUS_CEC type

2015-06-29 Thread Dmitry Torokhov
On Mon, Jun 29, 2015 at 12:14:50PM +0200, Hans Verkuil wrote: Inputs can come in over the HDMI CEC bus, so add a new type for this. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Dmitry Torokhov dmitry.torok...@gmail.com --- include/uapi/linux/input.h | 1 + 1 file changed,