Page MenuHomeFreeBSD

uart: Read clock frequency from bus
ClosedPublic

Authored by mkoz_semihalf.com on Aug 24 2022, 9:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 12, 2:54 AM
Unknown Object (File)
Dec 30 2022, 8:23 AM
Unknown Object (File)
Dec 30 2022, 8:22 AM
Unknown Object (File)
Dec 30 2022, 8:22 AM
Unknown Object (File)
Dec 30 2022, 8:22 AM
Unknown Object (File)
Dec 30 2022, 8:21 AM
Unknown Object (File)
Dec 30 2022, 8:21 AM
Unknown Object (File)
Dec 30 2022, 8:20 AM
Subscribers

Details

Summary

It is stored in clock-frequency.
In case of failure, fallback to the harcoded value stored in the compat data.
While here improve style.
Tested on LS1046ARDB and x86 PC.

Diff Detail

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

Event Timeline

mkoz_semihalf.com created this revision.
mkoz_semihalf.com retitled this revision from uart: Read clock frequency provided from bus to uart: Read clock frequency from bus.Aug 24 2022, 9:05 AM
mw requested changes to this revision.Sep 5 2022, 11:06 PM
mw added inline comments.
sys/dev/uart/uart_bus_acpi.c
91

Don't assign value in declaration block.

96

missing space after return.

This revision now requires changes to proceed.Sep 5 2022, 11:06 PM

Move assignment.
Fix style in return statement.

This revision is now accepted and ready to land.Sep 6 2022, 11:40 AM
This revision was automatically updated to reflect the committed changes.