Page MenuHomeFreeBSD

ufshci: skip the reinit when the new link works
ClosedPublic

Authored by jaeyoon on Sep 1 2026, 6:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 13, 6:40 PM
Unknown Object (File)
Thu, Oct 8, 6:43 PM
Unknown Object (File)
Tue, Oct 6, 8:43 PM
Unknown Object (File)
Mon, Oct 5, 10:18 AM
Unknown Object (File)
Sun, Oct 4, 6:27 PM
Unknown Object (File)
Thu, Oct 1, 8:37 AM
Unknown Object (File)
Tue, Sep 29, 9:33 PM
Unknown Object (File)
Wed, Sep 23, 1:11 PM
Subscribers
None

Details

Summary

UFSHCI_QUIRK_REINIT_AFTER_MAX_GEAR_SWITCH always rebuilt the
link after the gear switch. It threw away a working HS link and
ended up in PWM. The reinit is only needed for a dead link.
There the local side reports HS and the peer never answers. A
local readback cannot tell the two apart. Peer traffic can.

Probe the peer with DME_PEER_GET after the switch. Skip the
reinit when the probe succeeds. Log it when the probe fails.

Sponsored by: Samsung Electronics

Diff Detail

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