[PATCH v2 3/3] phy: qcom-qmp-ufs: provide symbol clocks

Johan Hovold johan at kernel.org
Fri Jul 8 06:18:20 PDT 2022


On Fri, Jul 08, 2022 at 04:13:33PM +0300, Dmitry Baryshkov wrote:
> Register three UFS symbol clocks (ufs_rx_symbol_0_clk_src,
> ufs_rx_symbol_1_clk_src ufs_tx_symbol_0_clk_src). Register OF clock
> provider to let other devices link these clocks through the DT.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
> ---
>  drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 56 +++++++++++++++++++++++++
>  1 file changed, 56 insertions(+)
> 
> +static int phy_symbols_clk_register(struct qcom_qmp *qmp, struct device_node *np)
> +{
> +	struct clk_hw_onecell_data *clk_data;
> +	struct clk_hw *hw;
> +	char name[64];
> +	int ret;
> +
> +	clk_data = devm_kzalloc(qmp->dev, struct_size(clk_data, hws, UFS_SYMBOL_CLOCKS), GFP_KERNEL);

Error handling still missing.

> +	clk_data->num = UFS_SYMBOL_CLOCKS;

Johan



More information about the linux-phy mailing list