freebsd-src/sys/arm
Mitchell Horne cae9ae66ad aw_rtc: bump settime() delays
There are delay loops, checking the BUSY status bit, before writing to
the date or time registers. Each iteration contains a 1usec delay, for a
maximum of 70 iterations.

This is frequently not enough on the D1 platform, where the message is
emitted:

  rtc0: could not set date, RTC busy

Bump the loop delay to 10usecs each, and the maximum number of
iterations to 150, for a maximum delay of 1.5msecs between each write of
the register.

In my testing this seems to be adequate.

The loop variable is renamed for clarity/simplicity.

Reviewed by:	manu
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54180
2025-12-15 11:29:21 -04:00
..
allwinner aw_rtc: bump settime() delays 2025-12-15 11:29:21 -04:00
annapurna/alpine Restore #include <sys/devmap.h> 2025-05-29 12:14:25 +02:00
arm bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD 2025-12-09 15:00:06 -05:00
broadcom/bcm2835 arm64: Add support to vchiq and bcm2835_audio (plus some fixes) 2025-11-14 19:27:46 -08:00
conf sys: RealTek -> Realtek 2025-11-26 23:19:26 -07:00
freescale arm: Add missing argument in mtx_init() calls 2025-11-24 13:19:25 +01:00
include Add sys/_align.h replacing machine/_align.h 2025-12-10 10:57:50 +00:00
mv bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD 2025-12-09 15:00:06 -05:00
nvidia arm/nvidia/tegra: Fix a couple of typos in kernel messages 2025-10-28 09:04:33 +01:00
qemu sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
qualcomm Restore #include <sys/devmap.h> 2025-05-29 12:14:25 +02:00
rockchip Add driver for the RK3328 GPIO_MUTE pin 2025-03-18 13:00:19 -04:00
ti arm/ti: Fix typo in a KASSERT message 2025-10-29 16:45:15 +01:00
xilinx gpio: remove gpiobus_attach_bus 2025-08-13 14:14:00 +03:00