[Letux-kernel] [PATCH 00/20] A bunch of JZ4730 fixups for letux-kernel
H. Nikolaus Schaller
hns at goldelico.com
Tue Dec 29 23:23:38 CET 2020
Hi Paul,
> Am 29.12.2020 um 23:07 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>
> PS: seems as if I have fixed touchpad buttons and keyboard matrix.
> Problem was that ingenic_gpio_irq_(un)mask was not jz4730-aware
> and did write to GPIO_MSK which happens to be the IER and not
> the mask register. So the interrupts were shortly enabled
> and immediately disabled instead of masked. And not properly
> unmasked/enabled again because gpiolib assumed they were still
> enabled.
And I have found one more fix for ingenic_config_pin_function() which
did not get right the split into reg_upper and reg_lower.
BTW: there *is* a prinkt from the kernel for the timers (I just hadn't
noticed yet):
[ 0.000000] random: get_random_bytes called from start_kernel+0x6d8/0x920 with crng_init=0
[ 0.000000] clocksource: ingenic-timer: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 7910990 ns
[ 0.000055] sched_clock: 16 bits at 3686kHz, resolution 271ns, wraps every 8888753ns
[ 0.009943] Console: colour dummy device 80x25
[ 0.001227] printk: console [tty0] enabled
So I was wrong with my 300µs. It is resolution 271ns.
But the calculation of wraps every 8888753ns is also ok.
And the max_idle_ns: 7910990 ns.
This all looks good.
Let's analyse the hrtimers as a next step.
BR,
Nikolaus
More information about the Letux-kernel
mailing list