Hi Lorenzo,
On Wed, Sep 09, 2026 at 08:47:48PM +0200, Lorenzo Bianconi wrote:
quoted
if (enabled) {
+ if (ethqos->num_noc_clks) {
+ ret = dev_pm_opp_set_rate(ðqos->pdev->dev,
+ ethqos->noc_clk_rates[0]);
assuming the first clock is always an OPP device seems a bit fragile to me.
Can we find a way to enforce it? (e.g. have a dedicated clk_bulk_data struct
for it).
As Konrad also pointed out in patch 9, the opp table support needs to be
fixed. I will fix it for v3.
quoted
static int qcom_ethqos_probe(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;@@ -795,6 +895,12 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
ethqos->has_emac_ge_3 = data->has_emac_ge_3;
ethqos->needs_sgmii_loopback = data->needs_sgmii_loopback;
+ if (data->num_noc_clks) {
I guess you can drop this check since it is already done in
qcom_ethqos_init_noc_clks(), right?
Yes, this can be removed.
Ayaan