Page MenuHomeFreeBSD

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

Authored by karels on Aug 25 2023, 4:03 PM.
Tags
None
Referenced Files
F137357377: D41594.id126527.diff
Sat, Nov 22, 6:36 PM
Unknown Object (File)
Sun, Nov 16, 12:32 AM
Unknown Object (File)
Sun, Nov 9, 7:31 PM
Unknown Object (File)
Wed, Nov 5, 3:57 AM
Unknown Object (File)
Mon, Oct 27, 12:06 AM
Unknown Object (File)
Oct 19 2025, 6:59 PM
Unknown Object (File)
Oct 12 2025, 8:34 PM
Unknown Object (File)
Oct 4 2025, 1:51 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable