• David Brownell's avatar
    mmc driver sets up mmc1 too · 245ed17f
    David Brownell authored
    Finish basic updates to let the DaVinci MMC driver talk to
    the second MMC controller on dm355:
    
     - Update the MMC driver to use clk_get() correctly
        * use logical "mmc" clockname
        * fix its error handling logic (!)
    
     - Bugfixes to probe():
        * call mmc_add_host() only *after* everything is set up
        * check for mmc_add_host() errors
        * call request_irq() only after the host was added
        * start timer polling only after the host was added
    
     - And some cosmetic bits:
        * use more modern timer setup calls
        * request_irq() says mmc0 or mmc1, matching custom
    
    So now it comes up on both MMC controllers, and starts collecting
    interrupts on the second ... so there's progress.  But it can't
    see a card in either slot of a dm355 yet.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
    245ed17f
davinci_mmc.c 38.1 KB