Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6d81e1e in mainline


Ignore:
Timestamp:
2015-05-12T20:14:53Z (5 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
7edfde9
Parents:
59649f3
Message:

fix ns8250 driver regression
empty IRQ pseudocode is usually useless, because it does not accept any interrupts
(thx Pablo Antonio for pointing out the issue)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ns8250/ns8250.c

    r59649f3 r6d81e1e  
    175175        bool removed;
    176176} ns8250_t;
     177
     178static irq_cmd_t ns8250_irq_cmds[] = {
     179        { .cmd = CMD_ACCEPT }
     180};
     181
     182static irq_code_t ns8250_irq_code = {
     183        .rangecount = 0,
     184        .cmdcount = sizeof(ns8250_irq_cmds) / sizeof(irq_cmd_t),
     185        .cmds = ns8250_irq_cmds
     186};
    177187
    178188/** Obtain soft-state structure from device node */
     
    783793}
    784794
     795
     796
    785797/** Register the interrupt handler for the device.
    786798 *
     
    790802{
    791803        return register_interrupt_handler(ns->dev, ns->irq,
    792             ns8250_interrupt_handler, NULL);
     804            ns8250_interrupt_handler, &ns8250_irq_code);
    793805}
    794806
Note: See TracChangeset for help on using the changeset viewer.