Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a94515fa authored by Vitaly Bordug's avatar Vitaly Bordug Committed by Dominik Brodowski
Browse files

[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: default avatarVitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: default avatarMarcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 3b27e942
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)