Page MenuHomeFreeBSD

ufshci: Support suspend/resume
ClosedPublic

Authored by jaeyoon on Dec 1 2025, 6:47 AM.
Tags
None
Referenced Files
F174483654: D54002.id167457.diff
Sat, Oct 3, 2:42 PM
F174481971: D54002.id167345.diff
Sat, Oct 3, 2:21 PM
F174476600: D54002.id167413.diff
Sat, Oct 3, 1:15 PM
F174476572: D54002.id167457.diff
Sat, Oct 3, 1:15 PM
F174473731: D54002.id167345.diff
Sat, Oct 3, 12:57 PM
F174409969: D54002.diff
Sat, Oct 3, 12:15 AM
Unknown Object (File)
Wed, Sep 23, 7:42 AM
Unknown Object (File)
Mon, Sep 21, 6:05 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.