opnsense-src/sys/dev/extres
Mike Karels b4ef09b9eb clk_fixed: reduce and clarify messages due to missing clk-frequency
The current dts for Raspberry 3B+ and 4B have 2 disabled fixed-clock
nodes which have no clock-frequency value.  Such nodes are non-standard.
This results in about 150 messages during autoconfiguration:

    clk_fixed2: <Fixed clock> disabled on ofwbus0
    clk_fixed2: Cannot FDT parameters.
    device_attach: clk_fixed2 attach returned 6

Defensively check for clock-frequency in the probe routine, and if
none, return an error with a more direct error message (1 line per
occurrence, 50 lines total):

    clk_fixed2: clock-fixed has no clock-frequency

Based on a patch by manu.

MFC after:	1 week
Reviewed by:	manu
Differential Revision:	https://reviews.freebsd.org/D41594
2023-08-25 15:11:46 -05:00
..
clk clk_fixed: reduce and clarify messages due to missing clk-frequency 2023-08-25 15:11:46 -05:00
hwreset sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
nvmem sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
phy sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
regulator sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
syscon sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00