Skip calculating timings if we can't determine the frequency of the clock.
authorkettenis <kettenis@openbsd.org>
Fri, 29 Mar 2024 22:08:09 +0000 (22:08 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 29 Mar 2024 22:08:09 +0000 (22:08 +0000)
commit8bd53da34d074a7bca1202244d6357983b8c33f3
tree5d060ba80c546a4aeeef73fabb750140a427d4da
parent8a1e8ccaf72b414f303ec266a1bf09741dab5c4c
Skip calculating timings if we can't determine the frequency of the clock.
This avoids programming the hardware with clearly wrong values.  On the
Milk-V Pioneer this means the I2C controller remains functional and
rebooting using the appropriate SBI call still works.

ok miod@
sys/dev/fdt/dwiic_fdt.c