[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <afd3c7b3-9d12-4ece-a938-c99bf9c5bb7b@linaro.org>
Date: Mon, 8 Jul 2024 12:44:43 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: JieGan <quic_jiegan@...cinc.com>
Cc: Mathieu Poirier <mathieu.poirier@...aro.org>,
Suzuki K Poulose <suzuki.poulose@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Mike Leach <mike.leach@...aro.org>, Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
James Clark <james.clark@....com>, Jinlong Mao <quic_jinlmao@...cinc.com>,
Leo Yan <leo.yan@...aro.org>, coresight@...ts.linaro.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, Tingwei Zhang <quic_tingweiz@...cinc.com>,
Yuanfang Zhang <quic_yuanfang@...cinc.com>,
Tao Zhang <quic_taozha@...cinc.com>, Trilok Soni <quic_tsoni@...cinc.com>,
Song Chai <quic_songchai@...cinc.com>, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH v2 3/4] Coresight: Add Coresight Control Unit driver
On 08/07/2024 05:16, JieGan wrote:
>
>>
>>> +
>>> + drvdata->base = devm_ioremap(dev, res->start, resource_size(res));
>>
>> Use proper wrapper for this two.
> Replaced by:
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> drvdata->base = devm_ioremap_resource(dev, res);
Why?
Use the wrapper.
...
>>> +
>>> +static struct platform_driver ccu_driver = {
>>> + .probe = ccu_probe,
>>> + .remove = ccu_remove,
>>> + .driver = {
>>> + .name = "coresight-ccu",
>>> + .of_match_table = ccu_match,
>>> + .suppress_bind_attrs = true,
>>
>> Why?
> Sorry, I dont get the point here.
You do not get the point why I am asking "why?"?
Why do you need it?
> We dont need automatic bind/unbind, so the suppress_bind_attrs sets to true.
But I need it...
> We need configure some settings before we register the device.
Hm, is this expected for coresight devices?
Best regards,
Krzysztof
Powered by blists - more mailing lists