Skip to content

Commit

Permalink
Fix the request finalisation by ensuring the controller
Browse files Browse the repository at this point in the history
is stopped.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Harald Welte <laforge@openmoko.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Thomas Kleffel authored and Pierre Ossman committed Jul 15, 2008
1 parent ceb3ac2 commit bdbc9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/s3cmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ static void finalize_request(struct s3cmci_host *host)

/* Cleanup controller */
writel(0, host->base + S3C2410_SDICMDARG);
writel(0, host->base + S3C2410_SDIDCON);
writel(S3C2410_SDIDCON_STOP, host->base + S3C2410_SDIDCON);
writel(0, host->base + S3C2410_SDICMDCON);
writel(0, host->base + host->sdiimsk);

Expand Down Expand Up @@ -803,7 +803,7 @@ static int s3cmci_setup_data(struct s3cmci_host *host, struct mmc_data *data)
dbg(host, dbg_err,
"mci_setup_data() transfer stillin progress.\n");

writel(0, host->base + S3C2410_SDIDCON);
writel(S3C2410_SDIDCON_STOP, host->base + S3C2410_SDIDCON);
s3cmci_reset(host);

if ((stoptries--) == 0) {
Expand Down

0 comments on commit bdbc9c3

Please sign in to comment.