Skip to content

Commit

Permalink
[PATCH] m8xx_pcmcia: support MAP_AUTOSZ required for CF cards
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vitaly Bordug authored and Dominik Brodowski committed Jan 5, 2006
1 parent 3b27e94 commit a94515f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pcmcia/m8xx_pcmcia.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a94515f

Please sign in to comment.