Page MenuHomeFreeBSD

ufshci: fail attribute reads on a non-zero config result code
ClosedPublic

Authored by jaeyoon on Aug 5 2026, 7:55 AM.
Tags
None
Referenced Files
F170825509: D58654.diff
Sun, Sep 6, 9:01 PM
Unknown Object (File)
Sat, Sep 5, 10:14 PM
Unknown Object (File)
Thu, Sep 3, 11:57 AM
Unknown Object (File)
Tue, Sep 1, 7:59 PM
Unknown Object (File)
Sat, Aug 29, 8:04 PM
Unknown Object (File)
Sat, Aug 29, 12:06 PM
Unknown Object (File)
Fri, Aug 28, 7:06 AM
Unknown Object (File)
Fri, Aug 28, 7:01 AM
Subscribers
None

Details

Summary

ufshci_uic_send_cmd() only logged the error code and returned success,
so a failed DME_GET gave its caller a stale value as if it were valid.
The gear and lane settings could then be programmed from that garbage.

Return ENXIO for reads instead. Writes keep logging and continuing,
because a device may reject an optional attribute and that must not
fail bring-up.

Sponsored by: Samsung Electronics

Diff Detail

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