]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: snoc: relax voltage requirements
authorBrian Norris <briannorris@chromium.org>
Mon, 5 Nov 2018 12:35:09 +0000 (14:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Nov 2018 16:17:06 +0000 (18:17 +0200)
commit707816b5e5b6c3d095d0345cb357e3ca30fffea6
treefaa0c6b572fff074dd4d9a48af1d97f06c556942
parentbc6cf701a3a7ebb26c9753e0f9cea3345e8a41b7
ath10k: snoc: relax voltage requirements

I rarely see drivers specify precise voltage requirements like this, but
if we really have to...let's at least give a little wiggle room. Board
designs (and accompanying device trees) may not provide exactly the
voltage listed here, and we shouldn't fail to probe just because of
this.

Round these ranges down to the nearest volt, and provide a 0.05V margin.
The regulator should provide its own supported ranges, which will
helpfully intersect with these ranges.

I would just as well remove these ranges entirely, but if I understand
correctly, there's some reason that QCOM SoC's like to set zero /
non-zero voltages.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/snoc.c