Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1028615lqd; Thu, 25 Apr 2024 04:09:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGkoqvJIm1q3kFmwZ+ZjY4LozXXKiJBUQKOwlZJiFZDweEwp1srGJtpaA6ad76+BDXOfCUPFPk6K/4eHBbxycJaUaLRV/3W5RoXimbzA== X-Google-Smtp-Source: AGHT+IE4DCkYbUldHaOKhgaoF4hmnJVRPOXiapoJTJHgsmYFjZoXJ1uKUf+nVciSKeCMkUVpwQ4b X-Received: by 2002:a50:a686:0:b0:568:9cfe:1974 with SMTP id e6-20020a50a686000000b005689cfe1974mr3676260edc.18.1714043362519; Thu, 25 Apr 2024 04:09:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714043362; cv=pass; d=google.com; s=arc-20160816; b=AI0SP7ELTijyWnTJ+/DwLDditGnBpWnKvZe6jxVDwNJZBMe97K6nNe9n/lMpidx23Q EdXrNPfly3pmYwKPm38bDrJENWP7eJY1QIr1vcYmzwPN74kRJVbx8Sfnq2aaq6CT/stl VWpmS0ZXIXKJhhVPRl1CyHfKKIpedodIS2ooteW6hDNt7kWUkK7GlSBOTCbQWWi07Rfc pL+1LnacGts2YKXqfiYOe8YD0fhw6lyrSf+q7woxdaQwdz5C95WRGAbWpSURq6zI6Mh2 VdhWOgLcPZinfrf5hmR6zmRJ/eziKxMCk2sr/siO0TdscKb327uMVRb3BM4KeePGytP0 NHvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7KPc3Zvag+5mGrXjj2rBdP8UGS3CxBvNmd2y8qaJx6c=; fh=kb24mPs25WqywxJHooszEmv14QS87Sk+hEKpHxhz2LM=; b=F3+3HmWbd+yk6+ARefrcz5xkWx8vmiSYr/m0DW084Vxz97mqJCrsV18gSYfh9wCWg8 bpjYilU15YmXu1WcilGkP7AD75C34KV41ap10V5dM0MXOAmC1X/JrZ7DNuhtmZs08iVZ hdWIyBmPEWGa+dpXI35ZhPzvgdInPbs0gQjUHGOW8+FJzPgr5kix1YsWueSu4uDTblIb YCWnhtuM0T/WI6zFhwoBY/ZXPSwrBn3PCHraOB7M1jyonDmzi9ts4xwczuhULavyYCH5 XM8ajJb8BbcE0l+VL1FDwPp9z5jDJZ04bx9iIXC+L/LK+N48/2Ymc23vFxu3CjajJzVE kXeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MT8pirri; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-158426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158426-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h16-20020a50cdd0000000b0056e22df432dsi9847129edj.438.2024.04.25.04.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 04:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MT8pirri; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-158426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158426-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 415B81F22ECB for ; Thu, 25 Apr 2024 11:09:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DD7C84FAA; Thu, 25 Apr 2024 11:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="MT8pirri" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 579C82B9CE; Thu, 25 Apr 2024 11:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714043352; cv=none; b=PF8BDNWZAw3ohvrEFwABgAznjecjuQxDYkLEDHxnaRTcxD++O1AJOagOCJBePpFebcAkqcVryj8r9+/Z/EkoCZhMBUSz515XEWtXaT8dHt8Zbm+Ej5QbbWiZ2PY3MwAbDO5NuWggaqPTntZyrCd9kjy8sLN2Fhavy0hfyqWjOTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714043352; c=relaxed/simple; bh=dTaJEQ+NtzwKV82cVUF7/ztO3B+FWC/WviT61IAiBWM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rKy3UEldf4oR5AIWsQoNRI4NSPzBWb1foi7Z8Fkpc7mGfiS6XGC+qukcBxhece7XnGxfJWnf7f9R89Om5T0cUoudpRKf57uoJ3Z8/EfiTesY2GIfQLcG9Hb4TdCx8Jk5kh73w2w/QWGceulPbgJStj2hFNmCJ7OchHp20X5RY04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=MT8pirri; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (117.145-247-81.adsl-dyn.isp.belgacom.be [81.247.145.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 720E4B0B; Thu, 25 Apr 2024 13:08:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1714043289; bh=dTaJEQ+NtzwKV82cVUF7/ztO3B+FWC/WviT61IAiBWM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MT8pirriMjMgfBbCmgfgzPDxFg+HHyJRcApG7Z2v6qWU3SjpGcymaHW3Y7jfURqh+ Tlu1HsZPoBe9qT0t9f+peITvgh/GW8eASp/JAzHBrUofLrekibpvhaNMVBN1H+wvgk xtvirfntHoUicdEcYcPZophCtiobY83GNLloqlTg= Date: Thu, 25 Apr 2024 14:08:54 +0300 From: Laurent Pinchart To: Tomi Valkeinen Cc: Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , Umang Jain , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 11/11] media: subdev: Improve s_stream documentation Message-ID: <20240425110854.GA28454@pendragon.ideasonboard.com> References: <20240424-enable-streams-impro-v6-0-5fb14c20147d@ideasonboard.com> <20240424-enable-streams-impro-v6-11-5fb14c20147d@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240424-enable-streams-impro-v6-11-5fb14c20147d@ideasonboard.com> Hi Tomi, Thank you for the patch. On Wed, Apr 24, 2024 at 06:39:14PM +0300, Tomi Valkeinen wrote: > Now that enable/disable_streams operations are available for > single-stream subdevices too, there's no reason to use the old s_stream > operation on new drivers. Extend the documentation reflecting this. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart > --- > include/media/v4l2-subdev.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h > index 14a3c91cce93..99564a2ef71c 100644 > --- a/include/media/v4l2-subdev.h > +++ b/include/media/v4l2-subdev.h > @@ -450,6 +450,15 @@ enum v4l2_subdev_pre_streamon_flags { > * already started or stopped subdev. Also see call_s_stream wrapper in > * v4l2-subdev.c. > * > + * New drivers should instead implement &v4l2_subdev_pad_ops.enable_streams > + * and &v4l2_subdev_pad_ops.disable_streams operations, and use > + * v4l2_subdev_s_stream_helper for the &v4l2_subdev_video_ops.s_stream > + * operation to support legacy users. > + * > + * Drivers should also not call the .s_stream() subdev operation directly, > + * but use the v4l2_subdev_enable_streams() and > + * v4l2_subdev_disable_streams() helpers. > + * > * @g_pixelaspect: callback to return the pixelaspect ratio. > * > * @s_rx_buffer: set a host allocated memory buffer for the subdev. The subdev -- Regards, Laurent Pinchart