Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions drivers/clk/bcm/clk-raspberrypi.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,14 @@ static int raspberrypi_fw_prepare(struct clk_hw *hw)
return ret;
}

/*
* Set the clock rate to the maximum possible rate or restore the rate
* the consumer requested.
*/
if (variant->maximize)
ret = raspberrypi_fw_set_rate(hw, variant->max_rate, 0);
else
ret = raspberrypi_fw_set_rate(hw, clk_hw_get_rate(hw), 0);

return ret;
}
Expand Down
Loading