[PATCH v3 04/10] media: aspeed: remove IRQF_SHARED flag

2019-05-31 Thread Jae Hyun Yoo
Video Engine has a dedicated interrupt line so this driver doesn't need to use IRQF_SHARED flag so remove it. Also, it'd be good for following what Thomas recommended in the IRQF_ONESHOT support patch like below: "Note that for now IRQF_ONESHOT cannot be used with IRQF_SHARED to avoid complex acco

[PATCH v3 06/10] media: aspeed: remove checking of VE_INTERRUPT_CAPTURE_COMPLETE

2019-05-31 Thread Jae Hyun Yoo
VE_INTERRUPT_CAPTURE_COMPLETE and VE_INTERRUPT_COMP_COMPLETE are not set at the same time but the current interrupt handling mechanism of this driver doesn't clear the interrupt flag until both two are set, and this behavior causes unnecessary interrupt handler calls. In fact, this driver provides

[PATCH v3 10/10] media: aspeed: add a workaround to fix a silicon bug

2019-05-31 Thread Jae Hyun Yoo
AST2500 silicon revision A1 and A2 have a silicon bug which causes extremly long capturing time on specific resolutions (1680 width). To fix the bug, this commit adjusts the capturing window register setting to 1728 if detected width is 1680. The compression window register setting will be kept as

[PATCH v3 03/10] media: aspeed: change irq to threaded irq

2019-05-31 Thread Jae Hyun Yoo
Differently from other Aspeed drivers, this driver calls clock control APIs in interrupt context. Since ECLK is coupled with a reset bit in clk-aspeed module, aspeed_clk_enable will make 10ms of busy waiting delay for triggering the reset and it will eventually disturb other drivers' interrupt hand

[PATCH v3 08/10] media: aspeed: remove source buffer allocation before mode detection

2019-05-31 Thread Jae Hyun Yoo
Mode detection doesn't require source buffer allocation so this commit removes that. Signed-off-by: Jae Hyun Yoo Reviewed-by: Eddie James --- v2 -> v3: Corrected re-allocation logic of source buffers. v1 -> v2: New. drivers/media/platform/aspeed-video.c | 37 --- 1 f

[PATCH v3 01/10] media: aspeed: fix a kernel warning on clk control

2019-05-31 Thread Jae Hyun Yoo
Video engine clock control can be double disabled and eventually it causes a kernel warning with stack dump printing out like below: [ 515.540498] [ cut here ] [ 515.545174] WARNING: CPU: 0 PID: 1310 at drivers/clk/clk.c:684 clk_core_unprepare+0x13c/0x170 [ 515.553806]

[PATCH v3 02/10] media: aspeed: refine clock control logic

2019-05-31 Thread Jae Hyun Yoo
Currently, this driver calls clk_prepare and clk_unprepare from interrupt context too but these should be called from sleepable context only. To fix this issue, this commit splits out clk_enable/disable and clk_prepare/unprepare, and it places clk_prepare/unprepare calls into the module probe/remov

[PATCH v3 00/10] Improve stability and add bug fixes of Aspeed video engine driver

2019-05-31 Thread Jae Hyun Yoo
This patch series improves stability of Aspeed video engine driver by fixing clock control and irq handling logic in the driver. Also, it adds a couple of bug fixes and a workaroud for a silicon bug. Changes since v2: - Corrected re-allocation logic of source buffer. - Removed an incorrect patch f

[PATCH v3 05/10] media: aspeed: reduce noisy log printing outs

2019-05-31 Thread Jae Hyun Yoo
Currently, this driver prints out too much log messages when a mode change happens, video turned off by screen saver and etc. Actually, all cases are reported to user space properly. Also, these are not critical errors but recoverable things, so this commit changes the log level of some noisy print

[PATCH v3 09/10] media: aspeed: use different delays for triggering VE H/W reset

2019-05-31 Thread Jae Hyun Yoo
In case of watchdog timeout detected while doing mode detection, it's better triggering video engine hardware reset immediately so this commit fixes code for the case. Other than the case, it will trigger video engine hardware reset after RESOLUTION_CHANGE_DELAY. Signed-off-by: Jae Hyun Yoo Revie

[PATCH v3 07/10] media: aspeed: refine interrupt handling logic

2019-05-31 Thread Jae Hyun Yoo
There are cases that interrupt bits are cleared by a 500ms delayed work which causes unnecessary irq calls. Also, the current interrupt handler returns IRQ_HANDLED always but it should return IRQ_NONE if there is any unhandled interrupt. So this commit refines the interrupt handling logic to fix th

Re: [v8] media: imx: add mem2mem device

2019-05-31 Thread Sven Van Asbroeck
Hi Robin, On Thu, May 30, 2019 at 8:26 PM Robin Gong wrote: > What's soc chip and board you used? Could you post log? The mainline kernel we've been using does not have any sdma firmware, and as a result we get this in the log: # uname -a Linux Chimera 5.2.0-rc2-00041-g22a1787e8f40 #66

Re: [ANN] Patchwork version upgrade

2019-05-31 Thread Mauro Carvalho Chehab
Em Fri, 31 May 2019 16:40:21 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 31 May 2019 15:01:06 -0400 > Nicolas Dufresne escreveu: > > > Actually I went a little into it, the black and white alternance for > > lines clearly does not work. > > Black and white alternance? Here, the backgrou

Re: [PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Sean Young
Hi Brad, On Fri, May 31, 2019 at 12:20:45PM -0500, Brad Love wrote: > Hi Shawn, > > Just found time to get back to this. I fixed all the checkpatch strict > warnings, no problem. Then I noticed a few comments of yours that I > somehow missed first time around. I've replied inline to those. > >

Re: [v8] media: imx: add mem2mem device

2019-05-31 Thread Sven Van Asbroeck
Hello Nicholas and Fabio, The sdma firmware turned out to be a non-issue: adding "qos=0" to kmssink (as suggested by Nicholas) is what fixed kmssink performance, unrelated to sdma. (Although I still see an sdma issue, unrelated to this thread - I will talk to Robin about it outside of the thread)

Re: [PATCH v2 11/11] media: aspeed: add a workaround to fix a silicon bug

2019-05-31 Thread Jae Hyun Yoo
Hi Ryan, On 5/31/2019 9:32 AM, Ryan Chen wrote: On 5/24/19 6:17 PM, Jae Hyun Yoo wrote: AST2500 silicon revision A1 and A2 have a silicon bug which causes extremly long capturing time on specific resolutions (1680 width). To fix the bug, this commit adjusts the capturing window register settin

Re: [ANN] Patchwork version upgrade

2019-05-31 Thread André Almeida
If one tries to access a page that doesn't exists (e.g. [1]), the page shows that Django is on debug mode. According to Django documentation[2], is not a good idea running with debugging enabled on production environment. To fix this, just change the `DEBUG = True` to `DEBUG = False` on `settings.p

Re: [PATCH v2] media: mt9m111: add regulator support

2019-05-31 Thread Robert Jarzmik
Akinobu Mita writes: >> Can anyone test this patch and send a tested-by? > > In my devicetree, vdd-supply is not defined. So it falls back to the dummy > regulator and works fine. Would that work also in a non devicetree build, ie. in a platform_data based one (as this is one of the mach-pxa tar

Re: [ANN] Patchwork version upgrade

2019-05-31 Thread Mauro Carvalho Chehab
Em Fri, 31 May 2019 15:01:06 -0400 Nicolas Dufresne escreveu: > Le vendredi 31 mai 2019 à 12:40 -0300, Mauro Carvalho Chehab a écrit : > > Hi all, > > > > For a long time, we were running an old Patchwork version. The thing is that > > we had applied some patches on the top of it, and the upgrad

Re: [PATCH v2] media: mt9m111: add regulator support

2019-05-31 Thread Robert Jarzmik
Mauro Carvalho Chehab writes: > Hi Sakari, > > Em Fri, 31 May 2019 14:27:24 +0300 > Sakari Ailus escreveu: > >> Hi Mauro, >> >> On Wed, May 29, 2019 at 03:25:18PM -0400, Mauro Carvalho Chehab wrote: >> > From: Robert Jarzmik > > As stated here, this patch is not really mine. It is a rebased ve

Re: [ANN] Patchwork version upgrade

2019-05-31 Thread Nicolas Dufresne
Le vendredi 31 mai 2019 à 12:40 -0300, Mauro Carvalho Chehab a écrit : > Hi all, > > For a long time, we were running an old Patchwork version. The thing is that > we had applied some patches on the top of it, and the upgrade was not > trivial. > > Today, we upgraded it to its latest stable versi

Re: [ANN] Patchwork version upgrade

2019-05-31 Thread Nicolas Dufresne
Hi, Le vendredi 31 mai 2019 à 12:40 -0300, Mauro Carvalho Chehab a écrit : > Hi all, > > For a long time, we were running an old Patchwork version. The thing is that > we had applied some patches on the top of it, and the upgrade was not > trivial. > > Today, we upgraded it to its latest stable

Re: [RESEND PATCH 1/1] v4l2-subdev: Try formats are only available if subdev API is enabled

2019-05-31 Thread Janusz Krzysztofik
Hi Sakari, On Friday, May 31, 2019 1:54:26 PM CEST Sakari Ailus wrote: > Return an error for which == V4L2_SUBDEV_FORMAT_TRY if > CONFIG_VIDEO_V4L2_SUBDEV_API is not enabled. This is because the try > formats are not available in that case. As far as I can see, there are 21 V4L2 subdevice drive

Re: [PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
Hi Sean, Discussed this with Mauro on irc. I went ahead and made the le16_to_cpu fixes and set up v6. The series should be good to go now. Cheers, Brad On 31/05/2019 12.20, Brad Love wrote: > Hi Shawn, > > Just found time to get back to this. I fixed all the checkpatch strict > warnings, no pr

[PATCH v6 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
Includes support to identify and use two Hauppauge device. HVR-1955: - LGDT3306a ATSC/QAM demod - si2177 tuner - cx25840 decoder for analog tv/composite/s-video/audio HVR-1975 dual-frontend: - LGDT3306a ATSC/QAM demod - si2168 DVB-C/T/T2 demod - si2177 tuner - cx25840 decoder for analog tv/composi

[PATCH v6 1/4] si2157: add detection of si2177 tuner

2019-05-31 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- Changes since v5: - No changes Changes since v3: - Fix firmware name to be consistent drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files chan

[PATCH v6 3/4] pvrusb2: Add i2c client demod/tuner support

2019-05-31 Thread Brad Love
i2c client device is the "new" method to attach to dvb modules, include support for this functionality. Cleanup code has been added to init in case of failure, as well as to frontend exit. Required by Hauppauge HVR-1975 Signed-off-by: Brad Love --- Since v5: - no changes Since v4: - commit messa

[PATCH v6 2/4] pvrusb2: Add multiple dvb frontend support

2019-05-31 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Code has been added to dvb init to support cleanup after failure. Multiple frontends are required by Hauppauge HVR-1975, which is in a later commit. Signed-off-by: Brad Love --- Since v5: - no

[PATCH v6 0/4] Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
Hauppauge device HVR1955 and HVR1975 are old Cypress based devices. When originally produced the demods were lacking upstream drivers and the tuner was unsupported. Well fast forward to now and the only thing missing is the identification of si2177 tuner in the si2157 driver, as well as extension o

[PATCH 3/3] media: imx7-mipi-csis: Remove extra blank line

2019-05-31 Thread Fabio Estevam
Checkpatch reports an extra blank line, so remove such unneeded line. Signed-off-by: Fabio Estevam --- drivers/staging/media/imx/imx7-mipi-csis.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx/imx7-mipi-csis.c index acc9

[PATCH 2/3] media: imx7-mipi-csis: Remove unneeded 'ret' initialization

2019-05-31 Thread Fabio Estevam
There is no need for initializing the 'ret' variable as it will be assigned at: ret = mipi_csis_parse_dt(pdev, state); Remove the unneeded initialization. Signed-off-by: Fabio Estevam --- drivers/staging/media/imx/imx7-mipi-csis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 1/3] media: imx7-mipi-csis: Propagate the error if clock enabling fails

2019-05-31 Thread Fabio Estevam
Currently the return value from clk_bulk_prepare_enable() is checked, but it is not propagate it in the case of failure. Fix it and also move the error message to the caller of mipi_csis_clk_enable(). Signed-off-by: Fabio Estevam --- drivers/staging/media/imx/imx7-mipi-csis.c | 14 +++--

Re: [v8] media: imx: add mem2mem device

2019-05-31 Thread Nicolas Dufresne
Le vendredi 31 mai 2019 à 12:07 -0400, Sven Van Asbroeck a écrit : > Hello Nicholas, thank you so much for investigating. > > On Fri, May 31, 2019 at 11:34 AM Nicolas Dufresne > wrote: > > Now, if that pipeline was live, this would be a problem. > > This is where my gstreamer knowledge gets rea

[PATCH v5 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
Includes support to identify and use two Hauppauge device. HVR-1955: - LGDT3306a ATSC/QAM demod - si2177 tuner - cx25840 decoder for analog tv/composite/s-video/audio HVR-1975 dual-frontend: - LGDT3306a ATSC/QAM demod - si2168 DVB-C/T/T2 demod - si2177 tuner - cx25840 decoder for analog tv/composi

[PATCH v5 0/4] Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
Hauppauge device HVR1955 and HVR1975 are old Cypress based devices. When originally produced the demods were lacking upstream drivers and the tuner was unsupported. Well fast forward to now and the only thing missing is the identification of si2177 tuner in the si2157 driver, as well as extension o

[PATCH v5 3/4] pvrusb2: Add i2c client demod/tuner support

2019-05-31 Thread Brad Love
i2c client device is the "new" method to attach to dvb modules, include support for this functionality. Cleanup code has been added to init in case of failure, as well as to frontend exit. Required by Hauppauge HVR-19x5 with si2168/lgdt3306a/si2177 Signed-off-by: Brad Love --- Since v4: - commit

[PATCH v5 1/4] si2157: add detection of si2177 tuner

2019-05-31 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- Changes since v4: - No changes Changes since v3: - Fix firmware name to be consistent drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files chan

[PATCH v5 2/4] pvrusb2: Add multiple dvb frontend support

2019-05-31 Thread Brad Love
Multiple frontends are required by Hauppauge HVR-1975, which is added in a later commit. All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Code has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- Since v4

Re: [PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
Hi Shawn, Just found time to get back to this. I fixed all the checkpatch strict warnings, no problem. Then I noticed a few comments of yours that I somehow missed first time around. I've replied inline to those. On 05/04/2019 10.24, Sean Young wrote: > On Wed, Feb 27, 2019 at 01:16:06PM -0600,

Re: [PATCH 1/3] media: i2c: ov02a10: Add ov02a10 camera sensor driver

2019-05-31 Thread Sakari Ailus
Hi Dongchun, On Thu, May 23, 2019 at 06:22:02PM +0800, dongchun@mediatek.com wrote: > From: Dongchun Zhu > > Add a V4L2 sub-device driver for the OmniVision image sensor. > This is a camera sensor using the I2C bus for control and the > CSI-2 bus for data. > > Signed-off-by: Dongchun Zhu

RE: [PATCH v2 11/11] media: aspeed: add a workaround to fix a silicon bug

2019-05-31 Thread Ryan Chen
> > On 5/24/19 6:17 PM, Jae Hyun Yoo wrote: >> AST2500 silicon revision A1 and A2 have a silicon bug which causes >> extremly long capturing time on specific resolutions (1680 width). >> To fix the bug, this commit adjusts the capturing window register >> setting to 1728 if detected width is 168

Re: [PATCH 3/3] media: dt-bindings: media: i2c: Add bindings for ov02a10

2019-05-31 Thread Sakari Ailus
Hi Dongchun, Thanks for the patch. On Thu, May 23, 2019 at 06:22:04PM +0800, dongchun@mediatek.com wrote: > From: Dongchun Zhu > > Add device tree binding documentation for the OV02A10 CMOS image sensor. > > Signed-off-by: Dongchun Zhu > --- > .../devicetree/bindings/media/i2c/ov02a10.tx

Re: [v8] media: imx: add mem2mem device

2019-05-31 Thread Sven Van Asbroeck
Hello Nicholas, thank you so much for investigating. On Fri, May 31, 2019 at 11:34 AM Nicolas Dufresne wrote: > > Now, if that pipeline was live, this would be a problem. This is where my gstreamer knowledge gets really hazy. What does it mean for a pipeline to be 'live' ? Would this be a proble

[ANN] Patchwork version upgrade

2019-05-31 Thread Mauro Carvalho Chehab
Hi all, For a long time, we were running an old Patchwork version. The thing is that we had applied some patches on the top of it, and the upgrade was not trivial. Today, we upgraded it to its latest stable version. Just like before, you can access it via: https://patchwork.linuxtv.org

Re: [v8] media: imx: add mem2mem device

2019-05-31 Thread Nicolas Dufresne
Le mercredi 29 mai 2019 à 19:52 -0400, Nicolas Dufresne a écrit : > Le mercredi 29 mai 2019 à 16:55 -0400, Sven Van Asbroeck a écrit : > > Philipp and Fabio, > > > > On Wed, May 29, 2019 at 12:53 PM Fabio Estevam wrote: > > > Does this patch from Philipp fix the problem? > > > https://git.pengutr

[PATCH] media: staging/imx: fix two NULL vs IS_ERR() bugs

2019-05-31 Thread Dan Carpenter
The imx_media_pipeline_pad() function return NULL pointers on error, it never returns error pointers. Fixes: 3ef46bc97ca2 ("media: staging/imx: Improve pipeline searching") Signed-off-by: Dan Carpenter --- drivers/staging/media/imx/imx-media-csi.c | 4 ++-- drivers/staging/media/imx/imx7-media-

Re: [PATCH v2] media: mt9m111: add regulator support

2019-05-31 Thread Mauro Carvalho Chehab
Hi Sakari, Em Fri, 31 May 2019 14:27:24 +0300 Sakari Ailus escreveu: > Hi Mauro, > > On Wed, May 29, 2019 at 03:25:18PM -0400, Mauro Carvalho Chehab wrote: > > From: Robert Jarzmik As stated here, this patch is not really mine. It is a rebased version of a patch that was delegated to a sub-m

[RESEND PATCH 1/1] v4l2-subdev: Try formats are only available if subdev API is enabled

2019-05-31 Thread Sakari Ailus
Return an error for which == V4L2_SUBDEV_FORMAT_TRY if CONFIG_VIDEO_V4L2_SUBDEV_API is not enabled. This is because the try formats are not available in that case. Do the check here so that drivers don't need to. Signed-off-by: Sakari Ailus Depends-on: ("media: v4l2-subdev: Verify v4l2_subdev_cal

Re: [PATCH 0/6] Avoid v4l2_subdev_get_try_ ifdef dance

2019-05-31 Thread Sakari Ailus
Hi Marco, On Thu, Apr 04, 2019 at 09:39:56AM +0200, Marco Felsch wrote: > Hi, > > during my work on [1] I prepared a patch to avoid driver interal ifdef > dances for: > - v4l2_subdev_get_try_format > - v4l2_subdev_get_try_crop > - v4l2_subdev_get_try_compose > helper functions. Jacopo did some

[PATCH 1/1] v4l2-subdev: Try formats are only available if subdev API is enabled

2019-05-31 Thread Sakari Ailus
Return an error for which == V4L2_SUBDEV_FORMAT_TRY if CONFIG_VIDEO_V4L2_SUBDEV_API is not enabled. This is because the try formats are not available in that case. Do the check here so that drivers don't need to. Signed-off-by: Sakari Ailus Depends-on: ("media: v4l2-subdev: Verify v4l2_subdev_cal

Re: [PATCH v2] media: mt9m111: add regulator support

2019-05-31 Thread Sakari Ailus
Hi Mauro, On Wed, May 29, 2019 at 03:25:18PM -0400, Mauro Carvalho Chehab wrote: > From: Robert Jarzmik > > In the soc_camera removal, the board specific power callback was > dropped. This at least will remove the power optimization from ezx and > em-x270 pxa based boards. > > As to recreate th

Re: [PATCH 1/5] ACPI: Enable driver and firmware hints to control power at probe time

2019-05-31 Thread Rafael J. Wysocki
On Friday, May 10, 2019 12:09:26 PM CEST Sakari Ailus wrote: > Allow drivers and firmware tell ACPI that there's no need to power on a > device for probe. This requires both a hint from the firmware as well as > an indication from a driver to leave the device off. > > Signed-off-by: Sakari Ailus

[PATCH v3 00/10] Rename Rockchip VPU driver to Hantro, add initial i.MX8M support

2019-05-31 Thread Philipp Zabel
There are several other SoCs that contain Hantro IP based VPUs, such as NXP i.MX8MQ (Hantro G1 and G2) and i.MX8MM (Hantro G1, G2, and H1). To maximize code sharing, add initial support for these SoCs to the Rockchip VPU driver, after renaming it to Hantro VPU. This series is based on the br-v5.3g

[PATCH v3 01/10] rockchip/vpu: rename from rockchip to hantro

2019-05-31 Thread Philipp Zabel
Rename the driver and all relevant identifiers from Rockchip to Hantro, as other Hantro IP based VPU implementations can be supported by the same driver. The RK3288 decoder is Hantro G1 based, the encoder is Hantro H1. This patch just renames, no functional changes. Signed-off-by: Philipp Zabel

[PATCH v3 05/10] media: hantro: add support for named register ranges

2019-05-31 Thread Philipp Zabel
Add support for multiple register ranges with SoC specific names. Signed-off-by: Philipp Zabel --- Changes since v2 [1]: - Move array of reg_names out of struct hantro_variant - Use ARRAY_SIZE to set num_regs - Dynamically allocate base address array in struct hantro_dev and rename it to ba

[PATCH v3 06/10] media: hantro: add support for separate control block

2019-05-31 Thread Philipp Zabel
On i.MX8MQ/MM a separate control block contains registers for per-core resets, clock gating, and fuse register control. Signed-off-by: Philipp Zabel --- drivers/staging/media/hantro/hantro.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/hantro/hantro.h b/drivers/st

[PATCH v3 02/10] media: hantro: print video device name in addition to device node

2019-05-31 Thread Philipp Zabel
It can be helpful to know which video device was registered at which device node. Signed-off-by: Philipp Zabel Reviewed-by: Boris Brezillon --- drivers/staging/media/hantro/hantro_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/hantro/hantro_drv

[PATCH v3 08/10] media: hantro: add initial i.MX8MQ support

2019-05-31 Thread Philipp Zabel
For now this just enables MPEG-2 decoding on the Hantro G1 on i.MX8MQ. Signed-off-by: Philipp Zabel --- Changes since v2 [1]: - Adapted to changes in patches 4 and 5 [1] https://patchwork.linuxtv.org/patch/56420/ --- drivers/staging/media/hantro/Kconfig| 8 +- drivers/staging/media/h

[PATCH v3 09/10] media: hantro: add initial i.MX8MM support (untested)

2019-05-31 Thread Philipp Zabel
This should enable MPEG-2 decoding on the Hantro G1 and JPEG encoding on the Hantro H1 on i.MX8MM. Signed-off-by: Philipp Zabel Changes since v2 [1]: - Adapted to changes in patches 4 and 5 [1] https://patchwork.linuxtv.org/patch/56425/ --- drivers/staging/media/hantro/hantro_drv.c | 1 +

[PATCH v3 04/10] media: hantro: make irq names configurable

2019-05-31 Thread Philipp Zabel
The i.MX8MQ bindings will use different IRQ names ("g1" instead of "vdpu", and "g2"), so make them configurable. This also allows to register more than two IRQs, which will be required for i.MX8MM support later (it will add "h1" instead of "vepu"). Signed-off-by: Philipp Zabel --- Changes since v

[PATCH v3 03/10] media: hantro: add PM runtime resume callback

2019-05-31 Thread Philipp Zabel
It seems that on i.MX8MQ the power domain controller does not propagate resets to the VPU cores on resume. Add a callback to allow implementing manual reset of the VPU cores after ungating the power domain. Signed-off-by: Philipp Zabel Reviewed-by: Boris Brezillon --- drivers/staging/media/hant

[PATCH v3 10/10] media: hantro: allow arbitrary number of clocks

2019-05-31 Thread Philipp Zabel
Dynamically allocate clocks and move clock names out of struct hantro_variant. This lifts the four clock limit and allows to use ARRAY_SIZE() to fill .num_clocks to reduce the risk of mismatches. Signed-off-by: Philipp Zabel --- New in v3. --- drivers/staging/media/hantro/hantro.h| 6 ++

[PATCH v3 07/10] media: dt-bindings: Document i.MX8MQ and i.MX8MM VPU bindings

2019-05-31 Thread Philipp Zabel
Add devicetree binding documentation for the Hantro G1/G2 VPU on i.MX8MQ and for the Hantro G1/G2/H1 VPU on i.MX8MM. Signed-off-by: Philipp Zabel --- .../devicetree/bindings/media/imx8m-vpu.txt | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicet