diff options
| author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-08-01 16:32:32 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-08-01 20:09:09 -0700 |
| commit | 06d7b5c3acee7b42cd9aa47165587b9c1fb992d3 (patch) | |
| tree | 33b0901b953ece0409d6c0b2f59062a122506e95 /scripts/stackusage | |
| parent | 7b9cc73843e89ea1ac215511c13c259a70d1b4f7 (diff) | |
| download | cachepc-linux-06d7b5c3acee7b42cd9aa47165587b9c1fb992d3.tar.gz cachepc-linux-06d7b5c3acee7b42cd9aa47165587b9c1fb992d3.zip | |
net: dsa: qca8k: fix EEE init
The qca8k obviously copied code from the sf2 driver as how to set EEE:
if (e->eee_enabled) {
p->eee_enabled = qca8k_eee_init(ds, port, phydev);
if (!p->eee_enabled)
ret = -EOPNOTSUPP;
}
But it did not use the same logic for the EEE init routine, which is
"Returns 0 if EEE was not enabled, or 1 otherwise". This results in
returning -EOPNOTSUPP on success and caching EEE enabled on failure.
This patch fixes the returned value of qca8k_eee_init.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
