]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci: Get rid of mdelay()s where it is safe and makes sense
authorJeremie Samuel <jeremie.samuel.ext@parrot.com>
Mon, 21 Oct 2013 15:25:56 +0000 (17:25 +0200)
committerChris Ball <chris@printf.net>
Mon, 21 Oct 2013 19:58:44 +0000 (15:58 -0400)
commit8c47a116200a0e0f731ce882b9ba83706a6fe5a0
treeade9884e89592d4912ebff0d044ebb117a78c61d
parentb28bfc0de7e7033feb89040e55eabe9e145cd7ef
mmc: sdhci: Get rid of mdelay()s where it is safe and makes sense

Since we don't run in the atomic context any longer, we can
turn mdelay()s into msleep()s.

The only place where the driver is still using mdelay() is
sdhci_send_command(). There it is possible to use sleepable
delays too, but we don't actually want to force rescheduling
in a hot path.

Sure, we might end up calling msleep() there too, just not
via this safe patch.

PAtch based on: http://thread.gmane.org/gmane.linux.kernel.mmc/2579.

Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Signed-off-by: Jeremie Samuel <jeremie.samuel.ext@parrot.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c