Re: [RESEND PATCH v3 02/17] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2020-02-28 Thread Steve Longerbeam
Hi Sakari, On 2/25/20 7:07 AM, Sakari Ailus wrote: Hi Steve, On Sat, Feb 15, 2020 at 11:41:21AM -0800, Steve Longerbeam wrote: Instead of allocating a notifier in v4l2_async_register_fwnode_subdev(), have the caller provide one. This allows the caller to implement notifier ops (bind, unbind

Re: [RESEND PATCH v3 02/17] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2020-02-26 Thread Steve Longerbeam
Hi Sakari, Thanks for the feedback. On 2/25/20 7:07 AM, Sakari Ailus wrote: Hi Steve, On Sat, Feb 15, 2020 at 11:41:21AM -0800, Steve Longerbeam wrote: Instead of allocating a notifier in v4l2_async_register_fwnode_subdev(), have the caller provide one. This allows the caller to implement

[RESEND PATCH v3 16/17] media: imx: silence a couple debug messages

2020-02-15 Thread Steve Longerbeam
Convert to dev_dbg the "subdev bound" and IPU-internal media-link creation messages. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-dev-common.c | 4 +++- drivers/staging/media/imx/imx-media-dev.c | 2 +- drivers/staging/media/imx/imx-media-interna

[RESEND PATCH v3 12/17] media: imx: csi: Add missing notifier unregister/cleanup

2020-02-15 Thread Steve Longerbeam
Add the missing calls to unregister and cleanup the subdev notifier in imx_csi_remove(). Fixes: c893500a16baf ("media: imx: csi: Register a subdev notifier") Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 2 ++ 1 file changed, 2 insertions(+) di

[RESEND PATCH v3 14/17] media: imx: csi: Lookup upstream endpoint with imx_media_get_pad_fwnode

2020-02-15 Thread Steve Longerbeam
Fix the 1:1 port-id:pad-index assumption for the upstream subdevice, by searching the upstream subdevice's endpoints for one that maps to the pad's index. This is carried out by a new reverse mapping function imx_media_get_pad_fwnode(). Signed-off-by: Steve Longerbeam --- drivers/sta

[RESEND PATCH v3 13/17] media: imx: csi: Create media links in bound notifier

2020-02-15 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link(). --- drivers/staging/media/imx/imx-media-csi.c

[RESEND PATCH v3 15/17] media: imx: Create missing links from CSI-2 receiver

2020-02-15 Thread Steve Longerbeam
receiver. Until there is a solution to that problem, rewrite imx_media_create_links() to add the missing links from the CSI-2 receiver to the CSIs and CSI muxes. The function is renamed imx_media_create_csi2_links(). Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media

[RESEND PATCH v3 17/17] media: imx: TODO: Remove media link creation todos

2020-02-15 Thread Steve Longerbeam
Remove the TODO items regarding media link creation, these issues are resolved by moving media link creation to individual entity bound callbacks and the implementation of the get_fwnode_pad operation. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/TODO | 29

[RESEND PATCH v3 11/17] media: imx: csi: Embed notifier in struct csi_priv

2020-02-15 Thread Steve Longerbeam
Embed the notifier in 'struct csi_priv', instead of dynamically allocating it, to make it possible to retrieve csi_priv in a notifier callback op. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 25 +-- 1 file changed, 10 inserti

[RESEND PATCH v3 10/17] media: imx7-media-csi: Create media links in bound notifier

2020-02-15 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam Reviewed-by: Rui Miguel Silva --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link(). Changes in v2: - R

[RESEND PATCH v3 06/17] media: imx: Add imx_media_create_fwnode_pad_link()

2020-02-15 Thread Steve Longerbeam
Add functions to create media links between a source and sink subdevice based on fwnode endpoint connections between them. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-utils.c | 91 + drivers/staging/media/imx/imx-media.h | 4 + 2 files

[RESEND PATCH v3 09/17] media: imx7-mipi-csis: Create media links in bound notifier

2020-02-15 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link(). Changes in v2: -

[RESEND PATCH v3 04/17] media: imx: mipi csi-2: Implement get_fwnode_pad op

2020-02-15 Thread Steve Longerbeam
Implement get_fwnode_pad operation. If the endpoint is owned by the MIPI CSI-2 receiver, return the endpoint's port number. The MIPI CSI-2 receiver maps port numbers and pad indexes 1:1. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx6-mipi-csi2.c

[RESEND PATCH v3 03/17] media: imx: csi: Implement get_fwnode_pad op

2020-02-15 Thread Steve Longerbeam
sink endpoint, and if so return the CSI sink pad index. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c

[RESEND PATCH v3 08/17] media: imx: mipi csi-2: Create media links in bound notifier

2020-02-15 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link() that creates a single link. --- dr

[RESEND PATCH v3 02/17] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2020-02-15 Thread Steve Longerbeam
Instead of allocating a notifier in v4l2_async_register_fwnode_subdev(), have the caller provide one. This allows the caller to implement notifier ops (bind, unbind). The caller is now responsible for first initializing its notifier with a call to v4l2_async_notifier_init(). Signed-off-by: Steve

[PATCH v3 16/17] media: imx: silence a couple debug messages

2020-02-04 Thread Steve Longerbeam
Convert to dev_dbg the "subdev bound" and IPU-internal media-link creation messages. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-dev-common.c | 4 +++- drivers/staging/media/imx/imx-media-dev.c | 2 +- drivers/staging/media/imx/imx-media-interna

[PATCH v3 08/17] media: imx: mipi csi-2: Create media links in bound notifier

2020-02-04 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link() that creates a single link. --- dr

[PATCH v3 06/17] media: imx: Add imx_media_create_fwnode_pad_link()

2020-02-04 Thread Steve Longerbeam
Add functions to create media links between a source and sink subdevice based on fwnode endpoint connections between them. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-utils.c | 91 + drivers/staging/media/imx/imx-media.h | 4 + 2 files

[PATCH v3 10/17] media: imx7-media-csi: Create media links in bound notifier

2020-02-04 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam Reviewed-by: Rui Miguel Silva --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link(). Changes in v2: - R

[PATCH v3 13/17] media: imx: csi: Create media links in bound notifier

2020-02-04 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link(). --- drivers/staging/media/imx/imx-media-csi.c

[PATCH v3 03/17] media: imx: csi: Implement get_fwnode_pad op

2020-02-04 Thread Steve Longerbeam
sink endpoint, and if so return the CSI sink pad index. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c

[PATCH v3 17/17] media: imx: TODO: Remove media link creation todos

2020-02-04 Thread Steve Longerbeam
Remove the TODO items regarding media link creation, these issues are resolved by moving media link creation to individual entity bound callbacks and the implementation of the get_fwnode_pad operation. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/TODO | 29

[PATCH v3 11/17] media: imx: csi: Embed notifier in struct csi_priv

2020-02-04 Thread Steve Longerbeam
Embed the notifier in 'struct csi_priv', instead of dynamically allocating it, to make it possible to retrieve csi_priv in a notifier callback op. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 25 +-- 1 file changed, 10 inserti

[PATCH v3 09/17] media: imx7-mipi-csis: Create media links in bound notifier

2020-02-04 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media utility imx_media_create_fwnode_pad_link(). Changes in v2: -

[PATCH v3 02/17] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2020-02-04 Thread Steve Longerbeam
Instead of allocating a notifier in v4l2_async_register_fwnode_subdev(), have the caller provide one. This allows the caller to implement notifier ops (bind, unbind). The caller is now responsible for first initializing its notifier with a call to v4l2_async_notifier_init(). Signed-off-by: Steve

[PATCH v3 04/17] media: imx: mipi csi-2: Implement get_fwnode_pad op

2020-02-04 Thread Steve Longerbeam
Implement get_fwnode_pad operation. If the endpoint is owned by the MIPI CSI-2 receiver, return the endpoint's port number. The MIPI CSI-2 receiver maps port numbers and pad indexes 1:1. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx6-mipi-csi2.c

[PATCH v3 12/17] media: imx: csi: Add missing notifier unregister/cleanup

2020-02-04 Thread Steve Longerbeam
Add the missing calls to unregister and cleanup the subdev notifier in imx_csi_remove(). Fixes: c893500a16baf ("media: imx: csi: Register a subdev notifier") Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH v3 14/17] media: imx: csi: Lookup upstream endpoint with imx_media_get_pad_fwnode

2020-02-04 Thread Steve Longerbeam
Fix the 1:1 port-id:pad-index assumption for the upstream subdevice, by searching the upstream subdevice's endpoints for one that maps to the pad's index. This is carried out by a new reverse mapping function imx_media_get_pad_fwnode(). Signed-off-by: Steve Longerbeam --- drivers/sta

[PATCH v3 15/17] media: imx: Create missing links from CSI-2 receiver

2020-02-04 Thread Steve Longerbeam
receiver. Until there is a solution to that problem, rewrite imx_media_create_links() to add the missing links from the CSI-2 receiver to the CSIs and CSI muxes. The function is renamed imx_media_create_csi2_links(). Signed-off-by: Steve Longerbeam --- Changes in v3: - call a local imx-media

Re: [PATCH] media: imx7-mipi-csis: remove subdev_notifier

2019-12-12 Thread Steve Longerbeam
ver subdev for i.MX7") Reported-by: Hans Verkuil Suggested-by: Dan Carpenter Suggested-by: Philipp Zabel Signed-off-by: Rui Miguel Silva Reviewed-by: Steve Longerbeam --- drivers/staging/media/imx/imx7-mipi-csis.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging

Re: [PATCH] media: imx7-mipi-csis: Add the missed v4l2_async_notifier_cleanup in remove

2019-12-12 Thread Steve Longerbeam
On 12/12/19 11:08 AM, Rui Miguel Silva wrote: Hi Dan, Thanks for the inputs. On Thu, Dec 12, 2019 at 02:51:34PM +0300, Dan Carpenter wrote: On Mon, Dec 09, 2019 at 04:58:28PM +0800, Chuhong Yuan wrote: All drivers in imx call v4l2_async_notifier_cleanup() after unregistering the notifier exc

Re: [PATCH v8 5/5] media: imx: Try colorimetry at both sink and source pads

2019-10-22 Thread Steve Longerbeam
6:34 AM, Rui Miguel Silva wrote: Hi Laurent, On Tue 22 Oct 2019 at 02:44, Laurent Pinchart wrote: Hi Steve, On Tue, May 21, 2019 at 06:03:17PM -0700, Steve Longerbeam wrote: Retask imx_media_fill_default_mbus_fields() to try colorimetry parameters, renaming it to to imx_media_try_colorimetry()

Re: [PATCH v8 5/5] media: imx: Try colorimetry at both sink and source pads

2019-10-21 Thread Steve Longerbeam
On 10/21/19 8:26 PM, Steve Longerbeam wrote: Hi Laurent, On 10/21/19 6:44 PM, Laurent Pinchart wrote: Hi Steve, On Tue, May 21, 2019 at 06:03:17PM -0700, Steve Longerbeam wrote: Retask imx_media_fill_default_mbus_fields() to try colorimetry parameters, renaming it to to

Re: [PATCH v8 5/5] media: imx: Try colorimetry at both sink and source pads

2019-10-21 Thread Steve Longerbeam
Hi Laurent, On 10/21/19 6:44 PM, Laurent Pinchart wrote: Hi Steve, On Tue, May 21, 2019 at 06:03:17PM -0700, Steve Longerbeam wrote: Retask imx_media_fill_default_mbus_fields() to try colorimetry parameters, renaming it to to imx_media_try_colorimetry(), and call it at both sink and source

Re: [PATCH 15/22] media: imx7-media-csi: Create media links in bound notifier

2019-09-02 Thread Steve Longerbeam
Hi Rui, On 9/2/19 2:38 AM, Rui Miguel Silva wrote: Hi Steve, On Tue 06 Aug 2019 at 00:34, Steve Longerbeam wrote: Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/

[PATCH v2 2/2] media: imx: Move pads init to probe

2019-08-24 Thread Steve Longerbeam
egistered callback. But calling media_entity_pads_init() in the .registered callbacks was done for legacy reasons and is no longer necessary, so move the call to media_entity_pads_init() into the subdevice's probe functions. This fixes the duplicate pad obejcts in the media device pad list

[PATCH v2 1/2] media: imx: Move capture device init to registered

2019-08-24 Thread Steve Longerbeam
egistered() and csi_unregistered(). This will create a new un-initialized video device when the CSI is re-registered. Do this for all the subdevices that register a capture device. Reported-by: Russell King Signed-off-by: Steve Longerbeam --- Changes in v2: Add missing local var ic_priv in prp_registe

[PATCH 2/2] media: imx: Move pads init to probe

2019-08-23 Thread Steve Longerbeam
egistered callback. But calling media_entity_pads_init() in the .registered callbacks was done for legacy reasons and is no longer necessary, so move the call to media_entity_pads_init() into the subdevice's probe functions. This fixes the duplicate pad obejcts in the media device pad list

[PATCH 1/2] media: imx: Move capture device init to registered

2019-08-23 Thread Steve Longerbeam
egistered() and csi_unregistered(). This will create a new un-initialized video device when the CSI is re-registered. Do this for all the subdevices that register a capture device. Reported-by: Russell King Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-

Re: [BUG] removing and reinserting imx-media causes kernel to explode

2019-08-18 Thread Steve Longerbeam
On 8/14/19 2:25 AM, Russell King - ARM Linux admin wrote: I just did this: rmmod imx-media modprobe imx-media and was greeted by the below kernel messages. Yes this needs fixing, the CSI needs to check first that it is already registered before going through the ->registered() steps. Posti

Re: [PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base

2019-08-15 Thread Steve Longerbeam
On 8/14/19 4:15 PM, Russell King - ARM Linux admin wrote: On Wed, Aug 14, 2019 at 04:00:30PM -0700, Steve Longerbeam wrote: On 8/14/19 3:04 PM, Russell King - ARM Linux admin wrote: On Wed, Aug 14, 2019 at 12:04:41PM -0700, Steve Longerbeam wrote: On 8/14/19 3:30 AM, Russell King - ARM

Re: [PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base

2019-08-14 Thread Steve Longerbeam
On 8/14/19 3:04 PM, Russell King - ARM Linux admin wrote: On Wed, Aug 14, 2019 at 12:04:41PM -0700, Steve Longerbeam wrote: On 8/14/19 3:30 AM, Russell King - ARM Linux admin wrote: On Tue, Aug 06, 2019 at 09:53:41AM -0700, Steve Longerbeam wrote: The full patchset doesn't seem to

Re: [PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base

2019-08-14 Thread Steve Longerbeam
On 8/14/19 3:30 AM, Russell King - ARM Linux admin wrote: On Tue, Aug 06, 2019 at 09:53:41AM -0700, Steve Longerbeam wrote: The full patchset doesn't seem to be up yet, but see [1] for the cover letter. Was the entire series copied to the mailing lists, or just selected patches? I onl

[PATCH] media: imx: mipi csi-2: Release DPHY reset in s_power

2019-08-10 Thread Steve Longerbeam
state until stream on, then this should still work fine. The receiver will detect the HS transition at step 6, when streaming is enabled at the transmitter. Tested on imx6q SabreSD with OV5640. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx6-mipi-csi2.c | 93 +---

Re: [PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base

2019-08-06 Thread Steve Longerbeam
Hi Andy, On 8/5/19 11:41 PM, Andy Shevchenko wrote: On Tue, Aug 6, 2019 at 2:37 AM Steve Longerbeam wrote: There is nothing v4l2-specific about v4l2_fwnode_{parse|put}_link(). Make these functions more generally available by moving them to driver base, with the appropriate name changes to the

[PATCH 20/22] media: imx: Add is_ipu_internal_subdev()

2019-08-05 Thread Steve Longerbeam
Add a convenience inline function that returns true if the given subdevice is one of the i.MX5/6 IPU-internal subdevices. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/media/imx/imx-media.h

[PATCH 13/22] media: imx: mipi csi-2: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx6-mipi-csi2.c | 24 ++ 1 file changed, 24 insertions(+) diff --

[PATCH 19/22] media: imx: csi: Lookup endpoint fwnode with media_entity_get_fwnode_pad

2019-08-05 Thread Steve Longerbeam
apping function imx_media_get_pad_fwnode(). Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 22 -- drivers/staging/media/imx/imx-media-utils.c | 33 + drivers/staging/media/imx/imx-media.h | 1 + drivers/staging/media/imx/i

[PATCH 11/22] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2019-08-05 Thread Steve Longerbeam
Instead of allocating a notifier in v4l2_async_register_fwnode_subdev(), have the caller provide one. This allows the caller to implement notifier ops (bind, unbind). The caller is now responsible for first initializing its notifier with a call to v4l2_async_notifier_init(). Signed-off-by: Steve

[PATCH 16/22] media: imx: csi: Implement get_fwnode_pad

2019-08-05 Thread Steve Longerbeam
sink endpoint, and if so return the CSI sink pad index. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c

[PATCH 22/22] media: imx: TODO: Remove issues regarding media link creation

2019-08-05 Thread Steve Longerbeam
Remove the TODO items regarding media link creation, these issues are resolved after exporting media link creation to individual entity bound callbacks and the use of media_create_fwnode_links(), media_create_fwnode_pad_links(), and media_entity_get_fwnode_pad(). Signed-off-by: Steve Longerbeam

[PATCH 15/22] media: imx7-media-csi: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx7-media-csi.c | 24 ++ 1 file changed, 24 insertions(+) diff --git a/drivers/staging/

[PATCH 21/22] media: imx: Use media_create_fwnode_links for external links

2019-08-05 Thread Steve Longerbeam
media_create_fwnode_links() can now be used to do that work, so imx_media_create_of_links() and imx_media_create_csi_of_links() are removed. Signed-off-by: Steve Longerbeam --- .../staging/media/imx/imx-media-dev-common.c | 49 drivers/staging/media/imx/imx-media-of.c | 113 -- drivers

[PATCH 17/22] media: imx: csi: Embed notifier in struct csi_priv

2019-08-05 Thread Steve Longerbeam
Embed the notifier in 'struct csi_priv', instead of dynamically allocating it, to make it possible to retrieve csi_priv in a notifier callback op. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 25 +-- 1 file changed, 10 inserti

[PATCH 18/22] media: imx: csi: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 24 +++ 1 file changed, 24 insertions(+) diff --git a/drivers/staging/

[PATCH 14/22] media: imx7-mipi-csis: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx7-mipi-csis.c | 25 ++ 1 file changed, 25 insertions(+) diff --

[PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base

2019-08-05 Thread Steve Longerbeam
#x27; for both sides of the link, and make use of fwnode_graph_parse_endpoint() to fully parse both endpoints. Rename members local_node and remote_node to more descriptive local_port_parent and remote_port_parent. Signed-off-by: Steve Longerbeam --- drivers/base/property.c

[PATCH] media: staging/imx: Fix NULL deref in find_pipeline_entity()

2019-06-26 Thread Steve Longerbeam
("media: staging/imx: Improve pipeline searching") Reported-by: Colin Ian King Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/imx/imx-media-utils.c b/drivers/stag

Re: media: staging/imx: Improve pipeline searching (bug report)

2019-06-26 Thread Steve Longerbeam
Thanks for catching, On 6/26/19 11:27 AM, Colin Ian King wrote: Hi, Static analysis with Coverity on Linux next has found a potential issue with the following commit: commit 3ef46bc97ca2c918b7657a08220c7340a9bb07a2 Author: Steve Longerbeam Date: Fri May 10 17:50:11 2019 -0400 media

[PATCH v8 2/5] gpu: ipu-v3: ipu-ic: Fully describe colorspace conversions

2019-05-21 Thread Steve Longerbeam
mments are expanded in ipu-ic-csc.c. The ic_csc_rgb2rgb table was just an identity matrix, so it is renamed 'identity' in ipu-ic-csc.c. Signed-off-by: Steve Longerbeam --- Changes in v8: - remove Fixes: and cc: stable. This patch is too difficult to backport to stable trees. Changes i

[PATCH v8 5/5] media: imx: Try colorimetry at both sink and source pads

2019-05-21 Thread Steve Longerbeam
C now supports Rec.709 and BT.601 Y'CbCr encoding, and both limited and full range quantization for both YUV and RGB space, so allow those for pipelines that route through the IC. Signed-off-by: Steve Longerbeam --- Changes in v7: - squashed with "media: imx: Allow Rec.709 encoding for IC ro

[PATCH v5 7/9] media: staging/imx: Re-organize modules

2019-05-10 Thread Steve Longerbeam
that, some functions common to imx5/6 and imx7 have been moved out of imx-media-dev.c and into imx-media-dev-common.c. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile| 14 +- .../staging/media/imx/imx-media-dev-common.c | 345 +- drivers

[PATCH v5 5/9] Revert "media: imx: Set capture compose rectangle in capture_device_set_format"

2019-05-10 Thread Steve Longerbeam
Rvert this commit, as imx_media_capture_device_set_format() will be removed. The arguments to mx_media_mbus_fmt_to_pix_fmt() and imx_media_capture_device_set_format() in imx7_csi_set_fmt() are also reverted. This reverts commit 5964cbd8692252615370b77eb96764dd70c2f837. Signed-off-by: Steve

[PATCH v5 3/9] media: staging/imx: Pass device to alloc/free_dma_buf

2019-05-10 Thread Steve Longerbeam
Allocate and free a DMA coherent buffer in imx_media_alloc/free_dma_buf() from the given device. This allows DMA alloc and free using a device that is backed by real hardware, which for the imx5/6/7 CSI is the CSI unit, and for the internal IPU sub-devices, is the parent IPU. Signed-off-by: Steve

[PATCH v5 6/9] media: staging/imx: Remove capture_device_set_format

2019-05-10 Thread Steve Longerbeam
ormat with the source before streaming starts. Signed-off-by: Steve Longerbeam --- Changes in v4: - add **cc arg to __capture_try_fmt_vid_cap() to validate colorspace, instead of calling ipu_pixelformat_to_colorspace(). - add error message if capture format validation failed. --- drivers/staging

[PATCH v5 8/9] media: staging/imx: Improve pipeline searching

2019-05-10 Thread Steve Longerbeam
searches for video devices. - Remove imxmd pointer arg from all of the functions above, it was never used in those functions. With that change the i.MX5/6 CSI, VDIC, and IC sub-devices no longer require the media_device. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic

[PATCH v5 2/9] media: staging/imx: Switch to sync registration for IPU subdevs

2019-05-10 Thread Steve Longerbeam
eference can be taken on the IPU module. Since the VDIC and IC task drivers are no longer platform drivers, they are now statically linked to imx-media module. Signed-off-by: Steve Longerbeam --- Changes in v3: - statically link VDIC and IC task objects to imx-media module in Makefile.

[PATCH v5 4/9] media: staging/imx: Move add_video_device into capture_device_register

2019-05-10 Thread Steve Longerbeam
Move imx_media_add_video_device() into imx_media_capture_device_register(). Also the former has no error conditions to convert to void. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 5 - drivers/staging/media/imx/imx-media-capture.c | 3 +++ drivers

[PATCH v5 1/9] Revert "media: staging/imx: add media device to capture register"

2019-05-10 Thread Steve Longerbeam
The imx6-specific subdevs that register a capture device will no longer hold a reference to the media device, so this commit must be reverted. This reverts commit 16204b8a1c1af77725533b77936e6c73953486ae. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 2

[PATCH v5 9/9] media: staging/imx: Don't set driver data for v4l2_dev

2019-05-10 Thread Steve Longerbeam
off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c| 5 +++-- drivers/staging/media/imx/imx-media-dev-common.c | 7 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx

[PATCH v4 7/8] media: staging/imx: Improve pipeline searching

2019-05-03 Thread Steve Longerbeam
searches for video devices. - Remove imxmd pointer arg from all of the functions above, it was never used in those functions. With that change the i.MX5/6 CSI, VDIC, and IC sub-devices no longer require the media_device. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic

[PATCH v4 3/8] media: staging/imx: Move add_video_device into capture_device_register

2019-05-03 Thread Steve Longerbeam
Move imx_media_add_video_device() into imx_media_capture_device_register(). Also the former has no error conditions to convert to void. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 5 - drivers/staging/media/imx/imx-media-capture.c | 3 +++ drivers

[PATCH v4 8/8] media: staging/imx: Don't set driver data for v4l2_dev

2019-05-03 Thread Steve Longerbeam
off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c| 5 +++-- drivers/staging/media/imx/imx-media-dev-common.c | 7 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx

[PATCH v4 6/8] media: staging/imx: Re-organize modules

2019-05-03 Thread Steve Longerbeam
that, some functions common to imx5/6 and imx7 have been moved out of imx-media-dev.c and into imx-media-dev-common.c. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile| 14 +- .../staging/media/imx/imx-media-dev-common.c | 345 +- drivers

[PATCH v4 2/8] media: staging/imx: Pass device to alloc/free_dma_buf

2019-05-03 Thread Steve Longerbeam
Allocate and free a DMA coherent buffer in imx_media_alloc/free_dma_buf() from the given device. This allows DMA alloc and free using a device that is backed by real hardware, which for the imx5/6/7 CSI is the CSI unit, and for the internal IPU sub-devices, is the parent IPU. Signed-off-by: Steve

[PATCH v4 4/8] Revert "media: imx: Set capture compose rectangle in capture_device_set_format"

2019-05-03 Thread Steve Longerbeam
Rvert this commit, as imx_media_capture_device_set_format() will be removed. The arguments to mx_media_mbus_fmt_to_pix_fmt() and imx_media_capture_device_set_format() in imx7_csi_set_fmt() are also reverted. This reverts commit 5964cbd8692252615370b77eb96764dd70c2f837. Signed-off-by: Steve

[PATCH v4 5/8] media: staging/imx: Remove capture_device_set_format

2019-05-03 Thread Steve Longerbeam
ormat with the source before streaming starts. Signed-off-by: Steve Longerbeam --- Changes in v4: - add **cc arg to __capture_try_fmt_vid_cap() to validate colorspace, instead of calling ipu_pixelformat_to_colorspace(). - add error message if capture format validation failed. --- drivers/staging

[PATCH v4 1/8] media: staging/imx: Switch to sync registration for IPU subdevs

2019-05-03 Thread Steve Longerbeam
eference can be taken on the IPU module. Since the VDIC and IC task drivers are no longer platform drivers, they are now statically linked to imx-media module. Signed-off-by: Steve Longerbeam --- Changes in v3: - statically link VDIC and IC task objects to imx-media module in Makefile.

Re: [PATCH v3 5/8] media: staging/imx: Remove capture_device_set_format

2019-05-02 Thread Steve Longerbeam
On 5/2/19 3:01 AM, Rui Miguel Silva wrote: Hi Steve, Thanks for v3 with bisect fixed. On Tue 30 Apr 2019 at 23:50, Steve Longerbeam wrote: Don't propagate the source pad format to the connected capture device. It's now the responsibility of userspace to call VIDIOC_S_FMT on t

[PATCH v3 7/8] media: staging/imx: Improve pipeline searching

2019-04-30 Thread Steve Longerbeam
searches for video devices. - Remove imxmd pointer arg from all of the functions above, it was never used in those functions. With that change the i.MX5/6 CSI, VDIC, and IC sub-devices no longer require the media_device. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic

[PATCH v3 2/8] media: staging/imx: Pass device to alloc/free_dma_buf

2019-04-30 Thread Steve Longerbeam
Allocate and free a DMA coherent buffer in imx_media_alloc/free_dma_buf() from the given device. This allows DMA alloc and free using a device that is backed by real hardware, which for the imx5/6/7 CSI is the CSI unit, and for the internal IPU sub-devices, is the parent IPU. Signed-off-by: Steve

[PATCH v3 1/8] media: staging/imx: Switch to sync registration for IPU subdevs

2019-04-30 Thread Steve Longerbeam
eference can be taken on the IPU module. Since the VDIC and IC task drivers are no longer platform drivers, they are now statically linked to imx-media module. Signed-off-by: Steve Longerbeam --- Changes in v3: - statically link VDIC and IC task objects to imx-media module in Makefile.

[PATCH v3 8/8] media: staging/imx: Don't set driver data for v4l2_dev

2019-04-30 Thread Steve Longerbeam
off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c| 5 +++-- drivers/staging/media/imx/imx-media-dev-common.c | 7 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx

[PATCH v3 6/8] media: staging/imx: Re-organize modules

2019-04-30 Thread Steve Longerbeam
that, some functions common to imx5/6 and imx7 have been moved out of imx-media-dev.c and into imx-media-dev-common.c. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile| 14 +- .../staging/media/imx/imx-media-dev-common.c | 345 +- drivers

[PATCH v3 4/8] Revert "media: imx: Set capture compose rectangle in capture_device_set_format"

2019-04-30 Thread Steve Longerbeam
Rvert this commit, as imx_media_capture_device_set_format() will be removed. The arguments to mx_media_mbus_fmt_to_pix_fmt() and imx_media_capture_device_set_format() in imx7_csi_set_fmt() are also reverted. This reverts commit 5964cbd8692252615370b77eb96764dd70c2f837. Signed-off-by: Steve

[PATCH v3 3/8] media: staging/imx: Move add_video_device into capture_device_register

2019-04-30 Thread Steve Longerbeam
Move imx_media_add_video_device() into imx_media_capture_device_register(). Also the former has no error conditions to convert to void. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 5 - drivers/staging/media/imx/imx-media-capture.c | 3 +++ drivers

[PATCH v3 5/8] media: staging/imx: Remove capture_device_set_format

2019-04-30 Thread Steve Longerbeam
ormat with the source before streaming starts. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 16 + drivers/staging/media/imx/imx-media-capture.c | 64 +-- drivers/staging/media/imx/imx-media-csi.c | 16 + drivers/staging/media/imx/i

Re: [PATCH v2 4/8] Revert "media: imx: Set capture compose rectangle in capture_device_set_format"

2019-04-30 Thread Steve Longerbeam
Yes, because the reverted commit was merged before the imx7 support, I will fix this for v3. Steve On 4/30/19 3:00 PM, Rui Miguel Silva wrote: Hi Steve, On Sun 28 Apr 2019 at 20:09, Steve Longerbeam wrote: Rvert this commit, as imx_media_capture_device_set_format() will be removed. This

Re: [PATCH v2 1/8] media: staging/imx: Switch to sync registration for IPU subdevs

2019-04-30 Thread Steve Longerbeam
Thanks Rui for catching the bisect problem, I will fix for v3. Steve On 4/30/19 2:56 PM, Rui Miguel Silva wrote: Hi Steve, On Sun 28 Apr 2019 at 20:09, Steve Longerbeam wrote: Because the IPU sub-devices VDIC and IC are not present in the device-tree, platform devices were created for them

[PATCH v2 8/8] media: staging/imx: Don't set driver data for v4l2_dev

2019-04-28 Thread Steve Longerbeam
off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c| 5 +++-- drivers/staging/media/imx/imx-media-dev-common.c | 7 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx

[PATCH v2 5/8] media: staging/imx: Remove capture_device_set_format

2019-04-28 Thread Steve Longerbeam
ormat with the source before streaming starts. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 16 + drivers/staging/media/imx/imx-media-capture.c | 64 +-- drivers/staging/media/imx/imx-media-csi.c | 16 + drivers/staging/media/imx/i

[PATCH v2 7/8] media: staging/imx: Improve pipeline searching

2019-04-28 Thread Steve Longerbeam
searches for video devices. - Remove imxmd pointer arg from all of the functions above, it was never used in those functions. With that change the i.MX5/6 CSI, VDIC, and IC sub-devices no longer require the media_device. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic

[PATCH v2 4/8] Revert "media: imx: Set capture compose rectangle in capture_device_set_format"

2019-04-28 Thread Steve Longerbeam
Rvert this commit, as imx_media_capture_device_set_format() will be removed. This reverts commit 5964cbd8692252615370b77eb96764dd70c2f837. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 5 ++-- drivers/staging/media/imx/imx-media-capture.c | 24

[PATCH v2 2/8] media: staging/imx: Pass device to alloc/free_dma_buf

2019-04-28 Thread Steve Longerbeam
Allocate and free a DMA coherent buffer in imx_media_alloc/free_dma_buf() from the given device. This allows DMA alloc and free using a device that is backed by real hardware, which for the imx5/6/7 CSI is the CSI unit, and for the internal IPU sub-devices, is the parent IPU. Signed-off-by: Steve

[PATCH v2 1/8] media: staging/imx: Switch to sync registration for IPU subdevs

2019-04-28 Thread Steve Longerbeam
eference can be taken on the IPU module. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-common.c | 70 ++-- drivers/staging/media/imx/imx-ic-prp.c| 34 +- drivers/staging/media/imx/imx-ic-prpencvf.c | 70 ++-- drivers/staging/media/imx/imx-ic.h

[PATCH v2 6/8] media: staging/imx: Re-organize modules

2019-04-28 Thread Steve Longerbeam
-media-of, imx-media-dev-common, and imx-media-capture. In order to acheive that, some functions common to imx5/6 and imx7 have been moved out of imx-media-dev.c and into imx-media-dev-common.c. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile| 18

[PATCH v2 3/8] media: staging/imx: Move add_video_device into capture_device_register

2019-04-28 Thread Steve Longerbeam
Move imx_media_add_video_device() into imx_media_capture_device_register(). Also the former has no error conditions to convert to void. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 5 - drivers/staging/media/imx/imx-media-capture.c | 3 +++ drivers

Re: [PATCH] media: staging/imx: add media device to capture register

2019-04-28 Thread Steve Longerbeam
Hi Rui, On second thought, there is no reason to pass the media device to imx_media_capture_device_register(), because it is already available via v4l2_dev->mdev. I will be posting a patch in v2 of the "Switch to sync registration for IPU subdevs" series that fixes this. Steve On 4/12/19 9

[PATCH 6/6] media: staging/imx: Re-organize modules

2019-04-25 Thread Steve Longerbeam
-media-of, imx-media-dev-common, and imx-media-capture. In order to acheive that, some functions common to imx5/6 and imx7 have been moved out of imx-media-dev.c and into imx-media-dev-common.c. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile| 18

  1   2   3   4   5   6   7   8   >