From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [PATCH v7 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver Date: Wed, 14 Feb 2018 17:03:26 +0200 Message-ID: <1952975.8AbmfkeE6m@avalon> References: <20180208150830.9219-1-maxime.ripard@bootlin.com> <2517178.9jmyBy62ST@avalon> <20180214131933.t75jg5b5cjfuo7r6@flea.home> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <20180214131933.t75jg5b5cjfuo7r6-YififvaboMKzQB+pC5nmwQ@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Maxime Ripard Cc: Mauro Carvalho Chehab , Mark Rutland , Rob Herring , linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Richard Sproul , Alan Douglas , Steve Creaney , Thomas Petazzoni , Boris Brezillon , Niklas =?ISO-8859-1?Q?S=F6derlund?= , Hans Verkuil , Sakari Ailus , Benoit Parrot , nm-l0cyMroinI0@public.gmane.org, Simon Hatliff List-Id: devicetree@vger.kernel.org Hi Maxime, On Wednesday, 14 February 2018 15:19:33 EET Maxime Ripard wrote: > On Thu, Feb 08, 2018 at 08:17:19PM +0200, Laurent Pinchart wrote: > >> + /* > >> + * Create a static mapping between the CSI virtual channels > >> + * and the output stream. > >> + * > >> + * This should be enhanced, but v4l2 lacks the support for > >> + * changing that mapping dynamically. > >> + * > >> + * We also cannot enable and disable independant streams here, > >> + * hence the reference counting. > >> + */ > > > > If you start all streams in one go, will s_stream(1) be called multiple > > times ? If not, you could possibly skip the whole reference counting and > > avoid locking. > > I guess that while we should expect the CSI-2 bus to be always > enabled, the downstream camera interface could be shutdown > independently, so I guess s_stream would be called each time one is > brought up or brought down? That's the idea. However, we don't have support for multiplexed streams in mainline yet, so there's no way it can be implemented today in your driver. -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html