tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state
authorRajendra Nayak <rnayak@codeaurora.org>
Sun, 3 May 2020 12:04:24 +0000 (17:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 14:24:21 +0000 (16:24 +0200)
commit3d9231e69831551da3a78a618b31702ea4dedd5e
tree09d9ccc52282b9dab5e954f5f3ec58b6f284c4b0
parentc2880ec6c0862e11673742ab512c262b5e97a34c
tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

geni serial needs to express a perforamnce state requirement on CX
powerdomain depending on the frequency of the clock rates.
Use OPP table from DT to register with OPP framework and use
dev_pm_opp_set_rate() to set the clk/perf state.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Akash Asthana <akashast@codeaurora.org>
Cc: linux-serial@vger.kernel.org
Link: https://lore.kernel.org/r/1588507469-31889-2-git-send-email-rnayak@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c
include/linux/qcom-geni-se.h