mbox series

[v13,00/19] TVP5150 Features and Fixes

Message ID 20200312103156.3178-1-m.felsch@pengutronix.de
Headers show
Series TVP5150 Features and Fixes | expand

Message

Marco Felsch March 12, 2020, 10:31 a.m. UTC
Hi all,

since my v12 wasn't the last I drop any comments about that here ;)
Anyway this version addresses Sakari's and Hans comments.

In short:
- Patch 4 and 5 are new according Sakari's comments. I splitted them
  due to backport reasons (something for stable?).
- Patch 8:
  - address the memory leak bug
  - address the uselsee connector NULL set
- Patch 13:
  - fixes the non static issue

Regards,
  Marco

Javier Martinez Canillas (1):
  partial revert of "[media] tvp5150: add HW input connectors support"

Marco Felsch (19):
  dt-bindings: connector: analog: add sdtv standards property
  dt-bindings: display: add sdtv-standards defines
  media: v4l: link dt-bindings and uapi
  media: v4l2-fwnode: fix v4l2_fwnode_parse_link handling
  media: v4l2-fwnode: simplify v4l2_fwnode_parse_link
  media: v4l2-fwnode: add endpoint id field to v4l2_fwnode_link
  media: v4l2-fwnode: add v4l2_fwnode_connector
  media: v4l2-fwnode: add initial connector parsing support
  media: tvp5150: add input source selection of_graph support
  media: dt-bindings: tvp5150: Add input port connectors DT bindings
  media: tvp5150: fix set_selection rectangle handling
  media: tvp5150: add FORMAT_TRY support for get/set selection handlers
  media: tvp5150: move irq en-/disable into runtime-pm ops
  media: tvp5150: add v4l2-event support
  media: tvp5150: add subdev open/close callbacks
  media: dt-bindings: tvp5150: cleanup bindings stlye
  media: dt-bindings: tvp5150: add optional sdtv standards documentation
  media: tvp5150: add support to limit sdtv standards
  media: tvp5150: make debug output more readable

Michael Tretter (1):
  media: tvp5150: initialize subdev before parsing device tree

 .../display/connector/analog-tv-connector.txt |   6 +
 .../devicetree/bindings/media/i2c/tvp5150.txt | 146 +++-
 drivers/media/i2c/tvp5150.c                   | 802 ++++++++++++++----
 drivers/media/v4l2-core/v4l2-fwnode.c         | 192 ++++-
 include/dt-bindings/display/sdtv-standards.h  |  76 ++
 include/dt-bindings/media/tvp5150.h           |   2 -
 include/media/v4l2-fwnode.h                   | 143 ++++
 include/uapi/linux/videodev2.h                |   4 +
 8 files changed, 1156 insertions(+), 215 deletions(-)
 create mode 100644 include/dt-bindings/display/sdtv-standards.h

Comments

Sakari Ailus March 12, 2020, 10:37 a.m. UTC | #1
Hi Marco,

On Thu, Mar 12, 2020 at 11:31:39AM +0100, Marco Felsch wrote:
> Currently the driver differentiate the port number property handling for
> ACPI and DT. This is wrong as because ACPI should use the "reg" val too
> [1].
> 
> [1] https://patchwork.kernel.org/patch/11421985/
> 
> Fixes: ca50c197bd96 ("[media] v4l: fwnode: Support generic fwnode for parsing standardised properties")
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
>  drivers/media/v4l2-core/v4l2-fwnode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c b/drivers/media/v4l2-core/v4l2-fwnode.c
> index 6ece4320e1d2..d56eee9c09b8 100644
> --- a/drivers/media/v4l2-core/v4l2-fwnode.c
> +++ b/drivers/media/v4l2-core/v4l2-fwnode.c
> @@ -560,7 +560,7 @@ EXPORT_SYMBOL_GPL(v4l2_fwnode_endpoint_alloc_parse);
>  int v4l2_fwnode_parse_link(struct fwnode_handle *__fwnode,
>  			   struct v4l2_fwnode_link *link)
>  {
> -	const char *port_prop = is_of_node(__fwnode) ? "reg" : "port";
> +	const char *port_prop = "reg";
>  	struct fwnode_handle *fwnode;
>  
>  	memset(link, 0, sizeof(*link));

I'd omit this patch. With this change, the parsing is no longer compatible
with previous definition (now deprecated) that use the "port" property.

We don't really need to address this for v4l2_fwnode_parse_link(), but
rather should change the users to use other APIs. No driver supporting ACPI
uses this anyway so it's not really an issue right now.
Sakari Ailus March 12, 2020, 10:42 a.m. UTC | #2
On Thu, Mar 12, 2020 at 11:31:39AM +0100, Marco Felsch wrote:
> Currently the driver differentiate the port number property handling for
> ACPI and DT. This is wrong as because ACPI should use the "reg" val too
> [1].
> 
> [1] https://patchwork.kernel.org/patch/11421985/
> 
> Fixes: ca50c197bd96 ("[media] v4l: fwnode: Support generic fwnode for parsing standardised properties")
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>

Oh well, I guess this is OK; I noticed the next patch that depends on this
one. But it should be merged with the next patch so that it won't be
accidentally backported alone.

Then, please add:

Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Sakari Ailus March 12, 2020, 10:43 a.m. UTC | #3
On Thu, Mar 12, 2020 at 12:42:22PM +0200, Sakari Ailus wrote:
> On Thu, Mar 12, 2020 at 11:31:39AM +0100, Marco Felsch wrote:
> > Currently the driver differentiate the port number property handling for
> > ACPI and DT. This is wrong as because ACPI should use the "reg" val too
> > [1].
> > 
> > [1] https://patchwork.kernel.org/patch/11421985/
> > 
> > Fixes: ca50c197bd96 ("[media] v4l: fwnode: Support generic fwnode for parsing standardised properties")
> > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> 
> Oh well, I guess this is OK; I noticed the next patch that depends on this
> one. But it should be merged with the next patch so that it won't be
> accidentally backported alone.
> 
> Then, please add:
> 
> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>

Forgot that no ACPI driver uses it. So _no_ changes are needed to this, and
you can add the ack.

Thanks.
Marco Felsch March 12, 2020, 11:14 a.m. UTC | #4
Hi Sakari,

On 20-03-12 12:43, Sakari Ailus wrote:
> On Thu, Mar 12, 2020 at 12:42:22PM +0200, Sakari Ailus wrote:
> > On Thu, Mar 12, 2020 at 11:31:39AM +0100, Marco Felsch wrote:
> > > Currently the driver differentiate the port number property handling for
> > > ACPI and DT. This is wrong as because ACPI should use the "reg" val too
> > > [1].
> > > 
> > > [1] https://patchwork.kernel.org/patch/11421985/
> > > 
> > > Fixes: ca50c197bd96 ("[media] v4l: fwnode: Support generic fwnode for parsing standardised properties")
> > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > 
> > Oh well, I guess this is OK; I noticed the next patch that depends on this
> > one. But it should be merged with the next patch so that it won't be
> > accidentally backported alone.
> > 
> > Then, please add:
> > 
> > Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> 
> Forgot that no ACPI driver uses it. So _no_ changes are needed to this, and
> you can add the ack.
> 
> Thanks.

I thought about it too and in the end I splitted the patche for possible
backport reasons. Squashing shouldn't be a problem for Hans?

Regards,
  Marco