Skip to content

Commit

Permalink
Revert "mmc: Added CRC toggle support for Spreadtrum platform"
Browse files Browse the repository at this point in the history
This reverts commit 4f7cf9f.
  • Loading branch information
NotNoelChannel committed Nov 30, 2023
1 parent d917bee commit 328a3cd
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions drivers/mmc/core/core-sprd.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,9 @@ static const unsigned freqs[] = { 400000, 300000, 200000, 100000 };
* Enabling software CRCs on the data blocks can be a significant (30%)
* performance cost, and for other reasons may not always be desired.
* So we allow it it to be disabled.
*
* SysFs interface :
*
* /sys/module/mmc_core/parameters/crc
*
* Enable / Disable CRC
*
* echo N > /sys/module/mmc_core/parameters/crc (Disabled) or
* echo 0 > /sys/module/mmc_core/parameters/crc (Disabled)
*
* echo Y > /sys/module/mmc_core/parameters/crc (Enabled) or
* echo 1 > /sys/module/mmc_core/parameters/crc (Enabled)
*/

int use_spi_crc = 0;
EXPORT_SYMBOL(use_spi_crc);
module_param_named(crc, use_spi_crc, int, 0644);
MODULE_PARM_DESC(crc, "Enable/disable CRC");
*/
bool use_spi_crc = 1;
module_param(use_spi_crc, bool, 0);

/*
* We normally treat cards as removed during suspend if they are not
Expand Down

0 comments on commit 328a3cd

Please sign in to comment.