Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83
现象:
当快速连续多次执行busybox hwclock -r去读取rtc硬件里的时间时,出现如下error:
[ 1003.621100] rtc rtc0: read_time: fail to read: -22
或者
[ 1009.333255] rk3x-i2c ff3d0000.i2c: unexpected irq in STOP: 0x10
[ 1010.329904] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x00, state: 4
[ 1010.329992] rtc rtc0: read_time: fail to read: -110
解决方法:
降低I2C速率到100k,默认I2C驱动用的就是100k,所以不需要配置。
&i2c4 {
status = "okay";
/*
i2c-scl-rising-time-ns = <345>;
i2c-scl-falling-time-ns = <11>;
clock-frequency = <400000>;
*/
rx8010: rx8010@32 {
compatible = "epson,rx8010";
reg = <0x32>;
status = "okay";
};
};
原作者:KrisFei
|