Re: [PATCH v2] lib/scatterlist: Provide a DMA page iterator

2019-02-07 Thread Thomas Hellstrom
On Thu, 2019-02-07 at 22:26 +, Jason Gunthorpe wrote: > Commit 2db76d7c3c6d ("lib/scatterlist: sg_page_iter: support sg lists > w/o > backing pages") introduced the sg_page_iter_dma_address() function > without > providing a way to use it in the general case. If the sg_dma_len() is > not > equa

Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-02-07 Thread Souptick Joarder
On Thu, Feb 7, 2019 at 10:17 PM Matthew Wilcox wrote: > > On Thu, Feb 07, 2019 at 09:19:47PM +0530, Souptick Joarder wrote: > > Just thought to take opinion for documentation before placing it in v3. > > Does it looks fine ? > > > > +/** > > + * __vm_insert_range - insert range of kernel pages int

cron job: media_tree daily build: OK

2019-02-07 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: Fri Feb 8 05:00:11 CET 2019 media-tree git hash:6fd369dd1cb65a032f1ab9227033ecb7b759656d media_build git

Re: [PATCH v2] lib/scatterlist: Provide a DMA page iterator

2019-02-07 Thread Miguel Ojeda
On Thu, Feb 7, 2019 at 11:28 PM Jason Gunthorpe wrote: > > Commit 2db76d7c3c6d ("lib/scatterlist: sg_page_iter: support sg lists w/o > backing pages") introduced the sg_page_iter_dma_address() function without > providing a way to use it in the general case. If the sg_dma_len() is not > equal to t

[PATCH 2/4] media: v4l2-tpg-core: Add support for 32-bit packed YUV formats

2019-02-07 Thread Vivek Kasireddy
Add support for the following formats to tpg: V4L2_PIX_FMT_AYUV32 V4L2_PIX_FMT_XYUV32 V4L2_PIX_FMT_VUYA32 V4L2_PIX_FMT_VUYX32 Cc: Hans Verkuil Signed-off-by: Vivek Kasireddy --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/

[PATCH 1/4] media: v4l: Add 32-bit packed YUV formats

2019-02-07 Thread Vivek Kasireddy
The formats added in this patch include: V4L2_PIX_FMT_AYUV32 V4L2_PIX_FMT_XYUV32 V4L2_PIX_FMT_VUYA32 V4L2_PIX_FMT_VUYX32 These formats enable the trasmission of alpha channel data to other drivers and userspace applications in addition to YUV data. For example, buffers generated by drivers in

[PATCH 0/4] Add support for 32-bit packed YUV formats

2019-02-07 Thread Vivek Kasireddy
This patch series adds support for formats that can be used directly by other drivers such as i915 drm driver. Also, the buffers generated by vivid in one of these formats using tpg can be used by the Weston compositor as textures. Vivek Kasireddy (4): media: v4l: Add 32-bit packed YUV formats

[PATCH 3/4] media: vivid: Add definitions for the 32-bit packed YUV formats

2019-02-07 Thread Vivek Kasireddy
Enable vivid to make use of the following formats: V4L2_PIX_FMT_AYUV32 V4L2_PIX_FMT_XYUV32 V4L2_PIX_FMT_VUYA32 V4L2_PIX_FMT_VUYX32 Cc: Hans Verkuil Signed-off-by: Vivek Kasireddy --- drivers/media/platform/vivid/vivid-vid-common.c | 30 + 1 file changed, 30 insertion

[PATCH 4/4] media: imx-pxp: Start using the format VUYA32 instead of YUV32

2019-02-07 Thread Vivek Kasireddy
Buffers generated with YUV32 format seems to be incorrect, hence use VUYA32 instead. Cc: Philipp Zabel Signed-off-by: Vivek Kasireddy --- drivers/media/platform/imx-pxp.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/imx-pxp.c b/drivers/media

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-02-07 Thread Steve Longerbeam
On 2/7/19 5:15 PM, Tim Harvey wrote: On Wed, Feb 6, 2019 at 8:31 AM Tim Harvey wrote: On Tue, Feb 5, 2019 at 3:54 PM Steve Longerbeam wrote: On 2/5/19 11:16 AM, Tim Harvey wrote: On Sat, Feb 2, 2019 at 11:10 AM Steve Longerbeam wrote: The *real* way to fix this would be to allow pro

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-02-07 Thread Steve Longerbeam
Hi Tim, On 2/6/19 8:31 AM, Tim Harvey wrote: On Tue, Feb 5, 2019 at 3:54 PM Steve Longerbeam wrote: On 2/5/19 11:16 AM, Tim Harvey wrote: On Sat, Feb 2, 2019 at 11:10 AM Steve Longerbeam wrote: The *real* way to fix this would be to allow programmable encodings in ipu-ic.c. But unfortun

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-02-07 Thread Tim Harvey
On Wed, Feb 6, 2019 at 8:31 AM Tim Harvey wrote: > > On Tue, Feb 5, 2019 at 3:54 PM Steve Longerbeam wrote: > > > > > > > > On 2/5/19 11:16 AM, Tim Harvey wrote: > > > On Sat, Feb 2, 2019 at 11:10 AM Steve Longerbeam > > > wrote: > > > > > > > > >> The *real* way to fix this would be to allow

[PATCH] media: vimc: Remove unused but set variables

2019-02-07 Thread Lucas A. M. Magalhaes
Remove unused but set variables to clean up the code and avoid warning. Signed-off-by: Lucas A. M. Magalhães --- drivers/media/platform/vimc/vimc-sensor.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/platform/vimc/vimc-sensor.c b/drivers/media/platform/vimc/vimc-senso

[PATCH] media: imx: Set capture compose rectangle in capture_device_set_format

2019-02-07 Thread Steve Longerbeam
From: Steve Longerbeam The capture compose rectangle was not getting updated when setting the source subdevice's source pad format. This causes the compose window to be zero (or not updated) at stream start unless the capture device format was set explicitly at the capture device node. Fix by mo

Re: [PATCH] lib/scatterlist: Provide a DMA page iterator

2019-02-07 Thread Sakari Ailus
On Fri, Jan 04, 2019 at 10:35:43PM +, Jason Gunthorpe wrote: > Commit 2db76d7c3c6d ("lib/scatterlist: sg_page_iter: support sg lists w/o > backing pages") introduced the sg_page_iter_dma_address() function without > providing a way to use it in the general case. If the sg_dma_len is not > equal

[PATCH v2] lib/scatterlist: Provide a DMA page iterator

2019-02-07 Thread Jason Gunthorpe
Commit 2db76d7c3c6d ("lib/scatterlist: sg_page_iter: support sg lists w/o backing pages") introduced the sg_page_iter_dma_address() function without providing a way to use it in the general case. If the sg_dma_len() is not equal to the sg length callers cannot safely use the for_each_sg_page/sg_pag

Re: [PATCH v5] media: vimc: Add vimc-streamer for stream control

2019-02-07 Thread Hans Verkuil
Hi Lucas, On 2/7/19 9:48 PM, Lucas A. M. Magalhaes wrote: > Add a linear pipeline logic for the stream control. It's created by > walking backwards on the entity graph. When the stream starts it will > simply loop through the pipeline calling the respective process_frame > function of each entity.

Re: [PATCH v4] media: vimc: Add vimc-streamer for stream control

2019-02-07 Thread Lucas Magalhães
Hi Hans, > > frame_size is set, but not used: > > vimc-sensor.c:208:15: warning: variable 'frame_size' set but not used > [-Wunused-but-set-variable] > > Can you make a patch fixing this? > > I'm not sure how I missed this sparse warning, weird. Sorry about that. I will be more careful next time

[PATCH v5] media: vimc: Add vimc-streamer for stream control

2019-02-07 Thread Lucas A. M. Magalhaes
Add a linear pipeline logic for the stream control. It's created by walking backwards on the entity graph. When the stream starts it will simply loop through the pipeline calling the respective process_frame function of each entity. Fixes: f2fe89061d797 ("vimc: Virtual Media Controller core, captu

Re: [RFC PATCH V0 7/7] [media] platform: mtk-isp: Add Mediatek DIP driver

2019-02-07 Thread Brian Norris
Hi, On Fri, Feb 01, 2019 at 07:21:31PM +0800, Frederic Chen wrote: > This patch adds the driver of Digital Image Processing (DIP) > unit in Mediatek ISP system, providing image format conversion, > resizing, and rotation features. > > The mtk-isp directory will contain drivers for multiple IP > b

Re: [PATCH v4] media: vimc: Add vimc-streamer for stream control

2019-02-07 Thread Hans Verkuil
Hi Lucas, On 1/22/19 2:05 AM, Lucas A. M. Magalhaes wrote: > Add a linear pipeline logic for the stream control. It's created by > walking backwards on the entity graph. When the stream starts it will > simply loop through the pipeline calling the respective process_frame > function of each entity

[PATCH] media: vim2m: don't use curr_ctx->dev before checking

2019-02-07 Thread Mauro Carvalho Chehab
It seems that it is possible that dev to be null, as there's a warning printing: "Instance released before the end of transaction" Solves this warning: drivers/media/platform/vim2m.c: drivers/media/platform/vim2m.c:525 device_work() warn: variable dereferenced before check 'curr_c

Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-02-07 Thread Matthew Wilcox
On Thu, Feb 07, 2019 at 09:19:47PM +0530, Souptick Joarder wrote: > Just thought to take opinion for documentation before placing it in v3. > Does it looks fine ? > > +/** > + * __vm_insert_range - insert range of kernel pages into user vma > + * @vma: user vma to map to > + * @pages: pointer to a

Re: [PATCH 3/6] uvc: fix smatch warning

2019-02-07 Thread Hans Verkuil
On 2/7/19 4:41 PM, Laurent Pinchart wrote: > Hello, > > On Thu, Feb 07, 2019 at 03:57:26PM +0100, Kieran Bingham wrote: >> On 07/02/2019 10:13, Hans Overkill wrote: >>> drivers/media/usb/uvc/uvc_video.c: drivers/media/usb/uvc/uvc_video.c:1893 >>> uvc_video_start_transfer() warn: argument 2 to %u

Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-02-07 Thread Mike Rapoport
On Thu, Feb 07, 2019 at 09:37:08PM +0530, Souptick Joarder wrote: > On Thu, Feb 7, 2019 at 9:27 PM Mike Rapoport wrote: > > > > Hi Souptick, > > > > On Thu, Feb 07, 2019 at 09:19:47PM +0530, Souptick Joarder wrote: > > > Hi Mike, > > > > > > Just thought to take opinion for documentation before pl

Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-02-07 Thread Souptick Joarder
On Thu, Feb 7, 2019 at 9:27 PM Mike Rapoport wrote: > > Hi Souptick, > > On Thu, Feb 07, 2019 at 09:19:47PM +0530, Souptick Joarder wrote: > > Hi Mike, > > > > Just thought to take opinion for documentation before placing it in v3. > > Does it looks fine ? > > Overall looks good to me. Several min

Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-02-07 Thread Mike Rapoport
Hi Souptick, On Thu, Feb 07, 2019 at 09:19:47PM +0530, Souptick Joarder wrote: > Hi Mike, > > Just thought to take opinion for documentation before placing it in v3. > Does it looks fine ? Overall looks good to me. Several minor points below. > +/** > + * __vm_insert_range - insert range of ke

Re: [PATCH v3 3/6] media: adv748x: csi2: Link AFE with TXA and TXB

2019-02-07 Thread Niklas Söderlund
On 2019-01-28 15:47:37 +0100, Jacopo Mondi wrote: > Hi Niklas, >sorry for replying late > > On Wed, Jan 16, 2019 at 02:44:25PM +0100, Niklas Söderlund wrote: > > Hi (again) Jacopo, > > > > I found something else in this patch unfortunately :-( > > > > On 2019-01-14 15:55:33 +0100, Niklas Söder

Re: [PATCH 7/6] omap4iss: fix sparse warning

2019-02-07 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Thu, Feb 07, 2019 at 03:38:02PM +0100, Hans Verkuil wrote: > drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression (4 0) > drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression (4 0) > drivers/staging/media/omap4iss/iss.c:

Re: [PATCH 5/6] omap3isp: fix sparse warning

2019-02-07 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Thu, Feb 07, 2019 at 10:13:37AM +0100, Hans Verkuil wrote: > drivers/media/platform/omap3isp/ispvideo.c:1013:15: warning: unknown > expression (4 0) > > Signed-off-by: Hans Verkuil > --- > drivers/media/platform/omap3isp/ispvideo.c | 5 +++-- > 1 file chan

Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-02-07 Thread Souptick Joarder
Hi Mike, On Thu, Jan 31, 2019 at 2:09 PM Mike Rapoport wrote: > > On Thu, Jan 31, 2019 at 08:38:12AM +0530, Souptick Joarder wrote: > > Previouly drivers have their own way of mapping range of > > kernel pages/memory into user vma and this was done by > > invoking vm_insert_page() within a loop.

Re: [PATCH 3/6] uvc: fix smatch warning

2019-02-07 Thread Laurent Pinchart
Hello, On Thu, Feb 07, 2019 at 03:57:26PM +0100, Kieran Bingham wrote: > On 07/02/2019 10:13, Hans Overkill wrote: > > drivers/media/usb/uvc/uvc_video.c: drivers/media/usb/uvc/uvc_video.c:1893 > > uvc_video_start_transfer() warn: argument 2 to %u specifier is cast from > > pointer > > > > Signe

Re: [PATCH] vimc: add USERPTR support

2019-02-07 Thread Helen Koike
Hi Hans, Sorry about my delay. On 1/14/19 3:05 PM, Hans Verkuil wrote: > On 1/14/19 6:04 PM, Helen Koike wrote: >> Hi Hans, >> >> Thanks for the patch. >> >> On 1/14/19 12:58 PM, Hans Verkuil wrote: >>> Add VB2_USERPTR to the vimc capture device. >>> >>> Signed-off-by: Hans Verkuil Acked-by: He

[GIT PULL FOR v5.1] Various fixes

2019-02-07 Thread Hans Verkuil
The following changes since commit f0ef022c85a899bcc7a1b3a0955c78a3d7109106: media: vim2m: allow setting the default transaction time via parameter (2019-01-31 17:17:08 -0200) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.1m for you to fetch c

Re: [PATCH] vimc: fill in bus_info in media_device_info

2019-02-07 Thread Helen Koike
On 1/30/19 11:43 AM, Hans Verkuil wrote: > It is good practice to fill in bus_info. > > Also just use 'platform:vimc' when filling in the bus_info in querycap: > the bus_info has nothing to do with the video device name. > > Signed-off-by: Hans Verkuil Acked-by: Helen Koike Thanks Helen >

Re: [PATCH 3/6] uvc: fix smatch warning

2019-02-07 Thread Kieran Bingham
Hi Hans, On 07/02/2019 10:13, Hans Overkill wrote: > drivers/media/usb/uvc/uvc_video.c: drivers/media/usb/uvc/uvc_video.c:1893 > uvc_video_start_transfer() warn: argument 2 to %u specifier is cast from > pointer > > Signed-off-by: Hans Verkuil This look fine to me. Reviewed-by: Kieran Bingha

Re: [PATCH 7/6] omap4iss: fix sparse warning

2019-02-07 Thread Sakari Ailus
On Thu, Feb 07, 2019 at 03:38:02PM +0100, Hans Verkuil wrote: > drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression (4 0) > drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression (4 0) > drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression

[PATCH 7/6] omap4iss: fix sparse warning

2019-02-07 Thread Hans Verkuil
drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression (4 0) drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression (4 0) drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown expression (4 0) drivers/staging/media/omap4iss/iss.c:141:15: warning: unknown

imx: smatch errors

2019-02-07 Thread Hans Verkuil
Hi Steve, It turns out that the daily build never compiled the staging media drivers, which included imx. Now that I enabled it I get these three errors: drivers/staging/media/imx/imx-media-vdic.c:236 prepare_vdi_in_buffers() error: uninitialized symbol 'prev_phys'. drivers/staging/media/imx/imx

Re: [PATCH 5/6] omap3isp: fix sparse warning

2019-02-07 Thread Sakari Ailus
On Thu, Feb 07, 2019 at 10:13:37AM +0100, Hans Verkuil wrote: > drivers/media/platform/omap3isp/ispvideo.c:1013:15: warning: unknown > expression (4 0) > > Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus -- Sakari Ailus sakari.ai...@linux.intel.com

Re: [PATCH 6/6] pxa_camera: fix smatch warning

2019-02-07 Thread Sakari Ailus
On Thu, Feb 07, 2019 at 10:13:38AM +0100, Hans Verkuil wrote: > drivers/media/platform/pxa_camera.c:2400 pxa_camera_probe() error: we > previously assumed 'pcdev->pdata' could be null (see line 2397) > > First check if platform data is provided, then check if DT data is provided, > and if neither

Re: [PATCH 0/2] Remove more SoC camera sensor drivers

2019-02-07 Thread Hans Verkuil
On 2/4/19 4:42 PM, Sakari Ailus wrote: > Hi folks, > > This set removes two additional SoC camera sensor drivers that have > corresponding V4L2 sub-device drivers. > > Sakari Ailus (2): > soc_camera: Remove the mt9m001 SoC camera sensor driver > soc_camera: Remove the rj45n1 SoC camera sensor

[RFC PATCH 3/8] vb2: fix epoll() by calling poll_wait first

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The epoll function expects that whenever the poll file op is called, the poll_wait function is also called. That didn't always happen in vb2_core_poll() and vb2_poll(). Fix this, otherwise epoll() would timeout when it shouldn't. Signed-off-by: Hans Verkuil Reported-by: Yi Qi

[RFC PATCH 2/8] media-request: fix epoll() by calling poll_wait first

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The epoll function expects that whenever the poll file op is called, the poll_wait function is also called. That didn't always happen in media_request_poll(). Fix this, otherwise epoll() would timeout when it shouldn't. Signed-off-by: Hans Verkuil --- drivers/media/media-req

[RFC PATCH 7/8] videobuf: fix epoll() by calling poll_wait first

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The epoll function expects that whenever the poll file op is called, the poll_wait function is also called. That didn't always happen in videobuf_poll_stream(). Fix this, otherwise epoll() would timeout when it shouldn't. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-co

[RFC PATCH 1/8] cec: fix epoll() by calling poll_wait first

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The epoll function expects that whenever the poll file op is called, the poll_wait function is also called. That didn't always happen in cec_poll(). Fix this, otherwise epoll() would timeout when it shouldn't. Signed-off-by: Hans Verkuil --- drivers/media/cec/cec-api.c | 2 +

[RFC PATCH 5/8] v4l2-mem2mem: fix epoll() by calling poll_wait first

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The epoll function expects that whenever the poll file op is called, the poll_wait function is also called. That didn't always happen in v4l2_m2m_poll(). Fix this, otherwise epoll() would timeout when it shouldn't. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2

[RFC PATCH 8/8] dvb-core: fix epoll() by calling poll_wait first

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The epoll function expects that whenever the poll file op is called, the poll_wait function is also called. That didn't always happen in dvb_demux_poll(), dvb_dvr_poll() and dvb_ca_en50221_io_poll(). Fix this, otherwise epoll() can timeout when it shouldn't. Signed-off-by: Han

[RFC PATCH 0/8] cec/mc/vb2/dvb: fix epoll support

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil As was reported by Yi Qingliang (http://lkml.iu.edu/hypermail/linux/kernel/1812.3/02144.html) the epoll support in v4l2 is broken. After researching this some more it turns out that we never really understood when poll_wait() should be called, and that in fact it is broken in

[RFC PATCH 6/8] v4l2-mem2mem: add q->error check to v4l2_m2m_poll()

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The v4l2_m2m_poll function didn't check whether q->error was set for either of the two queues. Add support for this. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-mem2mem.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media

[RFC PATCH 4/8] v4l2-ctrls.c: fix epoll() by calling poll_wait first

2019-02-07 Thread hverkuil-cisco
From: Hans Verkuil The epoll function expects that whenever the poll file op is called, the poll_wait function is also called. That didn't always happen in v4l2_ctrl_poll(). Fix this, otherwise epoll() would timeout when it shouldn't. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l

Re: [PATCH v10 1/2] drm/fourcc: Add new P010, P016 video format

2019-02-07 Thread Neil Armstrong
Hi, On 14/01/2019 17:36, Ayan Halder wrote: > On Thu, Jan 10, 2019 at 03:57:09AM +0800, Randy Li wrote: >> P010 is a planar 4:2:0 YUV with interleaved UV plane, 10 bits per >> channel video format. >> >> P012 is a planar 4:2:0 YUV 12 bits per channel >> >> P016 is a planar 4:2:0 YUV with interleav

[PATCH] media: rc: ir-rc6-decoder: enable toggle bit for Zotac remotes

2019-02-07 Thread Matthias Reichl
The Zotac RC2604323/01G and RC2604329/02BG remotes use the 32-bit rc6 protocol and toggle bit 15 (0x8000) on repeated button presses, like MCE remotes. Add the customer code 0x8034 to the 32-bit rc6 toggle handling code to get proper scancodes and toggle reports. Signed-off-by: Matthias Reich

Re: [PATCH 5/6] omap3isp: fix sparse warning

2019-02-07 Thread Hans Verkuil
On 2/7/19 10:13 AM, Hans Verkuil wrote: > drivers/media/platform/omap3isp/ispvideo.c:1013:15: warning: unknown > expression (4 0) I should add this text to the commit log: The combination of the v4l2_subdev_call and media_entity_to_v4l2_subdev macros became too complex for sparse. So first assig

Re: [PATCH v5 0/9] phy: Add configuration interface for MIPI D-PHY devices

2019-02-07 Thread Maxime Ripard
Hi Kishon, On Wed, Feb 06, 2019 at 06:00:19PM +0530, Kishon Vijay Abraham I wrote: > On 06/02/19 5:55 PM, Maxime Ripard wrote: > > On Wed, Feb 06, 2019 at 05:43:12PM +0530, Kishon Vijay Abraham I wrote: > >> On 05/02/19 2:16 PM, Daniel Vetter wrote: > >>> On Mon, Feb 04, 2019 at 03:33:31PM +0530,

Re: [PATCH v5 6/9] drm/bridge: cdns: Separate DSI and D-PHY configuration

2019-02-07 Thread Maxime Ripard
On Thu, Feb 07, 2019 at 09:44:46AM +0100, Paul Kocialkowski wrote: > Hi, > > On Mon, 2019-01-21 at 16:45 +0100, Maxime Ripard wrote: > > The current configuration of the DSI bridge and its associated D-PHY is > > intertwined. In order to ease the future conversion to the phy framework > > for the

[PATCH 5/6] omap3isp: fix sparse warning

2019-02-07 Thread Hans Verkuil
drivers/media/platform/omap3isp/ispvideo.c:1013:15: warning: unknown expression (4 0) Signed-off-by: Hans Verkuil --- drivers/media/platform/omap3isp/ispvideo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/p

[PATCH 3/6] uvc: fix smatch warning

2019-02-07 Thread Hans Verkuil
drivers/media/usb/uvc/uvc_video.c: drivers/media/usb/uvc/uvc_video.c:1893 uvc_video_start_transfer() warn: argument 2 to %u specifier is cast from pointer Signed-off-by: Hans Verkuil --- drivers/media/usb/uvc/uvcvideo.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/d

[PATCH 4/6] vsp1: fix smatch warning

2019-02-07 Thread Hans Verkuil
drivers/media/platform/vsp1/vsp1_drm.c: drivers/media/platform/vsp1/vsp1_drm.c:336 vsp1_du_pipeline_setup_brx() error: we previously assumed 'pipe->brx' could be null (see line 244) smatch missed that if pipe->brx was NULL, then later on it will be set with a non-NULL value. But it is easier to

[PATCH 2/6] vim2m: fix smatch warning

2019-02-07 Thread Hans Verkuil
drivers/media/platform/vim2m.c: drivers/media/platform/vim2m.c:525 device_work() warn: variable dereferenced before check 'curr_ctx' (see line 523) Signed-off-by: Hans Verkuil --- drivers/media/platform/vim2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pl

[PATCH 1/6] hdpvr: fix smatch warning

2019-02-07 Thread Hans Verkuil
drivers/media/usb/hdpvr/hdpvr-i2c.c: drivers/media/usb/hdpvr/hdpvr-i2c.c:78 hdpvr_i2c_read() warn: 'dev->i2c_buf' 4216624615462223872 can't fit into 127 '*data' dev->i2c_buf is a char array, so you can just use dev->i2c_buf to get the start address, no need to do &dev->i2c_buf, even though it is

[PATCH 6/6] pxa_camera: fix smatch warning

2019-02-07 Thread Hans Verkuil
drivers/media/platform/pxa_camera.c:2400 pxa_camera_probe() error: we previously assumed 'pcdev->pdata' could be null (see line 2397) First check if platform data is provided, then check if DT data is provided, and if neither is provided just return with -ENODEV. Signed-off-by: Hans Verkuil ---

[PATCH 0/6] sparse/smatch fixes

2019-02-07 Thread Hans Verkuil
Various sparse and smatch fixes. Together with https://patchwork.linuxtv.org/patch/53375/ and https://patchwork.linuxtv.org/patch/54237/ we have a clean bill of health. The vsp1 patch supersedes this by now outdated old patch: https://patchwork.linuxtv.org/patch/49263/ Kieran, Laurent, please rev

Re: I've been waiting for your answer

2019-02-07 Thread Mr Joseph
I am waiting to hear from you about the message I sent you. Mr. Joseph

Re: [PATCH v3 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-02-07 Thread Tomasz Figa
On Thu, Jan 31, 2019 at 10:19 PM Hans Verkuil wrote: > > On 1/31/19 1:44 PM, Philipp Zabel wrote: > > On Thu, 2019-01-31 at 13:30 +0100, Hans Verkuil wrote: > >> On 1/31/19 11:45 AM, Hans Verkuil wrote: > >>> On 1/24/19 11:04 AM, Tomasz Figa wrote: > Due to complexity of the video decoding pr

Re: [PATCH v5 6/9] drm/bridge: cdns: Separate DSI and D-PHY configuration

2019-02-07 Thread Paul Kocialkowski
Hi, On Mon, 2019-01-21 at 16:45 +0100, Maxime Ripard wrote: > The current configuration of the DSI bridge and its associated D-PHY is > intertwined. In order to ease the future conversion to the phy framework > for the D-PHY part, let's split the configuration in two. See below about a silly mist

Re: [PATCH v5 5/9] phy: Move Allwinner A31 D-PHY driver to drivers/phy/

2019-02-07 Thread Paul Kocialkowski
Hi, On Mon, 2019-01-21 at 16:45 +0100, Maxime Ripard wrote: > Now that our MIPI D-PHY driver has been converted to the phy framework, > let's move it into the drivers/phy directory. > > Signed-off-by: Maxime Ripard Reviewed-by: Paul Kocialkowski Cheers, Paul > --- > drivers/gpu/drm/sun4i/K

Re: [PATCH v4 4/9] sun6i: dsi: Convert to generic phy handling

2019-02-07 Thread Paul Kocialkowski
Hi, On Wed, 2019-01-09 at 10:33 +0100, Maxime Ripard wrote: > Now that we have everything in place in the PHY framework to deal in a > generic way with MIPI D-PHY phys, let's convert our PHY driver and its > associated DSI driver to that new API. > > Signed-off-by: Maxime Ripard Reviewed-by: Pa

Re: [PATCH v5 4/9] sun6i: dsi: Convert to generic phy handling

2019-02-07 Thread Paul Kocialkowski
Hi, On Mon, 2019-01-21 at 16:45 +0100, Maxime Ripard wrote: > Now that we have everything in place in the PHY framework to deal in a > generic way with MIPI D-PHY phys, let's convert our PHY driver and its > associated DSI driver to that new API. > > Signed-off-by: Maxime Ripard Reviewed-by: Pa