On 7/8/25 12:20 PM, Luca Weiss wrote:
> Add driver for the Qualcomm interconnect buses found in Milos based
> platforms. The topology consists of several NoCs that are controlled by
> a remote processor that collects the aggregated bandwidth for each
> master-slave pairs.
>
> Signed-off-by: Luca Weiss <[email protected]>
> ---
[...]
> +static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
> +};
You can remove the empty bcm arrays and .(num_)bcms assignments
for them
[...]
> +static const struct of_device_id qnoc_of_match[] = {
> + { .compatible = "qcom,milos-aggre1-noc", .data = &milos_aggre1_noc},
> + { .compatible = "qcom,milos-aggre2-noc", .data = &milos_aggre2_noc},
> + { .compatible = "qcom,milos-clk-virt", .data = &milos_clk_virt},
> + { .compatible = "qcom,milos-cnoc-cfg", .data = &milos_cnoc_cfg},
> + { .compatible = "qcom,milos-cnoc-main", .data = &milos_cnoc_main},
> + { .compatible = "qcom,milos-gem-noc", .data = &milos_gem_noc},
> + { .compatible = "qcom,milos-lpass-ag-noc", .data = &milos_lpass_ag_noc},
> + { .compatible = "qcom,milos-mc-virt", .data = &milos_mc_virt},
> + { .compatible = "qcom,milos-mmss-noc", .data = &milos_mmss_noc},
> + { .compatible = "qcom,milos-nsp-noc", .data = &milos_nsp_noc},
> + { .compatible = "qcom,milos-pcie-anoc", .data = &milos_pcie_anoc},
> + { .compatible = "qcom,milos-system-noc", .data = &milos_system_noc},
> + { }
a space before '}' would be neat
Konrad
> +};
> +MODULE_DEVICE_TABLE(of, qnoc_of_match);
> +
> +static struct platform_driver qnoc_driver = {
> + .probe = qcom_icc_rpmh_probe,
> + .remove = qcom_icc_rpmh_remove,
> + .driver = {
> + .name = "qnoc-milos",
> + .of_match_table = qnoc_of_match,
> + .sync_state = icc_sync_state,
Are there any issues with sync_state? (hopefully not)
Konrad