This patch adds support for the below 1) There could be failure while updating the RCG and not returning the failure could cause the consumer to assume the clock update is a success and not handling the failure gracefully. 2) There are few clocks in certain clock controllers which might require the hardware control mode to be enabled explicitly. 3) Update the DFS macro as per the hardware plans. Taniya Das (3): clk: qcom: rcg: Return failure for RCG update clk: qcom: rcg2: Add support for hardware control mode clk: qcom: rcg: update the DFS macro for RCG drivers/clk/qcom/clk-rcg.h | 5 ++- drivers/clk/qcom/clk-rcg2.c | 5 ++- drivers/clk/qcom/gcc-sdm845.c | 96 +++++++++++++++++++++---------------------- 3 files changed, 56 insertions(+), 50 deletions(-) -- Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.