git: kernel - Fix mmcsd read/write issues
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Oct 28 22:18:07 PDT 2016
commit fd4b97583be1a1e57234713c25f6e81bc0411cb0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Oct 28 21:48:11 2016 -0700
kernel - Fix mmcsd read/write issues
* b_resid was not being set to 0 on a successful read or write, resulting
in random short-read and short-write returns for requests. Fixing this
fixes nominal block I/O via the mmcsd disk device.
* bus/mmc now uses tsleep() instead of DELAY for the 10ms pause in
request/command wait loops.
* bus/mmc reduces the TIMEOUT from 10 seconds to 1 second after the first
TIMEOUT, only increasing it back to 10 seconds when timeouts stop
occurring. This reduces boot-time delays when a mmc port is dead or
powered down.
Summary of changes:
sys/bus/mmc/mmc.c | 28 +++++++++++++++++++++++++---
sys/dev/disk/mmcsd/mmcsd.c | 2 ++
2 files changed, 27 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fd4b97583be1a1e57234713c25f6e81bc0411cb0
--
DragonFly BSD source repository
More information about the Commits
mailing list