Skip to content

Commit

Permalink
mt7603: adjust rx hang watchdog for MT7628
Browse files Browse the repository at this point in the history
The MT7628 vendor driver checks a different DMA debug register compared to
MT7603.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed May 19, 2018
1 parent 0b8d1dd commit 20c0766
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mt7603_mac.c
Expand Up @@ -1284,6 +1284,9 @@ static u32 mt7603_dma_debug(struct mt7603_dev *dev, u8 index)

static bool mt7603_rx_fifo_busy(struct mt7603_dev *dev)
{
if (is_mt7628(dev))
return mt7603_dma_debug(dev, 9) & BIT(9);

return mt7603_dma_debug(dev, 2) & BIT(8);
}

Expand Down

0 comments on commit 20c0766

Please sign in to comment.