Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: microchip-csi2dc: Remove VC support for now

As part of removing mbus config flags, remove VC flag use in the
microchip-csi2dc driver. The support can be reintroduced later on as part
of the streams patches.

[mchehab: patch accepted by Eugen: https://lore.kernel.org/linux-media/c0676a4e-803f-9f1c-542b-4b007705ef3d@microchip.com/, so add an accepted-by tag]
Accepted-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
44e756fa 4abb2130

+2 -16
+2 -16
drivers/media/platform/atmel/microchip-csi2dc.c
··· 348 348 if (ret == -ENOIOCTLCMD) { 349 349 dev_dbg(csi2dc->dev, 350 350 "no remote mbus configuration available\n"); 351 - goto csi2dc_get_mbus_config_defaults; 351 + return 0; 352 352 } 353 353 354 354 if (ret) { 355 355 dev_err(csi2dc->dev, 356 356 "failed to get remote mbus configuration\n"); 357 - goto csi2dc_get_mbus_config_defaults; 357 + return 0; 358 358 } 359 - 360 - if (mbus_config.flags & V4L2_MBUS_CSI2_CHANNEL_0) 361 - csi2dc->vc = 0; 362 - else if (mbus_config.flags & V4L2_MBUS_CSI2_CHANNEL_1) 363 - csi2dc->vc = 1; 364 - else if (mbus_config.flags & V4L2_MBUS_CSI2_CHANNEL_2) 365 - csi2dc->vc = 2; 366 - else if (mbus_config.flags & V4L2_MBUS_CSI2_CHANNEL_3) 367 - csi2dc->vc = 3; 368 359 369 360 dev_dbg(csi2dc->dev, "subdev sending on channel %d\n", csi2dc->vc); 370 361 ··· 364 373 365 374 dev_dbg(csi2dc->dev, "mbus_config: %s clock\n", 366 375 csi2dc->clk_gated ? "gated" : "free running"); 367 - 368 - return 0; 369 - 370 - csi2dc_get_mbus_config_defaults: 371 - csi2dc->vc = 0; /* Virtual ID 0 by default */ 372 376 373 377 return 0; 374 378 }