diff options
-rw-r--r-- | drivers/firewire/ohci.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index 07deac77bc13..9743a405e69c 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
@@ -1594,7 +1594,7 @@ static int ohci_enable(struct fw_card *card, | |||
1594 | { | 1594 | { |
1595 | struct fw_ohci *ohci = fw_ohci(card); | 1595 | struct fw_ohci *ohci = fw_ohci(card); |
1596 | struct pci_dev *dev = to_pci_dev(card->device); | 1596 | struct pci_dev *dev = to_pci_dev(card->device); |
1597 | u32 lps; | 1597 | u32 lps, irqs; |
1598 | int i, ret; | 1598 | int i, ret; |
1599 | 1599 | ||
1600 | if (software_reset(ohci)) { | 1600 | if (software_reset(ohci)) { |
@@ -1648,16 +1648,6 @@ static int ohci_enable(struct fw_card *card, | |||
1648 | reg_write(ohci, OHCI1394_PhyUpperBound, 0x00010000); | 1648 | reg_write(ohci, OHCI1394_PhyUpperBound, 0x00010000); |
1649 | reg_write(ohci, OHCI1394_IntEventClear, ~0); | 1649 | reg_write(ohci, OHCI1394_IntEventClear, ~0); |
1650 | reg_write(ohci, OHCI1394_IntMaskClear, ~0); | 1650 | reg_write(ohci, OHCI1394_IntMaskClear, ~0); |
1651 | reg_write(ohci, OHCI1394_IntMaskSet, | ||
1652 | OHCI1394_selfIDComplete | | ||
1653 | OHCI1394_RQPkt | OHCI1394_RSPkt | | ||
1654 | OHCI1394_reqTxComplete | OHCI1394_respTxComplete | | ||
1655 | OHCI1394_isochRx | OHCI1394_isochTx | | ||
1656 | OHCI1394_postedWriteErr | OHCI1394_cycleTooLong | | ||
1657 | OHCI1394_cycleInconsistent | OHCI1394_regAccessFail | | ||
1658 | OHCI1394_masterIntEnable); | ||
1659 | if (param_debug & OHCI_PARAM_DEBUG_BUSRESETS) | ||
1660 | reg_write(ohci, OHCI1394_IntMaskSet, OHCI1394_busReset); | ||
1661 | 1651 | ||
1662 | ret = configure_1394a_enhancements(ohci); | 1652 | ret = configure_1394a_enhancements(ohci); |
1663 | if (ret < 0) | 1653 | if (ret < 0) |
@@ -1723,6 +1713,18 @@ static int ohci_enable(struct fw_card *card, | |||
1723 | return -EIO; | 1713 | return -EIO; |
1724 | } | 1714 | } |
1725 | 1715 | ||
1716 | irqs = OHCI1394_reqTxComplete | OHCI1394_respTxComplete | | ||
1717 | OHCI1394_RQPkt | OHCI1394_RSPkt | | ||
1718 | OHCI1394_isochTx | OHCI1394_isochRx | | ||
1719 | OHCI1394_postedWriteErr | | ||
1720 | OHCI1394_selfIDComplete | | ||
1721 | OHCI1394_regAccessFail | | ||
1722 | OHCI1394_cycleInconsistent | OHCI1394_cycleTooLong | | ||
1723 | OHCI1394_masterIntEnable; | ||
1724 | if (param_debug & OHCI_PARAM_DEBUG_BUSRESETS) | ||
1725 | irqs |= OHCI1394_busReset; | ||
1726 | reg_write(ohci, OHCI1394_IntMaskSet, irqs); | ||
1727 | |||
1726 | reg_write(ohci, OHCI1394_HCControlSet, | 1728 | reg_write(ohci, OHCI1394_HCControlSet, |
1727 | OHCI1394_HCControl_linkEnable | | 1729 | OHCI1394_HCControl_linkEnable | |
1728 | OHCI1394_HCControl_BIBimageValid); | 1730 | OHCI1394_HCControl_BIBimageValid); |