Skip to contentSkip to conversation

accel/ivpu: Remove unused PLL_CONFIG_DEFAULT

PATCH Applied Jacek Lawrynowicz 2 participants 3 messages Aug 8, 2025 – Sep 1, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel/ivpu: Remove unused PLL_CONFIG_DEFAULT

This change removes the unnecessary condition, makes the code clearer, and silences clang-tidy warning.

---
 drivers/accel/ivpu/ivpu_hw_btrs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/accel/ivpu/ivpu_hw_btrs.c +1 -2
index b236c7234daab..afdb3b2aa72a7 100644
@@ -33,7 +33,6 @@
 
 #define PLL_CDYN_DEFAULT               0x80
 #define PLL_EPP_DEFAULT                0x80
-#define PLL_CONFIG_DEFAULT             0x0
 #define PLL_REF_CLK_FREQ               50000000ull
 #define PLL_RATIO_TO_FREQ(x)           ((x) * PLL_REF_CLK_FREQ)
 
@@ -303,7 +302,7 @@ static void prepare_wp_request(struct ivpu_device *vdev, struct wp_request *wp,
 		wp->epp = 0;
 	} else {
 		wp->target = hw->pll.pn_ratio;
-		wp->cfg = enable ? PLL_CONFIG_DEFAULT : 0;
+		wp->cfg = 0;
 		wp->cdyn = enable ? PLL_CDYN_DEFAULT : 0;
 		wp->epp = enable ? PLL_EPP_DEFAULT : 0;
 	}
Signature · 1 line
2.45.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · Jacek Lawrynowicz

This change removes the unnecessary condition, makes the code clearer, and silences clang-tidy warning.

---
  drivers/accel/ivpu/ivpu_hw_btrs.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/accel/ivpu/ivpu_hw_btrs.c +0 -1
index b236c7234daab..afdb3b2aa72a7 100644
@@ -33,7 +33,6 @@
 
  #define PLL_CDYN_DEFAULT               0x80
  #define PLL_EPP_DEFAULT                0x80
-#define PLL_CONFIG_DEFAULT             0x0
  #define PLL_REF_CLK_FREQ               50000000ull
  #define PLL_RATIO_TO_FREQ(x)           ((x) * PLL_REF_CLK_FREQ)
 

drivers/accel/ivpu/ivpu_hw_btrs.c static void prepare_wp_request(struct ivpu_device *vdev, struct wp_request *wp, · line 305

Quoted 5 lines
drivers/accel/ivpu/ivpu_hw_btrs.c +1 -1
@@ -303,7 +302,7 @@ static void prepare_wp_request(struct ivpu_device *vdev, struct wp_request *wp,
  		wp->epp = 0;
  	} else {
  		wp->target = hw->pll.pn_ratio;
-		wp->cfg = enable ? PLL_CONFIG_DEFAULT : 0;
+		wp->cfg = 0;
Quoted 3 lines
drivers/accel/ivpu/ivpu_hw_btrs.c +0 -0
  		wp->cdyn = enable ? PLL_CDYN_DEFAULT : 0;
  		wp->epp = enable ? PLL_EPP_DEFAULT : 0;
  	}
author Applied
#2 lore raw
In reply to Jacek Lawrynowicz

Applied to drm-misc-next

Quoted 29 lines · Jacek Lawrynowicz

This change removes the unnecessary condition, makes the code clearer, and silences clang-tidy warning.

---
 drivers/accel/ivpu/ivpu_hw_btrs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/accel/ivpu/ivpu_hw_btrs.c +1 -2
index b236c7234daab..afdb3b2aa72a7 100644
@@ -33,7 +33,6 @@
 
 #define PLL_CDYN_DEFAULT               0x80
 #define PLL_EPP_DEFAULT                0x80
-#define PLL_CONFIG_DEFAULT             0x0
 #define PLL_REF_CLK_FREQ               50000000ull
 #define PLL_RATIO_TO_FREQ(x)           ((x) * PLL_REF_CLK_FREQ)
 
@@ -303,7 +302,7 @@ static void prepare_wp_request(struct ivpu_device *vdev, struct wp_request *wp,
 		wp->epp = 0;
 	} else {
 		wp->target = hw->pll.pn_ratio;
-		wp->cfg = enable ? PLL_CONFIG_DEFAULT : 0;
+		wp->cfg = 0;
 		wp->cdyn = enable ? PLL_CDYN_DEFAULT : 0;
 		wp->epp = enable ? PLL_EPP_DEFAULT : 0;
 	}