Page MenuHomeFreeBSD

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

Authored by jaeyoon on Wed, Aug 5, 7:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 24, 4:22 PM
Unknown Object (File)
Sun, Aug 23, 2:36 PM
Unknown Object (File)
Fri, Aug 21, 5:17 AM
Unknown Object (File)
Thu, Aug 20, 8:43 PM
Unknown Object (File)
Thu, Aug 20, 4:41 PM
Unknown Object (File)
Wed, Aug 19, 9:28 PM
Unknown Object (File)
Tue, Aug 18, 9:02 PM
Unknown Object (File)
Tue, Aug 18, 8:31 PM
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