Skip to contentSkip to conversation

ppc32 8xx: m8xx_pcmcia_set_iomap() must support MAP_AUTOSZ

PATCH New Marcelo Tosatti 1 participant 1 message Nov 5, 2005 Pcmcia

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32 8xx: m8xx_pcmcia_set_iomap() must support MAP_AUTOSZ

From: Vitaly Bordug <[email protected]>

This fixes misconfiguration that could result in odd work of some old CF cards.

drivers/pcmcia/m8xx_pcmcia.c +1 -2
@@ -1041,8 +1041,7 @@ static int m8xx_set_io_map(struct pcmcia
 		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)