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
F170725459: D13868.id38208.diff
Sun, Sep 6, 5:57 AM
Unknown Object (File)
Sat, Sep 5, 2:32 PM
Unknown Object (File)
Sat, Sep 5, 1:55 PM
Unknown Object (File)
Sat, Sep 5, 11:28 AM
Unknown Object (File)
Sat, Sep 5, 9:15 AM
Unknown Object (File)
Fri, Sep 4, 3:35 AM
Unknown Object (File)
Thu, Sep 3, 4:42 AM
Unknown Object (File)
Tue, Sep 1, 1:02 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 Passed
Unit
No Test Coverage
Build Status
Buildable 14308
Build 14466: arc lint + arc unit

Event Timeline

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

sys/cam/mmc/mmc_xpt.c
373

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

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.