Changeset 7edfde9 in mainline for uspace/drv/char/ns8250/ns8250.c


Ignore:
Timestamp:
2015-05-13T02:22:50Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0683992
Parents:
6d81e1e
Message:

fix the device driver regressions in a generic way
therefore the previous fix (revision 2329) can be reverted
the root cause of the regression was a forgotten fallback to default_ucode that disappeared in the refactoring of revision 2170 (mea culpa)

File:
1 edited

Legend:

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

    r6d81e1e r7edfde9  
    175175        bool removed;
    176176} ns8250_t;
    177 
    178 static irq_cmd_t ns8250_irq_cmds[] = {
    179         { .cmd = CMD_ACCEPT }
    180 };
    181 
    182 static 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 };
    187177
    188178/** Obtain soft-state structure from device node */
     
    793783}
    794784
    795 
    796 
    797785/** Register the interrupt handler for the device.
    798786 *
     
    802790{
    803791        return register_interrupt_handler(ns->dev, ns->irq,
    804             ns8250_interrupt_handler, &ns8250_irq_code);
     792            ns8250_interrupt_handler, NULL);
    805793}
    806794
Note: See TracChangeset for help on using the changeset viewer.