]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: tmio: support caps2 flags
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 23 May 2012 08:44:37 +0000 (10:44 +0200)
committerChris Ball <cjb@laptop.org>
Sat, 21 Jul 2012 04:02:18 +0000 (00:02 -0400)
Allow tmio mmc glue drivers to pass mmc_host::caps2 flags down to
the mmc layer.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc_pio.c
include/linux/mfd/tmio.h

index b204012fe7a9668b6e8eb9e9f7324b53388011fd..f8df02111794a6e7d234c6d9283e3caeb65a8dc7 100644 (file)
@@ -951,6 +951,7 @@ int __devinit tmio_mmc_host_probe(struct tmio_mmc_host **host,
 
        mmc->ops = &tmio_mmc_ops;
        mmc->caps = MMC_CAP_4_BIT_DATA | pdata->capabilities;
+       mmc->caps2 = pdata->capabilities2;
        mmc->max_segs = 32;
        mmc->max_blk_size = 512;
        mmc->max_blk_count = (PAGE_CACHE_SIZE / mmc->max_blk_size) *
index b332c4c7857bcab2bd232179e200754f1a8596a5..d83af39815abca0e17f8282b92791289fec15007 100644 (file)
@@ -101,6 +101,7 @@ struct tmio_mmc_host;
 struct tmio_mmc_data {
        unsigned int                    hclk;
        unsigned long                   capabilities;
+       unsigned long                   capabilities2;
        unsigned long                   flags;
        u32                             ocr_mask;       /* available voltages */
        struct tmio_mmc_dma             *dma;