source: trunk/target/linux/omap24xx/patches-3.1/810-mmc-fixes.patch @ 28676

Last change on this file since 28676 was 28676, checked in by mb, 5 years ago

omap24xx: Refresh 3.1 patches

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

    old new 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, resource_size(res)); 
    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

    old new static int mmc_schedule_delayed_work(str 
    7676} 
    7777 
    7878/* 
    79  * Internal function. Flush all scheduled work from the MMC work queue. 
     79 * Flush all scheduled work from the MMC work queue. 
    8080 */ 
    81 static void mmc_flush_scheduled_work(void) 
     81void mmc_flush_scheduled_work(void) 
    8282{ 
    8383        flush_workqueue(workqueue); 
    8484} 
     85EXPORT_SYMBOL(mmc_flush_scheduled_work); 
    8586 
    8687/** 
    8788 *      mmc_request_done - finish processing an MMC request 
  • include/linux/mmc/host.h

    old new static inline int mmc_host_cmd23(struct 
    394394{ 
    395395        return host->caps & MMC_CAP_CMD23; 
    396396} 
     397 
     398void mmc_flush_scheduled_work(void); 
     399 
    397400#endif /* LINUX_MMC_HOST_H */ 
Note: See TracBrowser for help on using the repository browser.