Ignore:
Timestamp:
Jan 22, 2017, 10:34:25 AM (4 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
5, master
Children:
36fc8b18
Parents:
029ce4d1
git-author:
Daniel Hellstrom <daniel@…> (01/22/17 10:34:25)
git-committer:
Daniel Hellstrom <daniel@…> (03/06/17 06:54:55)
Message:

leon, grspw_pkt: ISR activate shutdown work only if errintr enabled

In shared interrupt systems it might be a problem to handle the interrupt
regardless of the interrupt is enabled. Now the same approach to the
DMA RX/TX interrupt in the ISR is taken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c

    r029ce4d1 r090016a  
    28202820                        priv->stats.err_wsync++;
    28212821
    2822                 if ((priv->dis_link_on_err >> 16) & stat) {
     2822                if (((priv->dis_link_on_err >> 16) & stat) &&
     2823                    (REG_READ(&priv->regs->ctrl) & GRSPW_CTRL_IE)) {
    28232824                        /* Disable the link, no more transfers are expected
    28242825                         * on any DMA channel.
Note: See TracChangeset for help on using the changeset viewer.