Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1440695imm; Sat, 4 Aug 2018 03:37:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpclrE7AoZSDjaNZzj1EwNB9SWWGf1pOZ2qBezqmGTGDJxX82pH1HbKZuY1VBgJNyBH7vI0C X-Received: by 2002:a62:93d4:: with SMTP id r81-v6mr8489905pfk.55.1533379021498; Sat, 04 Aug 2018 03:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533379021; cv=none; d=google.com; s=arc-20160816; b=oO0fpA8GQaWJWtDUbCBoOwHAeEX+fw/YSU+5hhSsGDkftd409sB9EeSyO+ETrp/mJm kOp+oGwQRxLOnqIrSunNpmoNpkMY4mLbD0GXO26edYvQgIfD3TXBej0PK0IUSQJgXiIi Le2QBIkkK2eTH4NH0b58ZwBuWoUU4VeZZAOUycjOminzlkMCiTgQD6GVBWQMKgt7ttm5 vm6BMrHR4DzZXsmQkXiK0V3Zi0NT3IYjDnGOEcVyggBpqhfV64UgwLxJqHF83/mKRXsq l0Xb3/DzXjyoHmIDngV3XA865yutYLrGX6NWWRqiAjEcHgyLUwKdT2Mx4oZTYENH9FWY ePJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=fFXvAsBthl77cZ7Wr9P4//6QGBMjABbi8b2QlrwwN70=; b=B53u1RVVpgeGoCuUh5hTE4hnR5H/IrmxdHhl6W5Jxr8azLwVdLhZ5cTFgwGSpXzo40 79kCP5Dn6DgBlkbD+MD1B2N/Hyxg7UrLp/+9I4U35n3EwElIlJrd+XfNJ8I2sl/UDGWL v6AFuqKgcxOYEwhuFOOmyiO4QTk2bBb+0Ik9hUxiMGBn1vtgcp3eWDvR2+gkihegYD6Q jBYjUKRLfMojiZXuloQ1uU9hGcDi/Zj28/O0p74X3UKVv7hrCG3R98+FwZQQb2nz9nCl ykpHAg7bE+YKqqw90zAS2V9irEBxwTAUMUUVh788Fh7FKiIlx9WLli8yImrBZQQRGwOO 7aJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j62-v6si8497367pfb.348.2018.08.04.03.36.17; Sat, 04 Aug 2018 03:37:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728434AbeHDMeQ (ORCPT + 99 others); Sat, 4 Aug 2018 08:34:16 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:48299 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbeHDMeQ (ORCPT ); Sat, 4 Aug 2018 08:34:16 -0400 X-Originating-IP: 37.176.141.94 Received: from w540 (unknown [37.176.141.94]) (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 124221C0003; Sat, 4 Aug 2018 10:33:55 +0000 (UTC) Date: Sat, 4 Aug 2018 12:33:54 +0200 From: jacopo mondi To: Steve Longerbeam Cc: Sakari Ailus , linux-media@vger.kernel.org, Steve Longerbeam , Mauro Carvalho Chehab , Sakari Ailus , Niklas =?utf-8?Q?S=C3=B6derlund?= , Sebastian Reichel , Hans Verkuil , open list Subject: Re: [PATCH v6 16/17] media: v4l2: async: Remove notifier subdevs array Message-ID: <20180804103354.GB9285@w540> References: <1531175957-1973-1-git-send-email-steve_longerbeam@mentor.com> <1531175957-1973-17-git-send-email-steve_longerbeam@mentor.com> <20180723123557.bfxxsqqhlaj3ccwc@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Steve, On Mon, Jul 23, 2018 at 09:44:57AM -0700, Steve Longerbeam wrote: > > > On 07/23/2018 05:35 AM, Sakari Ailus wrote: > >Hi Steve, > > > >Thanks for the update. > > > >On Mon, Jul 09, 2018 at 03:39:16PM -0700, Steve Longerbeam wrote: > >>All platform drivers have been converted to use > >>v4l2_async_notifier_add_subdev(), in place of adding > >>asd's to the notifier subdevs array. So the subdevs > >>array can now be removed from struct v4l2_async_notifier, > >>and remove the backward compatibility support for that > >>array in v4l2-async.c. > >> > >>Signed-off-by: Steve Longerbeam > >This set removes the subdevs and num_subdevs fieldsfrom the notifier (as > >discussed previously) but it doesn't include the corresponding > >driver changes. Is there a patch missing from the set? > > Hi Sakari, yes somehow patch 15/17 (the large patch to all drivers) > got dropped by the ML, maybe because the cc-list was too big? > > I will resend with only linux-media and cc: you. For the Renesas CEU and Renesas R-Car VIN you can add my: Tested-by: Jacopo Mondi I would have a very small comment on the renesas-ceu.c patch. I'm copying the hunk here below as the patch didn't reach the mailing list >@@ -1562,40 +1557,46 @@ static int ceu_parse_dt(struct ceu_device *ceudev) > dev_err(ceudev->dev, > "No subdevice connected on endpoint %u.\n", i); > ret = -ENODEV; >- goto error_put_node; >+ goto error_cleanup; > } > > ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &fw_ep); > if (ret) { > if (ret) { > dev_err(ceudev->dev, > "Unable to parse endpoint #%u.\n", i); >- goto error_put_node; >+ goto error_cleanup; > } > > if (fw_ep.bus_type != V4L2_MBUS_PARALLEL) { > dev_err(ceudev->dev, > "Only parallel input supported.\n"); > ret = -EINVAL; >- goto error_put_node; >+ goto error_cleanup; > } > > /* Setup the ceu subdevice and the async subdevice. */ > ceu_sd = &ceudev->subdevs[i]; > INIT_LIST_HEAD(&ceu_sd->asd.list); > >+ remote = of_graph_get_remote_port_parent(ep); > ceu_sd->mbus_flags = fw_ep.bus.parallel.flags; > ceu_sd->asd.match_type = V4L2_ASYNC_MATCH_FWNODE; >- ceu_sd->asd.match.fwnode = >- fwnode_graph_get_remote_port_parent( >- of_fwnode_handle(ep)); >+ ceu_sd->asd.match.fwnode = of_fwnode_handle(remote); >+ >+ ret = v4l2_async_notifier_add_subdev(&ceudev->notifier, >+ &ceu_sd->asd); >+ if (ret) { >+ of_node_put(remote); ^^^ The 'remote' device node is only put in the error path > >+ goto error_cleanup; >+ } > >- ceudev->asds[i] = &ceu_sd->asd; > of_node_put(ep); > } > > return num_ep; > >-error_put_node: >+error_cleanup: >+ v4l2_async_notifier_cleanup(&ceudev->notifier); > of_node_put(ep); > return ret; > } Thanks j --8P1HSweYDcXXzwPJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJbZYEHAAoJEHI0Bo8WoVY8D0YP/118mTcv2D47wecQgUINkN8L UoNtkZS33DMSupbVeHb6KncVmxZkI2KN93siOp+UT/oxUZLQuSnQOXENojQRkN+E 7qVYvd7W7jy83vBL0OPuHSH8qnP1EDcgKGCkn+0VDLGRGlP1tCdV2B2fMEIH5lr2 VQYnIqXjI8DkR2LT5aW7UuUxojsf3NajuvV2JkKJzHtna2JFSw2Fm5G0fyb42/Uo IXXDSCU1+vKZXaL5u4zgxYCClpJWjHIid+H+RPLttEUXKIml7TIYbzTYJtIaMzYo A51rX8dSYGcb5M2EG6VsRfGok7VKfMMEevU2hBWIzxKqABE+EOcsEKf9lWJ1TGDA B6Fe0qeCdmkT07wMwnXAvfhTkO6oO/dpziKzUnbS3odAKLYGIM6o1q2iKYzyDtHF GAb0izQs0+4/m+jIz53hWURyDwv8QuGgrpjJkapZPJxaosbgs/Hsi/KJLqbUE35P gxL60Q5hWynY7Lgq6+r5hG6xa+01LxxaHQl0gG5t1YxY7W9vU9Z6QQ1n3tmSmW2X 5yjKpLL4hEksDmqSA1HhPsi+IE/hx2OD7O5FjlSABcudJwpb6zlAeWiFPrNpfjC+ 3M4V9gITTyTs+ObtCpWCEn73EUmlBeMrQkSlq79V+qEol9U1CVNuIyIyXmewf+Iq z9A6Pr3Cj/BEaQyaCVQB =N+md -----END PGP SIGNATURE----- --8P1HSweYDcXXzwPJ--