]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] m8xx_pcmcia: support MAP_AUTOSZ required for CF cards
authorVitaly Bordug <vbordug@ru.mvista.com>
Thu, 8 Dec 2005 15:53:20 +0000 (13:53 -0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Thu, 5 Jan 2006 23:27:48 +0000 (00:27 +0100)
This fixes misconfiguration that could result in odd work of some old CF
cards.

Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/m8xx_pcmcia.c

index 570e4e868b246adfe76891c191aff5a09cda38b2..ddaab13d21bd593f1ecc4d74be9ccbc6754653db 100644 (file)
@@ -1012,8 +1012,7 @@ static int m8xx_set_io_map(struct pcmcia_socket *sock, struct pccard_io_map *io)
                if(io->flags & MAP_WRPROT)
                        reg |= M8XX_PCMCIA_POR_WRPROT;
 
-               /*if(io->flags & (MAP_16BIT | MAP_AUTOSZ))*/
-               if(io->flags & MAP_16BIT)
+               if(io->flags & (MAP_16BIT | MAP_AUTOSZ))
                        reg |= M8XX_PCMCIA_POR_16BIT;
 
                if(io->flags & MAP_ACTIVE)