From patchwork Thu Aug 22 21:41:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13774245 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 E3D5FA933 for ; Thu, 22 Aug 2024 21:41:29 +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=1724362891; cv=none; b=WFzkOKssmkbOuvimJ46gPghIK31rx27k59hHDGN7hYa+SAzLuqa4xaLOIsUXCpPfTy9lbhJI4jJGYOFHf/x4j9evIccUC9zD/5JcO7qw6X29KY3j94DaeXUbMtUaE8ByLoKaJZYNALdnebRvAUc7SDgDzD/iB+oWolvyvCOUKVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724362891; c=relaxed/simple; bh=ig2QeMoZ0rp2XcGL6QzySgQBNmnR/TqUo1JoULm0zAU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KvtQkHq092Enws45AJRLTOEERsqGH6X75Bil4TsFTvTVStxr6HKOpifDHkK8G2JVKHJE/l0DRvY/UfnZI9rpW3OVtulTX2CI6GyBbYNn4tRtqvsDetQRh/GNf6nZrhvGkodM7Nj3o2+/z1EfmSGyvbTybcGfeOrVBAmKuOGJglw= 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=oDpYDlEU; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="oDpYDlEU" Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A579F219; Thu, 22 Aug 2024 23:40:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1724362824; bh=ig2QeMoZ0rp2XcGL6QzySgQBNmnR/TqUo1JoULm0zAU=; h=From:To:Cc:Subject:Date:From; b=oDpYDlEUeXa1rf6SKI3G57xIwmFRXX8PlTGPTdC92LQTycDwAm1jdRocV+JW2d4H5 FdodUFQMk95ivoVNOM64SlvasaL3plq+XGoRcLcofw0bI745m55Dzvxq3VAgd7NUww AzkiUes6fu7d/mZj9ICR/W0lzcWkkheRcrGsftFI= From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: Sakari Ailus Subject: [PATCH] media: v4l2-mc: Mark v4l2_pipeline_link_notify() as deprecated Date: Fri, 23 Aug 2024 00:41:25 +0300 Message-ID: <20240822214125.3161-1-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.44.2 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Commit b97213a41140 ("media: v4l2-mc: Make v4l2_pipeline_pm_{get,put} deprecated") marked the v4l2_pipeline_pm_get() and v4l2_pipeline_pm_put() functions as deprecated, but forgot to address the related v4l2_pipeline_link_notify() function similarly. Fix it. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus --- include/media/v4l2-mc.h | 3 +++ 1 file changed, 3 insertions(+) base-commit: a043ea54bbb975ca9239c69fd17f430488d33522 diff --git a/include/media/v4l2-mc.h b/include/media/v4l2-mc.h index ed0a44b6eada..1837c9fd78cf 100644 --- a/include/media/v4l2-mc.h +++ b/include/media/v4l2-mc.h @@ -178,6 +178,9 @@ void v4l2_pipeline_pm_put(struct media_entity *entity); * @flags: New link flags that will be applied * @notification: The link's state change notification type (MEDIA_DEV_NOTIFY_*) * + * THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM + * ON SUB-DEVICE DRIVERS INSTEAD. + * * React to link management on powered pipelines by updating the use count of * all entities in the source and sink sides of the link. Entities are powered * on or off accordingly. The use of this function should be paired