make ixp4xx require gpiolib
[openwrt.git] / target / linux / pxa / patches-2.6.21 / 021-bugfix-mmc-clock.patch
1 Index: linux-2.6.21.7/drivers/mmc/pxamci.c
2 ===================================================================
3 --- linux-2.6.21.7.orig/drivers/mmc/pxamci.c
4 +++ linux-2.6.21.7/drivers/mmc/pxamci.c
5 @@ -366,8 +366,7 @@ static void pxamci_set_ios(struct mmc_ho
6
7 if (ios->clock) {
8 unsigned int clk = CLOCKRATE / ios->clock;
9 - if (CLOCKRATE / clk > ios->clock)
10 - clk <<= 1;
11 + if(clk > (1<<6)) clk = (1<<6);
12 host->clkrt = fls(clk) - 1;
13 pxa_set_cken(CKEN12_MMC, 1);
14
This page took 0.052836 seconds and 5 git commands to generate.