[PATCH] yenta: no CardBus if IRQ fails
If probing for the correct interrupt fails on yenta bridges, the driver falls back to polling for interrupt actions. However, CardBus cards cannot be used then. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
4230dfc9c3
commit
5bc6b68a10
@@ -215,6 +215,13 @@ int pcmcia_register_socket(struct pcmcia_socket *socket)
|
||||
list_add_tail(&socket->socket_list, &pcmcia_socket_list);
|
||||
up_write(&pcmcia_socket_list_rwsem);
|
||||
|
||||
#ifndef CONFIG_CARDBUS
|
||||
/*
|
||||
* If we do not support Cardbus, ensure that
|
||||
* the Cardbus socket capability is disabled.
|
||||
*/
|
||||
socket->features &= ~SS_CAP_CARDBUS;
|
||||
#endif
|
||||
|
||||
/* set proper values in socket->dev */
|
||||
socket->dev.class_data = socket;
|
||||
@@ -448,11 +455,11 @@ static int socket_setup(struct pcmcia_socket *skt, int initial_delay)
|
||||
}
|
||||
|
||||
if (status & SS_CARDBUS) {
|
||||
if (!(skt->features & SS_CAP_CARDBUS)) {
|
||||
cs_err(skt, "cardbus cards are not supported.\n");
|
||||
return CS_BAD_TYPE;
|
||||
}
|
||||
skt->state |= SOCKET_CARDBUS;
|
||||
#ifndef CONFIG_CARDBUS
|
||||
cs_err(skt, "cardbus cards are not supported.\n");
|
||||
return CS_BAD_TYPE;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user