HomeFreeBSD

clk_fixed: reduce and clarify messages due to missing clk-frequency

Description

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.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D41594

(cherry picked from commit b4ef09b9eb117d622bb274448e5cffcae0ba3488)

Details

Provenance
karelsAuthored on Aug 25 2023, 8:11 PM
Reviewer
manu
Differential Revision
D41594: clk_fixed: reduce and clarify messages due to missing clk-frequency
Parents
rG5a3f517110ef: bridge.4: Document the net.link.bridge.log_mac_flap sysctl variable
Branches
Unknown
Tags
Unknown