Skip to content

Commit c23957a

Browse files
author
Sebastian Jaeckel
committed
lib/phy: read registers before calculating pll clock
get_pll_clock always returned 0.0 on devices running the xe driver. Initializing the register state by calling read_register before calculating the clock fixes this.
1 parent b2650ec commit c23957a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/phy.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,6 @@ int phys::set_pll_clock(double current_pll_clock, double target_pll_clock, doubl
345345
*/
346346
double phys::get_pll_clock(void)
347347
{
348+
read_registers();
348349
return calculate_pll_clock();
349350
}

0 commit comments

Comments
 (0)