Re: [PATCH] ath10k: Fix possible wrong rx_busy time reporting in QCA4019

2016-07-03 Thread Julian Calaby
Hi All, On Fri, Jul 1, 2016 at 9:07 PM, Vasanthakumar Thiagarajan wrote: > As hw cycle counters in QCA4019 wraparound independantly in QCA4019 > it is possible cycle counter and rx clear counter would wraparound > at the same time. Current logic assumes only one of the counters > would wraparound

[PATCH] ath10k: Fix possible wrong rx_busy time reporting in QCA4019

2016-07-01 Thread Vasanthakumar Thiagarajan
As hw cycle counters in QCA4019 wraparound independantly in QCA4019 it is possible cycle counter and rx clear counter would wraparound at the same time. Current logic assumes only one of the counters would wraparound at anytime. Fix this by moving 'else' part to another 'if'. Fixes: 8e100354a98 ("