]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changing
authorloos <loos@FreeBSD.org>
Thu, 21 May 2015 20:09:36 +0000 (20:09 +0000)
committerloos <loos@FreeBSD.org>
Thu, 21 May 2015 20:09:36 +0000 (20:09 +0000)
commitdd5257f7d01d3ae28899417a214d9bfa5a94f0bf
treedac302b6ab37b478f088edfdcd5474b2bc35db17
parentd8ed876b187c8092bdd7945b04083327db53a54e
Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changing
this value at runtime.

The SD card specification says that a block write or a block erase can take
up to 250ms to complete and thus, under some circumstances, the existent 2
seconds timeout was triggering with normal usage.

This change fixes the sporadic controller timeout that happens on RPi and
RPi 2.

Discussed with: ian (some time ago)
sys/dev/sdhci/sdhci.c
sys/dev/sdhci/sdhci.h