diff options
author | DENG Qingfang <dqfext@gmail.com> | 2021-05-07 12:36:03 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-05-23 15:11:38 +0200 |
commit | 8d1567ba6177f24969e76733d0cee30a830b5f7e (patch) | |
tree | cb7e998fca76d7f34483f12ea24b957240b65aa7 /target | |
parent | 2d1546832357a3a8bd18680bd31dd92050e739b2 (diff) | |
download | upstream-8d1567ba6177f24969e76733d0cee30a830b5f7e.tar.gz upstream-8d1567ba6177f24969e76733d0cee30a830b5f7e.tar.bz2 upstream-8d1567ba6177f24969e76733d0cee30a830b5f7e.zip |
generic: mt7530: fix EEE patch
The higher 16-bit of EEE register was overwritten by mistake, fix that.
Fixes: 5b9ba4a93e83 ("generic: mt7530: support adjusting EEE")
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch b/target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch index b9ca691f6f..0fd4151ad0 100644 --- a/target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch +++ b/target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch @@ -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)); |