Date: Sat, 13 Jun 2020 08:47:06 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD Message-ID: <bug-204521-227-WhQtiXCg4t@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204521-227@https.bugs.freebsd.org/bugzilla/> References: <bug-204521-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204521 --- Comment #208 from Gary Jennejohn <gljennjohn@gmail.com> --- (In reply to Henri Hennebert from comment #204) Out of curiosity I decided to check whether saving and restoring the regist= ers 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204521-227-WhQtiXCg4t>