Page MenuHomeFreeBSD

Use XPT_GET_ADVINFO for retrieving MMC params
ClosedPublic

Authored by scottl on Jan 11 2018, 6:07 PM.
Tags
None
Referenced Files
F137945870: D13868.id38208.diff
Thu, Nov 27, 1:29 PM
Unknown Object (File)
Mon, Nov 24, 10:36 PM
Unknown Object (File)
Mon, Nov 24, 5:26 PM
Unknown Object (File)
Sat, Nov 22, 9:03 PM
Unknown Object (File)
Thu, Nov 20, 11:41 PM
Unknown Object (File)
Thu, Nov 20, 11:38 PM
Unknown Object (File)
Thu, Nov 20, 11:37 PM
Unknown Object (File)
Thu, Nov 20, 11:34 PM
Subscribers
None

Details

Summary

Fix the accidental ABI breakage for CCBs and use the ADVINFO CCB
for retrieving the mmc_params structure.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks good to me, modulo my one question...
I'll test it out shortly.

sys/cam/mmc/mmc_xpt.c
373 โ†—(On Diff #37822)

I assume the ioctl takes care of setting up the kernel buffer for this, then copying it out to user space?

sys/cam/mmc/mmc_xpt.c
373 โ†—(On Diff #37822)

I believe it's handled automatically in cam_periph_mapmem()

This change LGTM, I would like to know how this was discovered?

This revision is now accepted and ready to land.Jan 19 2018, 2:23 PM

I came across it during some other clean-up work.