2 comments:
I assume this is BUG=b:70692504? And please also mark it with BRANCH=gru.
File src/soc/rockchip/rk3399/saradc.c:
Patch Set #1, Line 74: udelay(SARADC_DELAY_PU);
This jumps from 250us to 8ms, which puts it well within the "uncomfortable" range of boot delays for me. Remember that we eat this 5 or so times per boot, so this is a whooping 40ms. Is it really necessary to do such an extreme change to fix this issue? I think if this delay went up to only 1ms per call (that's still 4 times as much as right now!), like with 4 samples delay at 4MHz, I'd be okay with it.
If you really need this to be that long, then I think we need to factor an init_saradc() function out so that we at least only have to eat the delay once per ADC. But that would get more complicated again because we may need to RW-update this onto older RO firmware, so I'd really rather not go there...
To view, visit change 23515. To unsubscribe, or for help writing mail filters, visit settings.