Message ID | 20230901091823.30242-1-quic_luoj@quicinc.com |
---|---|
Headers | show |
Series | add clock controller of qca8386/qca8084 | expand |
Quoting Luo Jie (2023-09-01 02:18:20) > Add the clk_branch2_prepare_ops for supporting clock controller > where the hardware register is accessed by MDIO bus, and the > spin lock can't be used because of sleep during the MDIO > operation. > > The clock is enabled by the .prepare instead of .enable when > the clk_branch2_prepare_ops is used. > > Signed-off-by: Luo Jie <quic_luoj@quicinc.com> > --- Acked-by: Stephen Boyd <sboyd@kernel.org>
Quoting Luo Jie (2023-09-01 02:18:22) > The previous wrapper qcom_cc_really_probe takes the platform > device as parameter, which is limited to platform driver. > > As for qca8k clock controller driver, which is registered as > the MDIO device, which also follows the qcom clock framework. > > To commonize qcom_cc_really_probe, updating it to take the > struct device as parameter, so that the qcom_cc_really_probe > can be utilized by the previous platform device and the new > added MDIO device. > > Also update the current clock controller drivers to take > &pdev->dev as parameter when calling qcom_cc_really_probe. > > Signed-off-by: Luo Jie <quic_luoj@quicinc.com> > --- Reviewed-by: Stephen Boyd <sboyd@kernel.org>