Skip to content

Commit

Permalink
generic: mt7530: fix EEE patch
Browse files Browse the repository at this point in the history
The higher 16-bit of EEE register was overwritten by mistake, fix that.

Fixes: 5b9ba4a ("generic: mt7530: support adjusting EEE")
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
  • Loading branch information
LGA1150 authored and hauke committed May 23, 2021
1 parent 2d15468 commit 8d1567b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -66,7 +66,7 @@ Signed-off-by: René van Dorst <opensource@vdorst.com>
+ eeecr &= 0xFFFF0000;
+ if (!e->tx_lpi_enabled)
+ eeecr |= LPI_MODE_EN;
+ eeecr = LPI_THRESH(e->tx_lpi_timer);
+ eeecr |= LPI_THRESH(e->tx_lpi_timer);
+ mt7530_write(priv, MT7530_PMEEECR_P(port), eeecr);
+ } else {
+ priv->eee_enable &= ~(BIT(port));
Expand Down

0 comments on commit 8d1567b

Please sign in to comment.