source: trunk/target/linux/omap24xx/patches-2.6.38/810-mmc-fixes.patch @ 26905

Last change on this file since 26905 was 26905, checked in by hauke, 6 years ago

kernel: update kernel from 2.6.38.2 to 2.6.38.6 and refresh patches

Thank you Peter Wagner for the patch. I refreshed the kernel patches and added the md5sum of the kernel.

File size: 1.3 KB
  • drivers/mmc/host/omap.c

    a b static int __init mmc_omap_probe(struct 
    14561456        host->dma_ch = -1; 
    14571457 
    14581458        host->irq = irq; 
     1459        host->reg_shift = (cpu_is_omap7xx() ? 1 : 2); 
    14591460        host->phys_base = host->mem_res->start; 
    14601461        host->virt_base = ioremap(res->start, res->end - res->start + 1); 
    14611462        if (!host->virt_base) 
    static int __init mmc_omap_probe(struct 
    14951496                } 
    14961497        } 
    14971498 
    1498         host->reg_shift = (cpu_is_omap7xx() ? 1 : 2); 
     1499        /* Make sure the detect workqueue was run at least once. */ 
     1500        printk(KERN_INFO "OMAP-mmc: waiting for cards...\n"); 
     1501        mmc_flush_scheduled_work(); 
    14991502 
    15001503        return 0; 
    15011504 
  • drivers/mmc/core/core.c

    a b static int mmc_schedule_delayed_work(str 
    7575} 
    7676 
    7777/* 
    78  * Internal function. Flush all scheduled work from the MMC work queue. 
     78 * Flush all scheduled work from the MMC work queue. 
    7979 */ 
    80 static void mmc_flush_scheduled_work(void) 
     80void mmc_flush_scheduled_work(void) 
    8181{ 
    8282        flush_workqueue(workqueue); 
    8383} 
     84EXPORT_SYMBOL(mmc_flush_scheduled_work); 
    8485 
    8586/** 
    8687 *      mmc_request_done - finish processing an MMC request 
  • include/linux/mmc/host.h

    a b static inline int mmc_card_is_powered_re 
    325325        return host->pm_flags & MMC_PM_KEEP_POWER; 
    326326} 
    327327 
     328void mmc_flush_scheduled_work(void); 
     329 
    328330#endif 
    329331 
Note: See TracBrowser for help on using the repository browser.