Re: [PATCH v2 6/6] devicetree: bindings: Document Renesas JPEG Processing Unit.

2014-08-26 Thread Simon Horman
On Wed, Aug 27, 2014 at 08:06:10AM +0200, Laurent Pinchart wrote: > On Wednesday 27 August 2014 14:15:01 Simon Horman wrote: > > On Tue, Aug 26, 2014 at 11:27:43AM +0200, Geert Uytterhoeven wrote: > > > On Tue, Aug 26, 2014 at 11:01 AM, Simon Horman wrote: > > >> On Tue, Aug 26, 2014 at 10:03:34AM

Re: [PATCH v2 6/6] devicetree: bindings: Document Renesas JPEG Processing Unit.

2014-08-26 Thread Laurent Pinchart
On Wednesday 27 August 2014 14:15:01 Simon Horman wrote: > On Tue, Aug 26, 2014 at 11:27:43AM +0200, Geert Uytterhoeven wrote: > > On Tue, Aug 26, 2014 at 11:01 AM, Simon Horman wrote: > >> On Tue, Aug 26, 2014 at 10:03:34AM +0200, Geert Uytterhoeven wrote: > >>> On Tue, Aug 26, 2014 at 1:57 AM, S

Re: [PATCH v2 6/6] devicetree: bindings: Document Renesas JPEG Processing Unit.

2014-08-26 Thread Simon Horman
On Tue, Aug 26, 2014 at 11:27:43AM +0200, Geert Uytterhoeven wrote: > On Tue, Aug 26, 2014 at 11:01 AM, Simon Horman wrote: > > On Tue, Aug 26, 2014 at 10:03:34AM +0200, Geert Uytterhoeven wrote: > >> On Tue, Aug 26, 2014 at 1:57 AM, Simon Horman wrote: > >> > On Mon, Aug 25, 2014 at 02:59:46PM +

cron job: media_tree daily build: WARNINGS

2014-08-26 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Wed Aug 27 04:00:18 CEST 2014 git branch: test git hash: b250392f7b5062cf026b1423e27265e278fd6b30 gcc versi

[PATCH v2 28/35] Revert "[media] staging: omap4iss: copy paste error in iss_get_clocks"

2014-08-26 Thread Mauro Carvalho Chehab
This patch readded a call to iss_put_clocks(), with was removed by changeset 1153be56a105, causing a compilation breakage. This reverts commit d4b32646468088323f27a7788ce3b07191015142. --- drivers/staging/media/omap4iss/iss.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/medi

[PATCH v2 29/35] [media] enable COMPILE_TEST for MX2 eMMa-PrP driver

2014-08-26 Thread Mauro Carvalho Chehab
By allowing compilation on all archs, we can use static analysis tools to test this driver. In order to do that, replace asm/sizes.h by its generic name (linux/sizes.h), with should keep doing the right thing. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/Kconfig | 3 ++-

[PATCH v2 09/35] [media] atmel-isi: tag dma_addr_t as such

2014-08-26 Thread Mauro Carvalho Chehab
Instead of using u32 for DMA address, use the proper Kernel type for it. drivers/media/platform/soc_camera/atmel-isi.c: In function 'atmel_isi_probe': >> drivers/media/platform/soc_camera/atmel-isi.c:981:26: warning: passing >> argument 3 of 'dma_alloc_attrs' from incompatible pointer type

[PATCH v2 04/35] [media] dm355_ccdc: declare a function as static

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/davinci/dm355_ccdc.c:463:5: warning: no previous prototy pe for 'ccdc_write_dfc_entry' [-Wmissing-prototypes] int ccdc_write_dfc_entry(int index, struct ccdc_vertical_dft *dfc) ^ Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/davinci/dm355_ccdc.c | 2

[PATCH v2 07/35] [media] ti-vpe: use %pad for dma address

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/ti-vpe/vpdma.c: In function 'dump_dtd': include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' [-Wformat=] static struct _ddebug __aligned(8) \ ^ include/linu

[PATCH v2 30/35] [media] enable COMPILE_TEST for ti-vbe

2014-08-26 Thread Mauro Carvalho Chehab
Allowing COMPILE_TEST here is trivial, but there's one missing header to be added: drivers/media/platform/ti-vpe/vpe.c: In function ‘vpe_probe’: drivers/media/platform/ti-vpe/vpe.c:2266:56: error: ‘SZ_32K’ undeclared (first use in this function) dev->base = devm_ioremap(&pdev->dev, dev->res->st

[PATCH v2 00/35] Enable compilation test for several drivers

2014-08-26 Thread Mauro Carvalho Chehab
There are several platform drivers that compile on x86. Let them to be compiled, if COMPILE_TEST is enabled. This helped to identify several issues on those drivers. Also, by doing that, Coverity and other static source code analyzers can help to identify other issues on those drivers. I moved th

[PATCH v2 32/35] [media] enable COMPILE_TEST for OMAP2 vout

2014-08-26 Thread Mauro Carvalho Chehab
We don't need anything special to enable COMPILE_TEST for this driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/Makefile | 2 +- drivers/media/platform/omap/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/Makefile b

[PATCH v2 35/35] [media] omap: be sure that MMU is there for COMPILE_TEST

2014-08-26 Thread Mauro Carvalho Chehab
COMPILE_TEST fail on (some) archs without MMU. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/omap/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/omap/Kconfig b/drivers/media/platform/omap/Kconfig index 2253bf102ed9..05de442d2

[PATCH v2 31/35] [media] allow COMPILE_TEST for SAMSUNG_EXYNOS4_IS

2014-08-26 Thread Mauro Carvalho Chehab
That helps some static checks, so enable it. While there, it was noticed that linux/sizes.h was missing: drivers/media/platform/exynos4-is/mipi-csis.c: In function ‘s5pcsis_s_rx_buffer’: drivers/media/platform/exynos4-is/mipi-csis.c:114:31: error: ‘SZ_4K’ undeclared (first use in this function)

[PATCH v2 26/35] [media] atmel-isi: get rid of a warning

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/soc_camera/atmel-isi.c: In function 'start_streaming': drivers/media/platform/soc_camera/atmel-isi.c:387:6: warning: variable 'sr' set but not used [-Wunused-but-set-variable] u32 sr = 0; ^ Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/soc_camera

[PATCH v2 27/35] [media] s5p-jpeg: Get rid of a warning

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c: In function 's5p_jpeg_clear_int': drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c:327:16: warning: variable 'reg' set but not used [-Wunused-but-set-variable] unsigned long reg; ^ Signed-off-by: Mauro Carvalho Chehab --- drivers/med

[PATCH v2 25/35] [media] mx2_camera: get rid of a warning

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/soc_camera/mx2_camera.c: In function 'mx27_camera_emma_prp_reset': drivers/media/platform/soc_camera/mx2_camera.c:812:6: warning: variable 'cntl' set but not used [-Wunused-but-set-variable] u32 cntl; ^ Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platf

[PATCH v2 05/35] [media] gsc-core: Remove useless test

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/exynos-gsc/gsc-core.c: In function 'gsc_probe': drivers/media/platform/exynos-gsc/gsc-core.c:1089:2: warning: comparison is alw ays false due to limited range of data type [-Wtype-limits] if (gsc->id < 0 || gsc->id >= drv_data->num_entities) { ^ gsc->id is declared as u1

[PATCH v2 02/35] [media] vpif_capture: get rid of some unused vars

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/davinci/vpif_capture.c: In function 'vpif_channel_isr': drivers/media/platform/davinci/vpif_capture.c:376:18: warning: variable 'field' set but not used [-Wunused-but-set-variable] enum v4l2_field field; ^ drivers/media/platform/davinci/vpif_capture.c: In

[PATCH v2 23/35] [media] mipi-csis: get rid of a warning

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/exynos4-is/mipi-csis.c: In function 's5pcsis_parse_dt': drivers/media/platform/exynos4-is/mipi-csis.c:756:2: warning: comparison is always false due to limited range of data type [-Wtype-limits] if (state->index < 0 || state->index >= CSIS_MAX_ENTITIES) ^ Signed-off-by:

[PATCH v2 21/35] [media] s5p_mfc_ctrl: add missing s5p_mfc_ctrl.h header

2014-08-26 Thread Mauro Carvalho Chehab
That gets rid of the following warnings: drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:119:5: warning: no previous prototype for 's5p_mfc_release_firmware' [-Wmissing-prototypes] int s5p_mfc_release_firmware(struct s5p_mfc_dev *dev) ^ drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:132:5: war

[PATCH v2 33/35] [media] enable COMPILE_TEST for media drivers

2014-08-26 Thread Mauro Carvalho Chehab
There are several arch-specific media drivers that don't require asm-specific includes and can be successfully compiled on x86. Add COMPILE_TEST dependency for them, in order to allow a broader test on those drivers. That helps static analysis tools like Coverity to discover eventual troubles ther

[PATCH v2 34/35] [media] be sure that HAS_DMA is enabled for vb2-dma-contig

2014-08-26 Thread Mauro Carvalho Chehab
vb2-dma-contig depends on HAS_DMA, but the Kbuild doesn't take it into account at select. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/pci/solo6x10/Kconfig | 1 + drivers/media/pci/sta2x11/Kconfig | 1 + drivers/media/platform/Kconfig | 12

[PATCH v2 20/35] [media] fimc-is-param: get rid of warnings

2014-08-26 Thread Mauro Carvalho Chehab
In file included from drivers/media/platform/exynos4-is/fimc-is-param.c:31:0: drivers/media/platform/exynos4-is/fimc-is-errno.h:245:20: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] const char * const fimc_is_strerr(unsigned int error); ^ driv

[PATCH v2 17/35] [media] omap_vout: Get rid of a few warnings

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/omap/omap_vout.c: In function 'omapvid_setup_overlay': drivers/media/platform/omap/omap_vout.c:372:29: warning: variable 'pixheight' set but not used [-Wunused-but-set-variable] int cropheight, cropwidth, pixheight, pixwidth; ^ drivers/media/pl

[PATCH v2 12/35] [media] vpif: don't cast pointers to int

2014-08-26 Thread Mauro Carvalho Chehab
Shut up several warnings about invalid casting when printing the values of two pointers. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/davinci/vpfe_capture.c | 2 +- drivers/media/platform/davinci/vpif_display.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff -

[PATCH v2 24/35] [media] exynos4-is/media-dev: get rid of a warning for a dead code

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/exynos4-is/media-dev.c: In function 'fimc_md_link_notify': drivers/media/platform/exynos4-is/media-dev.c:1102:4: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] ; /* TODO: Link state change validation */ ^ Signed-off-by: Mauro Carval

[PATCH v2 11/35] [media] s5p_mfc: don't use an external symbol called 'debug'

2014-08-26 Thread Mauro Carvalho Chehab
The 'debug' name is known to cause conflicts with allyesconfig on several archs. So, localize its name. >> drivers/built-in.o:(.bss+0xc7ee2c): multiple definition of `debug' arch/x86/built-in.o:(.entry.text+0xf78): first defined here ld: Warning: size of symbol `debug' changed from 86 in arc

[PATCH v2 19/35] [media] g2d: remove unused var

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/s5p-g2d/g2d.c: In function 'job_abort': drivers/media/platform/s5p-g2d/g2d.c:493:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^ The job_abort function returns void. No sense to get the returned argument, if this won't be used. Si

[PATCH v2 14/35] [media] dvb_frontend: estimate bandwidth also for DVB-S/S2/Turbo

2014-08-26 Thread Mauro Carvalho Chehab
The needed bandwidth can be estimated using the symbol rate and the rolloff factor. This could be useful for the frontend drivers, as they don't need to calculate it themselves. Reported-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-core/dvb_frontend.c | 17

[PATCH v2 13/35] [media] dm644x_ccdc: use unsigned long for fpc_table_addr

2014-08-26 Thread Mauro Carvalho Chehab
The fpc_table_addr is used as an unsigned integer that stores an address. At the Kernel, the proper type for such integers is unsigned long. This generates lots of warnings when compiling on 64 bits. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/davinci/dm644x_ccdc.c | 4 ++--

[PATCH v2 15/35] [media] gsc: Use %pad for dma_addr_t

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/exynos-gsc/gsc-core.c:855:2: note: in expansion of macro 'pr_debug' pr_debug("ADDR: y= 0x%X cb= 0x%X cr= 0x%X ret= %d", ^ include/linux/dynamic_debug.h:64:16: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'dma _addr_t' [-Wformat=

[PATCH v2 22/35] [media] s5p_mfc: get rid of several warnings

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:826:5: warning: no previous prototype for 'vidioc_decoder_cmd' [-Wmissing-prototypes] int vidioc_decoder_cmd(struct file *file, void *priv, ^ drivers/media/platform/s5p-mfc/s5p_mfc.c: In function 's5p_mfc_runtime_resume': drivers/media/platform/s5

[PATCH v2 16/35] [media] omap: fix compilation if !VIDEO_OMAP2_VOUT_VRFB

2014-08-26 Thread Mauro Carvalho Chehab
When CONFIG_VIDEO_OMAP2_VOUT_VRFB is disabled, the compilation will fail, as the function stubs are wrong. Also, as they weren't declared as static inline, lots of warnings will be generated. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/platform/omap/omap_vout_vrfb.h | 18 +

[PATCH v2 03/35] [media] dm644x_ccdc: declare some functions as static

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/davinci/dm644x_ccdc.c:133:6: warning: no previous protot ype for 'ccdc_setwin' [-Wmissing-prototypes] void ccdc_setwin(struct v4l2_rect *image_win, ^ drivers/media/platform/davinci/dm644x_ccdc.c:373:6: warning: no previous protot ype for 'ccdc_config_ycbcr' [-Wmissing-

[PATCH v2 18/35] [media] s5p-jpeg: get rid of some warnings

2014-08-26 Thread Mauro Carvalho Chehab
Declare this as static: drivers/media/platform/s5p-jpeg/jpeg-core.c:732:6: warning: no previous prototype for 'exynos4_jpeg_set_huff_tbl' [-Wmissing-prototypes] void exynos4_jpeg_set_huff_tbl(void __iomem *base) ^ And don't compile this dead code, while not needed: drivers/media/platform/

[PATCH v2 06/35] [media] gsc-m2m: Remove an unused var.

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/exynos-gsc/gsc-m2m.c: In function 'gsc_m2m_reqbufs': drivers/media/platform/exynos-gsc/gsc-m2m.c:365:20: warning: variable 'frame' s et but not used [-Wunused-but-set-variable] struct gsc_frame *frame; ^ Signed-off-by: Mauro Carvalho Chehab --- driver

[PATCH v2 10/35] [media] atmel-isi: Fix a truncate warning

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/soc_camera/atmel-isi.c: In function 'start_streaming': drivers/media/platform/soc_camera/atmel-isi.c:397:26: warning: large integer implicitly truncated to unsigned type [-Woverflow] isi_writel(isi, ISI_INTDIS, ~0UL); ^ Reported-by: k

[PATCH v2 08/35] [media] ti-vpe: shut up a casting warning message

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/ti-vpe/vpdma.c: In function 'vpdma_alloc_desc_buf': >> drivers/media/platform/ti-vpe/vpdma.c:332:10: warning: cast from pointer to >> integer of different size [-Wpointer-to-int-cast] WARN_ON((u32) buf->addr & VPDMA_DESC_ALIGN); ^ Reported-by: kbuild te

[PATCH v2 01/35] [media] vpif_display: get rid of some unused vars

2014-08-26 Thread Mauro Carvalho Chehab
drivers/media/platform/davinci/vpif_display.c: In function 'vpif_channel_isr': drivers/media/platform/davinci/vpif_display.c:363:18: warning: variable 'field' set but not used [-Wunused-but-set-variable] enum v4l2_field field; ^ drivers/media/platform/davinci/vpif_display.c: In

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Hans Verkuil
On 08/26/2014 06:38 PM, Mark Brown wrote: > From: Mark Brown > > Currently arm64 does not support PCI but it does support v4l2. Since the > PCI skeleton driver is built unconditionally as a module with no dependency > on PCI this causes build failures for arm64 allmodconfig. Fix this by > definin

Re: [RFC] [media] v4l2: add V4L2 pixel format array and helper functions

2014-08-26 Thread Guennadi Liakhovetski
Hi Philipp, On Mon, 25 Aug 2014, Philipp Zabel wrote: > This patch adds an array of V4L2 pixel formats and descriptions that can be > used by drivers so that each driver doesn't have to provide its own slightly > different format descriptions for VIDIOC_ENUM_FMT. In case you missed it, soc-camer

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Randy Dunlap
On 08/26/14 12:59, Randy Dunlap wrote: > On 08/26/14 12:26, Mark Brown wrote: >> On Tue, Aug 26, 2014 at 12:20:54PM -0700, Randy Dunlap wrote: >>> On 08/26/14 10:25, Mark Brown wrote: >> index d58101e788fc..65a351d75c95 100644 --- a/Documentation/video4linux/Makefile +++ b/Documentat

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Randy Dunlap
On 08/26/14 12:26, Mark Brown wrote: > On Tue, Aug 26, 2014 at 12:20:54PM -0700, Randy Dunlap wrote: >> On 08/26/14 10:25, Mark Brown wrote: > >>> index d58101e788fc..65a351d75c95 100644 >>> --- a/Documentation/video4linux/Makefile >>> +++ b/Documentation/video4linux/Makefile >>> @@ -1 +1 @@ >>> -

Instability when using One Touch Video Capture conexant dongle with several xHCI hubs. There is one eHCI hub where it is stable

2014-08-26 Thread Rodrigo Severo
Hi, I have been trying to set several USB Video Grabbers on a few machines. The Video Grabbers are "Oner Touch Video Capture" dongles from Diammond Multimedia, a Connexant device with device ID 1f4d:0102. On an old machine with "Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI C

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Mark Brown
On Tue, Aug 26, 2014 at 12:20:54PM -0700, Randy Dunlap wrote: > On 08/26/14 10:25, Mark Brown wrote: > > index d58101e788fc..65a351d75c95 100644 > > --- a/Documentation/video4linux/Makefile > > +++ b/Documentation/video4linux/Makefile > > @@ -1 +1 @@ > > -obj-m := v4l2-pci-skeleton.o > > +obj-$(CO

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Randy Dunlap
On 08/26/14 10:25, Mark Brown wrote: > From: Mark Brown > > Currently arm64 does not support PCI but it does support v4l2. Since the > PCI skeleton driver is built unconditionally as a module with no dependency > on PCI this causes build failures for arm64 allmodconfig. Fix this by > defining a s

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Randy Dunlap
On 08/26/14 10:25, Mark Brown wrote: > From: Mark Brown > > Currently arm64 does not support PCI but it does support v4l2. Since the > PCI skeleton driver is built unconditionally as a module with no dependency > on PCI this causes build failures for arm64 allmodconfig. Fix this by > defining a s

[PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Mark Brown
From: Mark Brown Currently arm64 does not support PCI but it does support v4l2. Since the PCI skeleton driver is built unconditionally as a module with no dependency on PCI this causes build failures for arm64 allmodconfig. Fix this by defining a symbol VIDEO_PCI_SKELETON for the skeleton and con

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Mark Brown
On Tue, Aug 26, 2014 at 06:56:05PM +0200, Hans Verkuil wrote: > Against which kernel is this? Documentation/video4linux/Makefile doesn't exist > in either the mainline kernel or the media_tree git repo. This is against -next, looks like the bug is in the Documentation tree... signature.asc Descr

Re: [PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Hans Verkuil
Against which kernel is this? Documentation/video4linux/Makefile doesn't exist in either the mainline kernel or the media_tree git repo. Regards, Hans On 08/26/2014 06:38 PM, Mark Brown wrote: > From: Mark Brown > > Currently arm64 does not support PCI but it does support v4l2. Since t

[PATCH] [media] v4l2-pci-skeleton: Only build if PCI is available

2014-08-26 Thread Mark Brown
From: Mark Brown Currently arm64 does not support PCI but it does support v4l2. Since the PCI skeleton driver is built unconditionally as a module with no dependency on PCI this causes build failures for arm64 allmodconfig. Fix this by defining a symbol VIDEO_PCI_SKELETON for the skeleton and con

[PATCH 6/7] ARM: Exynos: convert MFC to generic reserved memory bindings

2014-08-26 Thread Marek Szyprowski
Support for reserved memory for MFC device (samsung,mfc-r and samsung,mfc-l properties) was merged quickly without any deep review and discussion. This patch replaces those custom properties with support for generic reserved memory bindings. All custom code for handling MFC-specific reserved memo

[PATCH 2/7] drivers: of: add support for named memory regions

2014-08-26 Thread Marek Szyprowski
This patch adds a code to initialize memory regions also for child devices if parent device has "memory-region" and "memory-region-names" device tree properties and given device's name matches ":" template. Signed-off-by: Marek Szyprowski --- .../bindings/reserved-memory/reserved-memory.txt |

[PATCH 1/7] drivers: of: add return value to of_reserved_mem_device_init

2014-08-26 Thread Marek Szyprowski
Driver calling of_reserved_mem_device_init() might be interested if the initialization has been successful or not, so add support for returning error code. Signed-off-by: Marek Szyprowski --- drivers/of/of_reserved_mem.c| 3 ++- include/linux/of_reserved_mem.h | 9 ++--- 2 files changed,

[PATCH 4/7] drivers: dma-contiguous: add initialization from device tree

2014-08-26 Thread Marek Szyprowski
Add a function to create CMA region from previously reserved memory and add support for handling 'shared-dma-pool' reserved-memory device tree nodes. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/base/dma-contiguous.c | 71 ++

[PATCH 7/7] ARM: DTS: exynos4412-odroid*: enable MFC device

2014-08-26 Thread Marek Szyprowski
Enable support for Multimedia Codec (MFC) device for all Exynos4412-based Odroid boards. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dt

[PATCH 3/7] drivers: dma-coherent: add initialization from device tree

2014-08-26 Thread Marek Szyprowski
Initialization procedure of dma coherent pool has been split into two parts, so memory pool can now be initialized without assigning to particular struct device. Then initialized region can be assigned to more than one struct device. To protect from concurent allocations from different devices, a s

[PATCH 5/7] media: s5p-mfc: replace custom reserved memory init code with generic one

2014-08-26 Thread Marek Szyprowski
This patch removes custom initialization of reserved memory regions from s5p-mfc driver and adds a new code for handling reserved memory with generic named reserved memory regions read from device tree. s5p-mfc driver now handles two reserved memory regions: "left" and "right", defined by generic

[PATCH 0/7] CMA & device tree, another approach

2014-08-26 Thread Marek Szyprowski
Hello, This is another approach to finish support for reserved memory regions defined in device tree. Previous attempts (http://lists.linaro.org/pipermail/linaro-mm-sig/2014-February/003738.html and https://lkml.org/lkml/2014/7/14/108) ended in merging parts of the code and documentation. Merged

Re: [RFC v2] [media] v4l2: add V4L2 pixel format array and helper functions

2014-08-26 Thread Laurent Pinchart
Hi Philipp, Thank you for the patch. On Tuesday 26 August 2014 11:00:54 Philipp Zabel wrote: > This patch adds an array of V4L2 pixel formats and descriptions that can be > used by drivers so that each driver doesn't have to provide its own slightly > different format descriptions for VIDIOC_ENUM

Re: [PATCH v2 6/6] devicetree: bindings: Document Renesas JPEG Processing Unit.

2014-08-26 Thread Geert Uytterhoeven
On Tue, Aug 26, 2014 at 11:01 AM, Simon Horman wrote: > On Tue, Aug 26, 2014 at 10:03:34AM +0200, Geert Uytterhoeven wrote: >> On Tue, Aug 26, 2014 at 1:57 AM, Simon Horman wrote: >> > On Mon, Aug 25, 2014 at 02:59:46PM +0200, Geert Uytterhoeven wrote: >> >> On Mon, Aug 25, 2014 at 2:35 PM, Mikha

Re: [RFC] [media] v4l2: add V4L2 pixel format array and helper functions

2014-08-26 Thread Philipp Zabel
Hi Laurent, Am Montag, den 25.08.2014, 17:47 +0200 schrieb Laurent Pinchart: > > Yes, I think this is slightly over the edge. Is room for a function to > > accompany the preexisting v4l2_fill_pix_format (say, > > v4l2_fill_pix_format_size) to set both the bytesperline and sizeimage > > values in a

Re: [PATCHv2] videobuf2-core: take mmap_sem before calling __qbuf_userptr

2014-08-26 Thread Jan Kara
On Fri 22-08-14 23:31:31, Hans Verkuil wrote: > (Changes since v1: fix the embarrassing bug where mmap_sem wasn't initialized) > > Commit f035eb4e976ef5a059e30bc91cfd310ff030a7d3 (videobuf2: fix lockdep > warning) > unfortunately removed the mmap_sem lock that is needed around the call to > __qbu

[RFC v2] [media] v4l2: add V4L2 pixel format array and helper functions

2014-08-26 Thread Philipp Zabel
This patch adds an array of V4L2 pixel formats and descriptions that can be used by drivers so that each driver doesn't have to provide its own slightly different format descriptions for VIDIOC_ENUM_FMT. Each array entry also includes two bits per pixel values (for a single line and one for the wh

Re: [PATCH v2 6/6] devicetree: bindings: Document Renesas JPEG Processing Unit.

2014-08-26 Thread Simon Horman
On Tue, Aug 26, 2014 at 10:03:34AM +0200, Geert Uytterhoeven wrote: > On Tue, Aug 26, 2014 at 1:57 AM, Simon Horman wrote: > > On Mon, Aug 25, 2014 at 02:59:46PM +0200, Geert Uytterhoeven wrote: > >> Hi Mikhail, > >> > >> On Mon, Aug 25, 2014 at 2:35 PM, Mikhail Ulyanov > >> wrote: > >> > + - co

Re: [PATCH v2 6/6] devicetree: bindings: Document Renesas JPEG Processing Unit.

2014-08-26 Thread Geert Uytterhoeven
On Tue, Aug 26, 2014 at 1:57 AM, Simon Horman wrote: > On Mon, Aug 25, 2014 at 02:59:46PM +0200, Geert Uytterhoeven wrote: >> Hi Mikhail, >> >> On Mon, Aug 25, 2014 at 2:35 PM, Mikhail Ulyanov >> wrote: >> > + - compatible: should containg one of the following: >> > + - "re