Page MenuHomeFreeBSD

ufshci: Support suspend/resume
ClosedPublic

Authored by jaeyoon on Dec 1 2025, 6:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 23, 8:37 AM
Unknown Object (File)
Sun, Mar 22, 4:21 AM
Unknown Object (File)
Sat, Mar 21, 8:09 PM
Unknown Object (File)
Thu, Mar 19, 4:49 AM
Unknown Object (File)
Mon, Mar 16, 2:15 AM
Unknown Object (File)
Mon, Mar 16, 2:13 AM
Unknown Object (File)
Mon, Mar 16, 2:12 AM
Unknown Object (File)
Feb 15 2026, 10:02 PM
Subscribers
None

Details

Summary

Handle system power events and issue START STOP UNIT (SSU) to the
UFS Device WLUN (0x50).

Sponsored by: Samsung Electronics

Diff Detail

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

Event Timeline

jaeyoon created this revision.

Looks generally good, but I did have one question...

sys/dev/ufshci/ufshci.c
54 ↗(On Diff #167345)

Is there a reason that you didn't do this in a device_suspend/device_resume function?

sys/dev/ufshci/ufshci.c
54 ↗(On Diff #167345)

Oh... I realize I misunderstood this.
You’re right! This should be handled via device_suspend/device_resume.
I’ll fix the implementation and send a revised patch for review.

Use device_suspend/device_resume

After this fix, the following two reviews have been rebased and are ready for approval:
https://reviews.freebsd.org/D54003
https://reviews.freebsd.org/D54004

This revision is now accepted and ready to land.Dec 3 2025, 12:44 AM
This revision was automatically updated to reflect the committed changes.