git: ahci - Improve SATA port link state sysctl output.
Imre Vadasz
ivadasz at crater.dragonflybsd.org
Sat Jan 24 11:45:26 PST 2026
commit 7b8d31209ce5e5e86b361a056a327d2689cf61cc
Author: Imre Vadász <imre at vdsz.com>
Date: Sat Jan 24 20:19:36 2026 +0100
ahci - Improve SATA port link state sysctl output.
This should now always print a meaningful state, instead of outputting
"unknown" in any case where there is no device, no established
communication with the device, or the phy is disabled.
The case "no communication" is relevant, since this can probably occur
in practice on notebooks where an optical drive may be disabled in the BIOS
settings. Or it can probably occur when a disk drive is plugged into a SATA
port, without connecting a power cable.
Summary of changes:
sys/dev/disk/ahci/ahci.c | 10 ++++++++++
sys/dev/disk/ahci/ahci_dragonfly.c | 5 +++--
2 files changed, 13 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b8d31209ce5e5e86b361a056a327d2689cf61cc
--
DragonFly BSD source repository
More information about the Commits
mailing list