Re: [PATCH 2/2] interconnect: qcom: glymur: Add Mahua SoC support

From: Raviteja Laggyshetty

Date: Mon Jan 26 2026 - 08:46:39 EST




On 1/26/2026 7:04 PM, Dmitry Baryshkov wrote:
> On Mon, Jan 26, 2026 at 06:40:13PM +0530, Raviteja Laggyshetty wrote:
>> On 1/23/2026 11:28 PM, Dmitry Baryshkov wrote:
>>> On Fri, Jan 23, 2026 at 05:12:36PM +0000, Raviteja Laggyshetty wrote:
>>>> +static int glymur_qnoc_probe(struct platform_device *pdev)
>>>> +{
>>>> + if (device_is_compatible(&pdev->dev, "qcom,mahua-mc-virt")) {
>>>> + llcc_mc.channels = 8;
>>>> + ebi.channels = 8;
>>>> + } else if (device_is_compatible(&pdev->dev, "qcom,mahua-hscnoc")) {
>>>> + qns_llcc.channels = 8;
>>>> + chm_apps.channels = 4;
>>>> + qnm_pcie_west.buswidth = 32;
>>>> + } else if (device_is_compatible(&pdev->dev, "qcom,mahua-pcie-west-anoc")) {
>>>> + qns_pcie_west_mem_noc.buswidth = 32;
>>>> + }
>>>
>>> Right here, set the node entries to NULL.
>>
>> cnoc_cfg_nodes is declared as an array of const pointers, so the pointer
>> values cannot be reassigned after initialization. To change the addresses,
>> the const qualifier would need to be dropped. To preserve const, the
>> entire array has been duplicated instead by dropping the PCIE_3A related
>> nodes.
>
> Why? Just drop the const instead of creating unnecessary (almost)
> duplication.
>
ok, Thanks for the suggestion Dmitry, will post the next revision by
addressing the comments.

>>>
>>>> +
>