Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0a5ff911 authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: sdhci-msm: Always set max_busy_timeout as zero



Qcom SDHC uses base clock in calculating the data-timeout
value. So SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK quirk is set.

Moreover discard size calculation uses max_busy_timeout in deriving the
value. So, we can ensure a larger discard size by setting this
timeout as zero. If this timeout is zero then it takes max erase
timeout vlaue (which is 60sec) in the discard size calculation.

But when this quirk is set max_busy_timeout variable gets updated
to non zero value leading to smaller discard size.

Define get_max_timeout_count ops in sdhci_msm_ops which always sets
max_busy_timeout to zero.

Change-Id: Iec6013dde6082b2a8fdb449cacf503c290252d0b
Signed-off-by: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent ab09338b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment