lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250714132356.154971-1-mehdi.djait@linux.intel.com>
Date: Mon, 14 Jul 2025 15:23:56 +0200
From: Mehdi Djait <mehdi.djait@...ux.intel.com>
To: sakari.ailus@...ux.intel.com,
	arnd@...db.de,
	laurent.pinchart@...asonboard.com
Cc: jacopo.mondi@...asonboard.com,
	hverkuil@...all.nl,
	kieran.bingham@...asonboard.com,
	mchehab@...nel.org,
	hdegoede@...hat.com,
	linux-media@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Mehdi Djait <mehdi.djait@...ux.intel.com>
Subject: [PATCH V3] media: i2c: Kconfig: Ensure a dependency on HAVE_CLK for VIDEO_CAMERA_SENSOR

Both ACPI and DT-based systems are required to obtain the external
camera sensor clock using the new devm_v4l2_sensor_clk_get() helper
function.

Ensure a dependency on HAVE_CLK when config VIDEO_CAMERA_SENSOR is
enabled.

Signed-off-by: Mehdi Djait <mehdi.djait@...ux.intel.com>
---
v2 -> v3:
Suggested by Arnd Bergmann and Sakari:
	- replaced depends on COMMON_CLK by depends on HAVE_CLK

Link v2: https://lore.kernel.org/linux-media/20250709101114.22185-1-mehdi.djait@linux.intel.com/

v1 -> v2:
Suggested by Arnd Bergmann:
	- removed the select statement and replaced it by "depends on
	  COMMON_CLK"

Link v1: https://lore.kernel.org/linux-media/20250708161637.227111-1-mehdi.djait@linux.intel.com

 drivers/media/i2c/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index a1a8ef9f35c1..01f348cc3b27 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -27,7 +27,7 @@ config VIDEO_IR_I2C
 
 menuconfig VIDEO_CAMERA_SENSOR
 	bool "Camera sensor devices"
-	depends on MEDIA_CAMERA_SUPPORT && I2C
+	depends on MEDIA_CAMERA_SUPPORT && I2C && HAVE_CLK
 	select MEDIA_CONTROLLER
 	select V4L2_FWNODE
 	select VIDEO_V4L2_SUBDEV_API
-- 
2.49.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ