On 12/30/24 2:28 AM, Peng Fan wrote:
[...]
static int fsl_sai_clk_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
const struct fsl_sai_data *data = device_get_match_data(dev);
- struct fsl_sai_clk *sai_clk;
struct clk_parent_data pdata = { .index = 0 };
+ struct fsl_sai_clk *sai_clk;
+ struct clk *clk_bus;
void __iomem *base;
struct clk_hw *hw;
@@ -47,39 +65,74 @@ static int fsl_sai_clk_probe(struct platform_device *pdev)
if (IS_ERR(base))
return PTR_ERR(base);
+ clk_bus = devm_clk_get_enabled(dev, "bus");
+ if (IS_ERR(clk_bus))
+ return PTR_ERR(clk_bus);
+
This only applies to i.MX?
I think so ... what am I missing , some Vybrid / Layerscape detail ?