]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: temperature retrieval fix
authorIgor Russkikh <Igor.Russkikh@aquantia.com>
Fri, 11 Oct 2019 13:45:19 +0000 (13:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Oct 2019 00:01:52 +0000 (17:01 -0700)
commit19db9b47166c9a1998f7f245c1b0a295fc58761c
treebe4100d49c882420aebf6597d0eadd69494b31e0
parenta47276f72ea25dd0a4a8d1dd2502bef16af1089a
net: aquantia: temperature retrieval fix

Chip temperature is a two byte word, colocated internally with cable
length data. We do all readouts from HW memory by dwords, thus
we should clear extra high bytes, otherwise temperature output
gets weird as soon as we attach a cable to the NIC.

Fixes: 2240f2b683fb ("net: aquantia: add infrastructure to readout chip temperature")
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c