You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
could you add "MMC_CAP_ERASE" to the bcm2835-sdhost driver mmc->caps initialization? #1076
I've been using the new "sdhost" driver, and it's overclocking abilities are amazing. E.g., I can now run my card at 40MB/s read speeds (as compared to 18MB/s under the "mmc" driver).
However the current implementation of this new driver in the "rpi-4.0.y" tree is missing the "MMC_CAP_ERASE" capability for the host controller configuration, and as such this prevents "fstrim" from working ("fstrim" gives an "FITRIM ioctl failed: Operation not supported" error). Adding the MMC_CAP_ERASE capability fixes this issue, and the "sdhost" driver will then support the TRIM feature like the current "bcm2835-mmc" driver does.
I've enabled this capability in my own kernel build, but it'd be great to get this in upstream so that I don't need to keep building my own kernel just for this simple change...
I'm happy to add it, provided it works. Which card are you using? None of mine (SanDisk class 10, Lexar class 10, no-name class 6) have the required capabilities. In fact there's a discussion in #431 where Gordon says that SD cards don't really support (and in fact don't need) trimming.
Activity
pelwell commentedon Jul 20, 2015
I'm happy to add it, provided it works. Which card are you using? None of mine (SanDisk class 10, Lexar class 10, no-name class 6) have the required capabilities. In fact there's a discussion in #431 where Gordon says that SD cards don't really support (and in fact don't need) trimming.
bcm2835-sdhost: Add the ERASE capability
bcm2835-sdhost: Add the ERASE capability
pelwell commentedon Jul 21, 2015
I've added the ERASE capability to the sdhost driver - it will be in the next release.
bcm2835-sdhost: Add the ERASE capability
bcm2835-sdhost: Add the ERASE capability
kernel: Bump to 4.0.9
kernel: Bump to 4.0.9
bcm2835-sdhost: Add the ERASE capability
bcm2835-sdhost: Add the ERASE capability
bcm2835-sdhost: Add the ERASE capability
bcm2835-sdhost: Add the ERASE capability
273 remaining items
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it
Adding bcm2835-sdhost driver, and an overlay to enable it