]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Support zeroout using TRIM for eMMC
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 29 Apr 2022 15:21:18 +0000 (17:21 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 10 May 2022 10:51:32 +0000 (12:51 +0200)
commit83c6682b09f18c04027ab04f8882062ecc480a18
tree6aa61b8fbeea6dfaa3a3f1270bb3df23e81e1fd5
parentab7e3aa9231e4ccf81d85ebfde3e16c54b4f55fa
mmc: core: Support zeroout using TRIM for eMMC

If an eMMC card supports TRIM and indicates that it erases to zeros, we can
use it to support hardware offloading of REQ_OP_WRITE_ZEROES, so let's add
support for this.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Reviewed-by: Avri Altman <Avri.Altman@wdc.com>
Link: https://lore.kernel.org/r/20220429152118.3617303-1-vincent.whitchurch@axis.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/queue.c