Skip to contentSkip to conversation

media: qcom: camss: Fix missing vfe_lite clocks check

git:media_stage/master Mauro Carvalho Chehab 1 participant 1 message Sep 13, 2023

Subsystems (5)
lore
Share & tools
lore

Mauro Carvalho Chehab

author maintainer
#0 lore raw

This is an automatic generated email to let you know that the following patch were queued:

Subject: media: qcom: camss: Fix missing vfe_lite clocks check
Author:  Bryan O'Donoghue <[email protected]>
Date:    Wed Aug 30 16:16:12 2023 +0100

check_clock doesn't account for vfe_lite which means that vfe_lite will never get validated by this routine. Add the clock name to the expected set to remediate.

Fixes 7319cdf189bb ("media: camss: Add support for VFE hardware version Titan 170")
 drivers/media/platform/qcom/camss/camss-vfe.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

---

drivers/media/platform/qcom/camss/camss-vfe.c +2 -1
index 5d8462ec0af2..965500b83d07 100644
@@ -535,7 +535,8 @@ static int vfe_check_clock_rates(struct vfe_device *vfe)
 		struct camss_clock *clock = &vfe->clock[i];
 
 		if (!strcmp(clock->name, "vfe0") ||
-		    !strcmp(clock->name, "vfe1")) {
+		    !strcmp(clock->name, "vfe1") ||
+		    !strcmp(clock->name, "vfe_lite")) {
 			u64 min_rate = 0;
 			unsigned long rate;