Skip to content

Commit ff10fca

Browse files
author
Dominik Brodowski
committed
pcmcia: IOCARD is also required for using IRQs
Dave Hinds pointed out to me that 37979e1 will break b43 and ray_cs, as IOCARD is not -- as the name would suggest -- only needed for cards using IO ports. Instead, as it re-deines several pins, it is also required for using interrupts. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
1 parent d4429f6 commit ff10fca

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/pcmcia/pcmcia_resource.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ int pcmcia_enable_device(struct pcmcia_device *p_dev)
514514
}
515515

516516
/* Pick memory or I/O card, DMA mode, interrupt */
517-
if (p_dev->_io)
517+
if (p_dev->_io || flags & CONF_ENABLE_IRQ)
518+
flags |= CONF_ENABLE_IOCARD;
519+
if (flags & CONF_ENABLE_IOCARD)
518520
s->socket.flags |= SS_IOCARD;
519521
if (flags & CONF_ENABLE_SPKR) {
520522
s->socket.flags |= SS_SPKR_ENA;

‎include/pcmcia/ds.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ void pcmcia_disable_device(struct pcmcia_device *p_dev);
259259
#define CONF_ENABLE_SPKR 0x0002
260260
#define CONF_ENABLE_PULSE_IRQ 0x0004
261261
#define CONF_ENABLE_ESR 0x0008
262+
#define CONF_ENABLE_IOCARD 0x0010 /* auto-enabled if IO resources or IRQ
263+
* (CONF_ENABLE_IRQ) in use */
262264

263265
/* flags used by pcmcia_loop_config() autoconfiguration */
264266
#define CONF_AUTO_CHECK_VCC 0x0100 /* check for matching Vcc? */

0 commit comments

Comments
 (0)