Re: [PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-20 Thread Minghsiu Tsai
On Mon, 2017-06-19 at 12:10 +0200, Hans Verkuil wrote: > On 06/19/2017 12:03 PM, Minghsiu Tsai wrote: > > Hi, Hans, > > > > On Fri, 2017-06-16 at 12:42 +0200, Hans Verkuil wrote: > >> On 05/12/17 04:42, Minghsiu Tsai wrote: > >>> From: Daniel Kurtz <

Re: [PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-20 Thread Minghsiu Tsai
On Mon, 2017-06-19 at 12:10 +0200, Hans Verkuil wrote: > On 06/19/2017 12:03 PM, Minghsiu Tsai wrote: > > Hi, Hans, > > > > On Fri, 2017-06-16 at 12:42 +0200, Hans Verkuil wrote: > >> On 05/12/17 04:42, Minghsiu Tsai wrote: > >>> From:

Re: [PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-19 Thread Minghsiu Tsai
Hi, Hans, On Fri, 2017-06-16 at 12:42 +0200, Hans Verkuil wrote: > On 05/12/17 04:42, Minghsiu Tsai wrote: > > From: Daniel Kurtz <djku...@chromium.org> > > > > Experiments show that the: > > (1) mtk-mdp uses the _MPLANE form of CAPTURE/OUTPUT > > Please

Re: [PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-19 Thread Minghsiu Tsai
Hi, Hans, On Fri, 2017-06-16 at 12:42 +0200, Hans Verkuil wrote: > On 05/12/17 04:42, Minghsiu Tsai wrote: > > From: Daniel Kurtz > > > > Experiments show that the: > > (1) mtk-mdp uses the _MPLANE form of CAPTURE/OUTPUT > > Please drop this, since this no lo

Re: [PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-15 Thread Minghsiu Tsai
Hi, Hans, Would you have time to review this patch v2? The patch v1 violates v4l2 spec. I have fixed it in v2. Sincerely, Ming Hsiu On Fri, 2017-05-12 at 10:42 +0800, Minghsiu Tsai wrote: > From: Daniel Kurtz <djku...@chromium.org> > > Experiments show that the: >

Re: [PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-15 Thread Minghsiu Tsai
Hi, Hans, Would you have time to review this patch v2? The patch v1 violates v4l2 spec. I have fixed it in v2. Sincerely, Ming Hsiu On Fri, 2017-05-12 at 10:42 +0800, Minghsiu Tsai wrote: > From: Daniel Kurtz > > Experiments show that the: > (1) mtk-mdp uses the _MPLANE for

Re: [PATCH] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-07 Thread Minghsiu Tsai
Hi, Stanimir Varbanov, I have upload patch v2. https://patchwork.kernel.org/patch/9723463/ Could you review it? Thanks On Thu, 2017-04-27 at 17:42 +0300, Stanimir Varbanov wrote: > Hi, > > On 04/13/2017 07:18 AM, Minghsiu Tsai wrote: > > From: Daniel Kurtz <dj

Re: [PATCH] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-06-07 Thread Minghsiu Tsai
Hi, Stanimir Varbanov, I have upload patch v2. https://patchwork.kernel.org/patch/9723463/ Could you review it? Thanks On Thu, 2017-04-27 at 17:42 +0300, Stanimir Varbanov wrote: > Hi, > > On 04/13/2017 07:18 AM, Minghsiu Tsai wrote: > > From: Daniel Kurtz > >

Re: [PATCH v3 0/3] Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
On Mon, 2017-05-22 at 16:16 +0200, Hans Verkuil wrote: > On 05/22/2017 04:14 PM, Matthias Brugger wrote: > > > > > > On 22/05/17 11:09, Hans Verkuil wrote: > >> On 05/12/2017 05:22 AM, Minghsiu Tsai wrote: > >> > >> Who should take care

Re: [PATCH v3 0/3] Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
On Mon, 2017-05-22 at 16:16 +0200, Hans Verkuil wrote: > On 05/22/2017 04:14 PM, Matthias Brugger wrote: > > > > > > On 22/05/17 11:09, Hans Verkuil wrote: > >> On 05/12/2017 05:22 AM, Minghsiu Tsai wrote: > >> > >> Who should take care

[PATCH v4 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> Acked-by: Rob Herr

[PATCH v4 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Minghsiu Tsai Acked-by: Rob Herring Acked-by: Hans Verkuil

[PATCH v4 0/3] Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Daniel Kurtz (2): arm64: dts: mt8173: Fix mdp device tree media: mtk-mdp: Fix mdp device tree Minghsiu Tsai (1): dt-bindings: mt8173: Fix mdp device tree .../devicetree/bindings/media/mediatek

[PATCH v4 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
<djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> Signed-off-by: Matthias Brugger <matthias@gmail.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH v4 0/3] Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Daniel Kurtz (2): arm64: dts: mt8173: Fix mdp device tree media: mtk-mdp: Fix mdp device tree Minghsiu Tsai (1): dt-bindings: mt8173: Fix mdp device tree .../devicetree/bindings/media/mediatek

[PATCH v4 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
simplifies the device tree. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai

[PATCH v4 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
<djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> Acked-by: Hans Verkuil <hans.verk...@cisco.com> --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 126 +++ 1 file changed, 60 insertions(+), 66 deletions(-) diff --git a/arch/arm64/

[PATCH v4 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
simplifies the device tree. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai Acked

Re: [PATCH v3 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-14 Thread Minghsiu Tsai
On Fri, 2017-05-12 at 17:05 +0200, Matthias Brugger wrote: > > On 12/05/17 05:22, Minghsiu Tsai wrote: > > From: Daniel Kurtz <djku...@chromium.org> > > > > If the mdp_* nodes are under an mdp sub-node, their corresponding > > platform device does not

Re: [PATCH v3 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-14 Thread Minghsiu Tsai
On Fri, 2017-05-12 at 17:05 +0200, Matthias Brugger wrote: > > On 12/05/17 05:22, Minghsiu Tsai wrote: > > From: Daniel Kurtz > > > > If the mdp_* nodes are under an mdp sub-node, their corresponding > > platform device does not automatically get its iommu a

[PATCH v3 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
<djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 126 +++ 1 file changed, 60 insertions(+), 66 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/d

[PATCH v3 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
simplifies the device tree. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai

[PATCH v3 0/3] Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
, to keep driver work properly. Daniel Kurtz (2): arm64: dts: mt8173: Fix mdp device tree media: mtk-mdp: Fix mdp device tree Minghsiu Tsai (1): dt-bindings: mt8173: Fix mdp device tree .../devicetree/bindings/media/mediatek-mdp.txt | 12 +- arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH v3 0/3] Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
, to keep driver work properly. Daniel Kurtz (2): arm64: dts: mt8173: Fix mdp device tree media: mtk-mdp: Fix mdp device tree Minghsiu Tsai (1): dt-bindings: mt8173: Fix mdp device tree .../devicetree/bindings/media/mediatek-mdp.txt | 12 +- arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH v3 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
<djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c b/drivers/media/platform/mtk-mdp/mtk_mdp_co

[PATCH v3 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- Documen

[PATCH v3 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
simplifies the device tree. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai

[PATCH v3 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Minghsiu Tsai --- Documentation/devicetree/bindings/media/mediatek

[PATCH 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- Documen

[PATCH v2 0/3] Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
device tree Minghsiu Tsai (1): dt-bindings: mt8173: Fix mdp device tree .../devicetree/bindings/media/mediatek-mdp.txt | 12 +- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 126 ++--- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 2 +- 3 files changed, 64

[PATCH 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Minghsiu Tsai --- Documentation/devicetree/bindings/media/mediatek

[PATCH v2 0/3] Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
device tree Minghsiu Tsai (1): dt-bindings: mt8173: Fix mdp device tree .../devicetree/bindings/media/mediatek-mdp.txt | 12 +- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 126 ++--- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 2 +- 3 files changed, 64

[PATCH 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
<djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 126 +++ 1 file changed, 60 insertions(+), 66 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/d

[PATCH 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
<djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c b/drivers/media/platform/mtk-mdp/mtk_mdp_co

[PATCH 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
simplifies the device tree. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai

[PATCH 3/3] media: mtk-mdp: Fix mdp device tree

2017-05-11 Thread Minghsiu Tsai
simplifies the device tree. Although it fixes iommu assignment issue, it also break compatibility with old device tree. So, the patch in driver is needed to iterate over sibling mdp device nodes, not child ones, to keep driver work properly. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai

[PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-05-11 Thread Minghsiu Tsai
From: Daniel Kurtz <djku...@chromium.org> Experiments show that the: (1) mtk-mdp uses the _MPLANE form of CAPTURE/OUTPUT (2) CAPTURE types use CROP targets, and OUTPUT types use COMPOSE targets Signed-off-by: Daniel Kurtz <djku...@chromium.org> Signed-off-by: Minghsiu Tsai

[PATCH v2] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-05-11 Thread Minghsiu Tsai
From: Daniel Kurtz Experiments show that the: (1) mtk-mdp uses the _MPLANE form of CAPTURE/OUTPUT (2) CAPTURE types use CROP targets, and OUTPUT types use COMPOSE targets Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai Signed-off-by: Houlong Wei --- Changes in v2: . Can not use

Re: [PATCH 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-04-20 Thread Minghsiu Tsai
On Wed, 2017-04-19 at 16:35 -0500, Rob Herring wrote: > On Thu, Apr 13, 2017 at 03:33:05PM +0800, Minghsiu Tsai wrote: > > If the mdp_* nodes are under an mdp sub-node, their corresponding > > platform device does not automatically get its iommu assigned properly. > > &

Re: [PATCH 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-04-20 Thread Minghsiu Tsai
On Wed, 2017-04-19 at 16:35 -0500, Rob Herring wrote: > On Thu, Apr 13, 2017 at 03:33:05PM +0800, Minghsiu Tsai wrote: > > If the mdp_* nodes are under an mdp sub-node, their corresponding > > platform device does not automatically get its iommu assigned properly. > > &

[PATCH 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
. Signed-off-by: Daniel Kurtz <djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- Documentation/devicetree/bindings/media/mediatek-mdp.txt | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bi

[PATCH 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai --- Documentation/devicetree/bindings/media/mediatek-mdp.txt | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/media/mediatek-mdp.txt b/Documentation/devicetree/bindings

[PATCH 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
er SoC subsystems. This also simplifies the device tree. Signed-off-by: Daniel Kurtz <djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 126 +++ 1 file changed, 60 insertions(+), 66 deleti

[PATCH 2/3] arm64: dts: mt8173: Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
simplifies the device tree. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 126 +++ 1 file changed, 60 insertions(+), 66 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts

[PATCH 0/3] Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
Fix this by moving the mdp component nodes up a level such that they are siblings of mdp and all other SoC subsystems. This also simplifies the device tree. Daniel Kurtz (2): arm64: dts: mt8173: Fix mdp device tree media: mtk-mdp: Fix mdp device tree Minghsiu Tsai (1): dt-bindings: mt8173

[PATCH 3/3] media: mtk-mdp: Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
er SoC subsystems. This also simplifies the device tree. Signed-off-by: Daniel Kurtz <djku...@chromium.org> Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 0/3] Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
Fix this by moving the mdp component nodes up a level such that they are siblings of mdp and all other SoC subsystems. This also simplifies the device tree. Daniel Kurtz (2): arm64: dts: mt8173: Fix mdp device tree media: mtk-mdp: Fix mdp device tree Minghsiu Tsai (1): dt-bindings: mt8173

[PATCH 3/3] media: mtk-mdp: Fix mdp device tree

2017-04-13 Thread Minghsiu Tsai
simplifies the device tree. Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c b/drivers/media/platform/mtk-mdp/mtk_mdp_core.c index

[PATCH] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-04-12 Thread Minghsiu Tsai
From: Daniel Kurtz <djku...@chromium.org> Experiments show that the: (1) mtk-mdp uses the _MPLANE form of CAPTURE/OUTPUT (2) CAPTURE types use CROP targets, and OUTPUT types use COMPOSE targets Signed-off-by: Daniel Kurtz <djku...@chromium.org> Signed-off-by: Minghsiu Tsai

[PATCH] [media] mtk-mdp: Fix g_/s_selection capture/compose logic

2017-04-12 Thread Minghsiu Tsai
From: Daniel Kurtz Experiments show that the: (1) mtk-mdp uses the _MPLANE form of CAPTURE/OUTPUT (2) CAPTURE types use CROP targets, and OUTPUT types use COMPOSE targets Signed-off-by: Daniel Kurtz Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 18

[PATCH] media: mtk-vcodec: remove informative log

2017-04-05 Thread Minghsiu Tsai
fops_vcodec_release(),200: [0] decoder Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_

[PATCH] media: mtk-vcodec: remove informative log

2017-04-05 Thread Minghsiu Tsai
fops_vcodec_release(),200: [0] decoder Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h index 7d55975..1248083

[PATCH] media: mtk-jpeg: fix continuous log "Context is NULL"

2017-03-14 Thread Minghsiu Tsai
_abort() and clear interrupt before v4l2_m2m_get_curr_priv() in irq. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/

[PATCH] media: mtk-jpeg: fix continuous log "Context is NULL"

2017-03-14 Thread Minghsiu Tsai
_abort() and clear interrupt before v4l2_m2m_get_curr_priv() in irq. Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c b/drivers/medi

[PATCH v2] [media] mtk-vcodec: fix build errors without DEBUG

2017-02-07 Thread Minghsiu Tsai
definition, and functions still work fine. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- Changes in v2: . Update commit message --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 9 - drivers/media/platfor

[PATCH v2] [media] mtk-vcodec: fix build errors without DEBUG

2017-02-07 Thread Minghsiu Tsai
definition, and functions still work fine. Signed-off-by: Minghsiu Tsai Reviewed-by: Daniel Kurtz --- Changes in v2: . Update commit message --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 9 - drivers/media/platform/mtk-vcodec/vdec_vpu_if.c| 5 ++--- drivers/media/platform/mtk

Re: [PATCH] [media] mtk-vcodec: fix build errors without DEBUG

2017-02-07 Thread Minghsiu Tsai
On Tue, 2017-02-07 at 20:17 +0800, Daniel Kurtz wrote: > On Tue, Feb 7, 2017 at 3:40 PM, Minghsiu Tsai > <minghsiu.t...@mediatek.com> wrote: > > Fix build errors after removing DEBUG definition. > > It would be useful to specify which build errors were fixed by t

Re: [PATCH] [media] mtk-vcodec: fix build errors without DEBUG

2017-02-07 Thread Minghsiu Tsai
On Tue, 2017-02-07 at 20:17 +0800, Daniel Kurtz wrote: > On Tue, Feb 7, 2017 at 3:40 PM, Minghsiu Tsai > wrote: > > Fix build errors after removing DEBUG definition. > > It would be useful to specify which build errors were fixed by this > patch, and a brief description of

[PATCH] [media] mtk-vcodec: fix build errors without DEBUG

2017-02-06 Thread Minghsiu Tsai
Fix build errors after removing DEBUG definition. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 9 - drivers/media/platform/mtk-vcodec/vdec_vpu_if.c| 5 ++--- drivers/media/platform/mtk-vcodec/venc_vpu_if.c

[PATCH] [media] mtk-vcodec: fix build errors without DEBUG

2017-02-06 Thread Minghsiu Tsai
Fix build errors after removing DEBUG definition. Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 9 - drivers/media/platform/mtk-vcodec/vdec_vpu_if.c| 5 ++--- drivers/media/platform/mtk-vcodec/venc_vpu_if.c| 4 +--- 3 files changed, 7

Re: [PATCH] [media] mtk-mdp: allocate video_device dynamically

2016-11-14 Thread Minghsiu Tsai
On Fri, 2016-11-11 at 11:51 +0100, Hans Verkuil wrote: > Almost correct: > > On 11/07/2016 01:42 PM, Minghsiu Tsai wrote: > > It can fix known problems with embedded video_device structs. > > > > Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> > &

Re: [PATCH] [media] mtk-mdp: allocate video_device dynamically

2016-11-14 Thread Minghsiu Tsai
On Fri, 2016-11-11 at 11:51 +0100, Hans Verkuil wrote: > Almost correct: > > On 11/07/2016 01:42 PM, Minghsiu Tsai wrote: > > It can fix known problems with embedded video_device structs. > > > > Signed-off-by: Minghsiu Tsai > > --- > > drivers/med

[PATCH v2] [media] mtk-mdp: allocate video_device dynamically

2016-11-14 Thread Minghsiu Tsai
It can fix known problems with embedded video_device structs. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- Changes in v2: . Call video_device_release() instead of video_unregister_device() in mtk_mdp_register_m2m_device() --- drivers/media/platform/mtk-mdp/mtk_mdp_

[PATCH v2] [media] mtk-mdp: allocate video_device dynamically

2016-11-14 Thread Minghsiu Tsai
It can fix known problems with embedded video_device structs. Signed-off-by: Minghsiu Tsai --- Changes in v2: . Call video_device_release() instead of video_unregister_device() in mtk_mdp_register_m2m_device() --- drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 2 +- drivers/media

Re: [PATCH next 1/2] media: mtk-mdp: fix video_device_release argument

2016-11-07 Thread Minghsiu Tsai
On Thu, 2016-11-03 at 13:47 +0100, Hans Verkuil wrote: > Hi Vincent, > > On 28/10/16 09:52, Vincent Stehlé wrote: > > On Thu, Oct 27, 2016 at 10:23:24PM +0200, Vincent Stehlé wrote: > >> video_device_release() takes a pointer to struct video_device as argument. > >> Fix two call sites where the

Re: [PATCH next 1/2] media: mtk-mdp: fix video_device_release argument

2016-11-07 Thread Minghsiu Tsai
On Thu, 2016-11-03 at 13:47 +0100, Hans Verkuil wrote: > Hi Vincent, > > On 28/10/16 09:52, Vincent Stehlé wrote: > > On Thu, Oct 27, 2016 at 10:23:24PM +0200, Vincent Stehlé wrote: > >> video_device_release() takes a pointer to struct video_device as argument. > >> Fix two call sites where the

[PATCH] media: mtk-mdp: allocate video_device dynamically

2016-11-07 Thread Minghsiu Tsai
) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Minghsiu Tsai (1): [media] mtk-mdp: allocate

[PATCH] media: mtk-mdp: allocate video_device dynamically

2016-11-07 Thread Minghsiu Tsai
) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Minghsiu Tsai (1): [media] mtk-mdp: allocate

[PATCH] [media] mtk-mdp: allocate video_device dynamically

2016-11-07 Thread Minghsiu Tsai
It can fix known problems with embedded video_device structs. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 2 +- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 33 --- 2 files changed, 21 insertions(

[PATCH] [media] mtk-mdp: allocate video_device dynamically

2016-11-07 Thread Minghsiu Tsai
It can fix known problems with embedded video_device structs. Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 2 +- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 33 --- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git

[PATCH 1/2] media: mtk-mdp: fix build warning in arch x86

2016-09-19 Thread Minghsiu Tsai
This patch fix build warning in arch x86 Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |1 + drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c | 10 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/d

[PATCH 1/2] media: mtk-mdp: fix build warning in arch x86

2016-09-19 Thread Minghsiu Tsai
This patch fix build warning in arch x86 Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |1 + drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c | 10 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/mtk-mdp

[PATCH 2/2] media: mtk-mdp: fix build error

2016-09-19 Thread Minghsiu Tsai
This patch fix build error without CONFIG_PM_RUNTIME and CONFIG_PM_SLEEP Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/m

[PATCH 0/2] Fix build warning and error in Mediatek MDP driver

2016-09-19 Thread Minghsiu Tsai
: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Minghsiu Tsai (2): media: mtk-mdp: fix build warning in arch x86 media: mtk-mdp: fix build error drivers/media/platform/mtk-mdp/mtk_mdp_core.c |4 ++-- drivers/media/platform/mtk

[PATCH 2/2] media: mtk-mdp: fix build error

2016-09-19 Thread Minghsiu Tsai
This patch fix build error without CONFIG_PM_RUNTIME and CONFIG_PM_SLEEP Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c b/drivers/media

[PATCH 0/2] Fix build warning and error in Mediatek MDP driver

2016-09-19 Thread Minghsiu Tsai
: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Minghsiu Tsai (2): media: mtk-mdp: fix build warning in arch x86 media: mtk-mdp: fix build error drivers/media/platform/mtk-mdp/mtk_mdp_core.c |4 ++-- drivers/media/platform/mtk

Re: [PATCH v6 0/6] Add MT8173 MDP Driver

2016-09-18 Thread Minghsiu Tsai
s in kzalloc() and kfree() used in mtk_mdp_m2m.c. It can be fixed by including linux/slab.h I will upload the patches today. Thanks Ming Hsiu > Regards, > > Hans > > > On 09/08/2016 03:09 PM, Minghsiu Tsai wrote: > > Changes in v6: > > - s_selection() can't s

Re: [PATCH v6 0/6] Add MT8173 MDP Driver

2016-09-18 Thread Minghsiu Tsai
s in kzalloc() and kfree() used in mtk_mdp_m2m.c. It can be fixed by including linux/slab.h I will upload the patches today. Thanks Ming Hsiu > Regards, > > Hans > > > On 09/08/2016 03:09 PM, Minghsiu Tsai wrote: > > Changes in v6: > > - s_selection() can't s

[PATCH v6 4/6] arm64: dts: mediatek: Add MDP for MT8173

2016-09-08 Thread Minghsiu Tsai
Add MDP node for MT8173 Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 84 ++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/

[PATCH v6 4/6] arm64: dts: mediatek: Add MDP for MT8173

2016-09-08 Thread Minghsiu Tsai
Add MDP node for MT8173 Signed-off-by: Minghsiu Tsai --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 84 ++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 10f638f..cd93228

[PATCH v6 1/6] VPU: mediatek: Add mdp support

2016-09-08 Thread Minghsiu Tsai
VPU driver add mdp support Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-vpu/mtk_vpu.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h b/drivers/media/platform/mtk-vpu/mtk_vpu.h index f

[PATCH v6 1/6] VPU: mediatek: Add mdp support

2016-09-08 Thread Minghsiu Tsai
VPU driver add mdp support Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-vpu/mtk_vpu.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h b/drivers/media/platform/mtk-vpu/mtk_vpu.h index f457479..291ae46 100644 --- a/drivers/media

[PATCH v6 5/6] media: mtk-mdp: support pixelformat V4L2_PIX_FMT_MT21C

2016-09-08 Thread Minghsiu Tsai
Add V4L2_PIX_FMT_MT21C in format list. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |8 drivers/media/platform/mtk-mdp/mtk_mdp_regs.c |4 2 files changed, 12 insertions(+) diff --git a/drivers/media/pl

[PATCH v6 5/6] media: mtk-mdp: support pixelformat V4L2_PIX_FMT_MT21C

2016-09-08 Thread Minghsiu Tsai
Add V4L2_PIX_FMT_MT21C in format list. Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |8 drivers/media/platform/mtk-mdp/mtk_mdp_regs.c |4 2 files changed, 12 insertions(+) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c b

[PATCH v6 3/6] media: Add Mediatek MDP Driver

2016-09-08 Thread Minghsiu Tsai
Add MDP driver for MT8173 Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/Kconfig| 17 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-mdp/Makefile |9 + drivers/media/platform/m

[PATCH v6 3/6] media: Add Mediatek MDP Driver

2016-09-08 Thread Minghsiu Tsai
Add MDP driver for MT8173 Signed-off-by: Minghsiu Tsai --- drivers/media/platform/Kconfig| 17 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-mdp/Makefile |9 + drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 159 drivers

[PATCH v6 2/6] dt-bindings: Add a binding for Mediatek MDP

2016-09-08 Thread Minghsiu Tsai
Add a DT binding documentation of MDP for the MT8173 SoC from Mediatek Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/media/mediatek-mdp.txt | 109 1 file changed, 109 insertion

[PATCH v6 2/6] dt-bindings: Add a binding for Mediatek MDP

2016-09-08 Thread Minghsiu Tsai
Add a DT binding documentation of MDP for the MT8173 SoC from Mediatek Signed-off-by: Minghsiu Tsai Acked-by: Rob Herring --- .../devicetree/bindings/media/mediatek-mdp.txt | 109 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v6 0/6] Add MT8173 MDP Driver

2016-09-08 Thread Minghsiu Tsai
IOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Minghsiu Tsai (6): VPU: mediatek: Add mdp support dt-bindings: Add a binding for Mediatek MDP media: Add Mediatek MDP Driver arm64: dts: mediatek: Add MDP for MT8173

[PATCH v6 0/6] Add MT8173 MDP Driver

2016-09-08 Thread Minghsiu Tsai
IOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Minghsiu Tsai (6): VPU: mediatek: Add mdp support dt-bindings: Add a binding for Mediatek MDP media: Add Mediatek MDP Driver arm64: dts: mediatek: Add MDP for MT8173

[PATCH v6 6/6] media: mtk-mdp: add Maintainers entry for Mediatek MDP driver

2016-09-08 Thread Minghsiu Tsai
Add Minghsiu Tsai, Houlong Wei and Andrew-CT Chen as maintainers for Mediatek MDP driver Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> Signed-off-by: Houlong Wei <houlong@mediatek.com> Signed-off-by: Andrew-CT Chen <andrew-ct.c...@mediatek.com> --- MAINTAINERS |

[PATCH v6 6/6] media: mtk-mdp: add Maintainers entry for Mediatek MDP driver

2016-09-08 Thread Minghsiu Tsai
Add Minghsiu Tsai, Houlong Wei and Andrew-CT Chen as maintainers for Mediatek MDP driver Signed-off-by: Minghsiu Tsai Signed-off-by: Houlong Wei Signed-off-by: Andrew-CT Chen --- MAINTAINERS |9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH v5 3/5] media: Add Mediatek MDP Driver

2016-09-08 Thread Minghsiu Tsai
On Mon, 2016-09-05 at 12:17 +0200, Hans Verkuil wrote: > On 08/30/2016 02:25 PM, Minghsiu Tsai wrote: > > Add MDP driver for MT8173 > > > > Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> > > --- > > drivers/media/platform/Kconfig

Re: [PATCH v5 3/5] media: Add Mediatek MDP Driver

2016-09-08 Thread Minghsiu Tsai
On Mon, 2016-09-05 at 12:17 +0200, Hans Verkuil wrote: > On 08/30/2016 02:25 PM, Minghsiu Tsai wrote: > > Add MDP driver for MT8173 > > > > Signed-off-by: Minghsiu Tsai > > --- > > drivers/media/platform/Kconfig| 17 + > > drivers/media

[PATCH v5 5/5] media: mtk-mdp: support pixelformat V4L2_PIX_FMT_MT21C

2016-08-30 Thread Minghsiu Tsai
Add V4L2_PIX_FMT_MT21C in format list. Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |8 drivers/media/platform/mtk-mdp/mtk_mdp_regs.c |4 2 files changed, 12 insertions(+) diff --git a/drivers/media/pl

[PATCH v5 1/5] VPU: mediatek: Add mdp support

2016-08-30 Thread Minghsiu Tsai
VPU driver add mdp support Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> --- drivers/media/platform/mtk-vpu/mtk_vpu.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h b/drivers/media/platform/mtk-vpu/mtk_vpu.h index f

[PATCH v5 1/5] VPU: mediatek: Add mdp support

2016-08-30 Thread Minghsiu Tsai
VPU driver add mdp support Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-vpu/mtk_vpu.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h b/drivers/media/platform/mtk-vpu/mtk_vpu.h index f457479..291ae46 100644 --- a/drivers/media

[PATCH v5 5/5] media: mtk-mdp: support pixelformat V4L2_PIX_FMT_MT21C

2016-08-30 Thread Minghsiu Tsai
Add V4L2_PIX_FMT_MT21C in format list. Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |8 drivers/media/platform/mtk-mdp/mtk_mdp_regs.c |4 2 files changed, 12 insertions(+) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c b

[PATCH v5 2/5] dt-bindings: Add a binding for Mediatek MDP

2016-08-30 Thread Minghsiu Tsai
Add a DT binding documentation of MDP for the MT8173 SoC from Mediatek Signed-off-by: Minghsiu Tsai <minghsiu.t...@mediatek.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/media/mediatek-mdp.txt | 109 1 file changed, 109 insertion

[PATCH v5 2/5] dt-bindings: Add a binding for Mediatek MDP

2016-08-30 Thread Minghsiu Tsai
Add a DT binding documentation of MDP for the MT8173 SoC from Mediatek Signed-off-by: Minghsiu Tsai Acked-by: Rob Herring --- .../devicetree/bindings/media/mediatek-mdp.txt | 109 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings

  1   2   >