https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521

--- Comment #208 from Gary Jennejohn <gljennj...@gmail.com> ---
(In reply to Henri Hennebert from comment #204)
Out of curiosity I decided to check whether saving and restoring the registers
in suspend and resume is really necessary.
It turns out that the only necessary action required in suspend/resume is to
call bus_generic_suspend() and bus_generic_resume().
Looking at the trace after resume makes it clear why that is the case.  MMC
sends all the same CMDs after resume as it does when the module is first
loaded.
Saving and restoring the registers is basically a waste of time since the
actions taken by MMC during resume will modify the registers anyway.
After the resume I could immediately dd data from the SD card without any
errors. I did not try mounting it, but if dd works then mounting should also
work.
I tested with the RTS522A in a Thinkpad X270.  By the way I had to disable the
TPM in order for resume to work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to