turing-machines / BMC-Firmware

Turing-pi BMC firmware
http://turingpi.com
GNU General Public License v2.0
226 stars 29 forks source link

rockusb: modify READ_CAPACITY handling; use scsi_eh_prep_cmnd #156

Closed CFSworks closed 10 months ago

CFSworks commented 10 months ago

This is the "proper" way to do this, vs. the old hacky approach of switching out the scatter-gather list.

Fixes a bug where the size is not properly reported by the driver.


To test this PR:

CFSworks commented 10 months ago

For reference, the correct eMMC size values (as determined from /sys/class/block/mmcblk0/size on the RK1 itself, not from the BMC):