Linux Media Controller development
 help / color / mirror / Atom feed
* [RFC PATCH] media: ti: cal: Deprecate non-MC API usage
@ 2026-07-23 11:19 Laurent Pinchart
  2026-07-28 12:26 ` Tomi Valkeinen
  2026-09-02 19:18 ` Sakari Ailus
  0 siblings, 2 replies; 6+ messages in thread
From: Laurent Pinchart @ 2026-07-23 11:19 UTC (permalink / raw)
  To: linux-media; +Cc: Yemike Abhilash Chandra, Tomi Valkeinen, Sakari Ailus

The MC API was introduced in the CAL driver more than five years ago in
commit 38e89e790fe2 ("media: ti-vpe: cal: Implement media controller
centric API") as a disabled by default option. Five years later, it's
time to give users another nudge to move to the MC API. Deprecate non-MC
API usage by printing a warning at probe time, and defaulting to the MC
API. The legacy API can still be selected through the mc_api module
parameter.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/media/platform/ti/Kconfig   | 11 -----------
 drivers/media/platform/ti/cal/cal.c | 10 +++-------
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/drivers/media/platform/ti/Kconfig b/drivers/media/platform/ti/Kconfig
index 1a020b2bbb4f..03df5617e99d 100644
--- a/drivers/media/platform/ti/Kconfig
+++ b/drivers/media/platform/ti/Kconfig
@@ -30,17 +30,6 @@ config VIDEO_TI_CAL
 	  In TI Technical Reference Manual this module is referred as
 	  Camera Interface Subsystem (CAMSS).
 
-config VIDEO_TI_CAL_MC
-	bool "Media Controller centric mode by default"
-	depends on VIDEO_TI_CAL
-	default n
-	help
-	  Enables Media Controller centric mode by default.
-
-	  If set, CAL driver will start in Media Controller mode by
-	  default. Note that this behavior can be overridden via
-	  module parameter 'mc_api'.
-
 config VIDEO_TI_VIP
         tristate "TI Video Input Port"
         depends on VIDEO_DEV
diff --git a/drivers/media/platform/ti/cal/cal.c b/drivers/media/platform/ti/cal/cal.c
index b7e77b6b8950..5c82378d1eee 100644
--- a/drivers/media/platform/ti/cal/cal.c
+++ b/drivers/media/platform/ti/cal/cal.c
@@ -43,13 +43,7 @@ unsigned int cal_debug;
 module_param_named(debug, cal_debug, uint, 0644);
 MODULE_PARM_DESC(debug, "activates debug info");
 
-#ifdef CONFIG_VIDEO_TI_CAL_MC
-#define CAL_MC_API_DEFAULT 1
-#else
-#define CAL_MC_API_DEFAULT 0
-#endif
-
-bool cal_mc_api = CAL_MC_API_DEFAULT;
+bool cal_mc_api = 1;
 module_param_named(mc_api, cal_mc_api, bool, 0444);
 MODULE_PARM_DESC(mc_api, "activates the MC API");
 
@@ -1228,6 +1222,8 @@ static int cal_probe(struct platform_device *pdev)
 
 	/* Create contexts. */
 	if (!cal_mc_api) {
+		dev_warn(cal->dev, "The legacy non-MC API is deprecated\n");
+
 		for (i = 0; i < cal->data->num_csi2_phy; ++i) {
 			struct cal_ctx *ctx;
 

base-commit: a52e6f7923c17a672135b485ffd96fbd72f46267
-- 
Regards,

Laurent Pinchart


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-02 19:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 11:19 [RFC PATCH] media: ti: cal: Deprecate non-MC API usage Laurent Pinchart
2026-07-28 12:26 ` Tomi Valkeinen
2026-09-02 12:24   ` Laurent Pinchart
2026-09-02 14:53     ` Yemike Abhilash Chandra
2026-09-02 15:14       ` Laurent Pinchart
2026-09-02 19:18 ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox