[PATCH v4 2/7] clocksource/drivers: Add EcoNet Timer HPT driver
Caleb James DeLisle
cjd at cjdns.fr
Tue May 6 07:25:41 PDT 2025
On 06/05/2025 10:54, Daniel Lezcano wrote:
> On 05/05/2025 20:09, Caleb James DeLisle wrote:
>>
>> On 05/05/2025 18:36, Daniel Lezcano wrote:
>>> On Wed, Apr 30, 2025 at 01:34:28PM +0000, Caleb James DeLisle wrote:
>>>> Introduce a clocksource driver for the so-called high-precision
>>>> timer (HPT)
>>>> in the EcoNet EN751221 MIPS SoC.
>>> As a new driver, please document the timer (up - down ?, SPI/PPI, etc
>>> ...) that will help to understand the code more easily, especially the
>>> reg_* functions (purposes?).
>>
>>
>> Sure thing, I can elaborate the comment in the header of
>> timer-econet-en751221.c. Let me know if you'd like it described
>> somewhere else as well, such as the help of config
>> ECONET_EN751221_TIMER.
>
> It is ok in the changelog, so it is possible to get the description
> when looking for the patch introducing the new timer.
Sounds good.
>
> [ ... ]
>
>>>> +
>>>> + cpuhp_setup_state(CPUHP_AP_MIPS_GIC_TIMER_STARTING,
>>>> + "clockevents/en75/timer:starting",
>>>> + cevt_init_cpu, NULL);
>>> cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, ... ) ?
>>
>> I see that Ingenic does this. This is the only timer so until it's up,
>> sleeping causes a hang. If sleeping is prior to CPUHP_AP_ONLINE_DYN is
>> considered a bug then this should be okay, but I'm not informed enough
>> to say whether that is the case so I'll follow your guidance here.
>
> Hmm, hard to say without the platform. May be just give a try with
> CPUHP_AP_ONLINE_DYN to check if it works otherwise stick on
> CPUHP_AP_MIPS_GIC_TIMER_STARTING as it is already defined ?
I need a little time for this because I only got SMP on this processor
some time ago in a PoC so I'll need to put that back together in order
to validate the change.
Thanks,
Caleb
>
> [ ... ]
>
>
More information about the Linux-mediatek
mailing list