mt76x0: phy: use mt76_poll_msec in mt76x0_phy_temp_sensor
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Sat, 27 Oct 2018 19:06:25 +0000 (21:06 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:42 +0000 (12:21 +0100)
commit0464cbfc36ac35700d572925769d7c73b3744798
tree7e57a10886ee7870c416a26830523c2b32c29217
parentb983a5b900627faa49cf37e101d65b56e941c740
mt76x0: phy: use mt76_poll_msec in mt76x0_phy_temp_sensor

Use mt76_poll_msec utility routine for CORE_R34 register polling
instead of mt76_poll in order to allow the hw to complete requested
calibration since on slow devices (e.g. mt7620 based boards) calibration
takes longer than 2ms

Fixes: 66a34c66e0cb ("mt76x0: phy: add phy/vco temperature compensation")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c