From: Vitaly Bordug Date: Thu, 8 Dec 2005 15:53:20 +0000 (-0200) Subject: [PATCH] m8xx_pcmcia: support MAP_AUTOSZ required for CF cards X-Git-Tag: upstream/snapshot3+hdmi~43593^2~16^2~2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a94515fa1f1609249dbebcfb93181ad0ba4b285a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [PATCH] m8xx_pcmcia: support MAP_AUTOSZ required for CF cards This fixes misconfiguration that could result in odd work of some old CF cards. Signed-off-by: Vitaly Bordug Signed-off-by: Marcelo Tosatti Signed-off-by: Dominik Brodowski --- diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c index 570e4e8..ddaab13 100644 --- a/drivers/pcmcia/m8xx_pcmcia.c +++ b/drivers/pcmcia/m8xx_pcmcia.c @@ -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)