]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00227420 mmc: sdhci: shorten the delay on disabling clk
authorRyan QIAN <b32804@freescale.com>
Mon, 8 Oct 2012 23:44:34 +0000 (07:44 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:12 +0000 (14:13 +0200)
commitee6fabf897f6e19465b2fa7c59a5b33152f69e1d
treee25b682d603c43b4bdc329e573dee6b89e625a49
parent21154d596ca09feb719ed0dc22b36669874fe00d
ENGR00227420 mmc: sdhci: shorten the delay on disabling clk

- change the delay from 10 * HZ to 1 * HZ, though (1 * HZ) might not be the
best, just as a base.
1. Since the request has been moved out of interrupt context, there will be no
more calling enable_clk in interrupt context. So it's not necessary to keep
such a long delay on disabling clock in order to save power.
2. Still keeping the 1*HZ of delay is to avoid frequently enabling/disabling
clock.

eMMC card performance test result with bonnie++:
(512M RAM, 1GB data, 1K buffer)
------------------------------------------------------------------------------
|             |           1*HZ               |            10 * HZ            |
------------------------------------------------------------------------------
|    Read     |          ~24.1MB/s           |            ~23.9MB/s          |
------------------------------------------------------------------------------
|    Write    |          ~10.5MB/s           |            ~10.5MB/s          |
------------------------------------------------------------------------------

WiFi card performance test result with iperf is quite same: ~21Mbps
(AR6003@2.4G, TCP, TCP window size option 1MB both for server and client)

Acked-by: Robby CAI <r63905@freescale.com>
Signed-off-by: Ryan QIAN <b32804@freescale.com>
drivers/mmc/host/sdhci.c