Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D294C77B7A for ; Tue, 30 May 2023 02:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbjE3CX0 (ORCPT ); Mon, 29 May 2023 22:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbjE3CXZ (ORCPT ); Mon, 29 May 2023 22:23:25 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C7F8C7 for ; Mon, 29 May 2023 19:23:24 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126158230151.30.openmobile.ne.jp [126.158.230.151]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AD7DCE4; Tue, 30 May 2023 04:23:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685413381; bh=VYg9pcD1f6/Dk7iA/bAn0golLDFMf6Qgl9JQQI19+Qo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k23J+RM9yAgOvS+j02OGLUlMXsj8s+ai+as3UuXVTx1EyseezjKM8mdIdVpuINalz ZZ1umLChQYpdxfDVgiGj5FdcXLoeOl17h1ShBxpsr034QLc3UrzroIt8or6tkRwv6N XD8yhNF7FMhWzU49zvlRiqY79jB/mzk/BOxIiISo= Date: Tue, 30 May 2023 05:23:23 +0300 From: Laurent Pinchart To: Sakari Ailus Cc: linux-media@vger.kernel.org, Philipp Zabel , hverkuil@xs4all.nl, Francesco Dolcini , aishwarya.kothari@toradex.com, Robert Foss , Todor Tomov , Hyun Kwon , bingbu.cao@intel.com, niklas.soderlund@ragnatech.se, Kieran Bingham , Benjamin Mugnier , Sylvain Petinot , Eugen Hristev , Nicolas Ferre , Maxime Ripard , Rui Miguel Silva , Fabio Estevam , Bryan O'Donoghue , Sylwester Nawrocki , Dafna Hirschfeld , Hugues Fruchet , Yong Deng , Paul Kocialkowski , "Lad, Prabhakar" , Benoit Parrot , Steve Longerbeam , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Marco Felsch Subject: Re: [RESEND PATCH v3 04/32] media: omap3isp: Don't check for the sub-device's notifier Message-ID: <20230530022323.GE21633@pendragon.ideasonboard.com> References: <20230525091615.2324824-1-sakari.ailus@linux.intel.com> <20230525091615.2324824-5-sakari.ailus@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230525091615.2324824-5-sakari.ailus@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi Sakari, Thank you for the patch. On Thu, May 25, 2023 at 12:15:47PM +0300, Sakari Ailus wrote: > There's no need to check for a sub-device's notifier as we only register > one notifier (and one V4L2 device). Remove this check and prepare for > removing this field in struct v4l2_subdev. > > Signed-off-by: Sakari Ailus > --- > drivers/media/platform/ti/omap3isp/isp.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/media/platform/ti/omap3isp/isp.c b/drivers/media/platform/ti/omap3isp/isp.c > index f3aaa9e76492e..c2b222f7df892 100644 > --- a/drivers/media/platform/ti/omap3isp/isp.c > +++ b/drivers/media/platform/ti/omap3isp/isp.c > @@ -2039,9 +2039,6 @@ static int isp_subdev_notifier_complete(struct v4l2_async_notifier *async) > } > > list_for_each_entry(sd, &v4l2_dev->subdevs, list) { > - if (sd->notifier != &isp->notifier) > - continue; I don't think this is quite right. You could have a chain of external subdevs, in which case only the one connected directly to the ISP should be linked to the ISP. > - > ret = isp_link_entity(isp, &sd->entity, > v4l2_subdev_to_bus_cfg(sd)->interface); > if (ret < 0) { -- Regards, Laurent Pinchart