apm821xx: speed up ath9k-caldata extraction
authorChristian Lamparter <chunkeey@gmail.com>
Tue, 19 Feb 2019 17:52:35 +0000 (18:52 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 2 Mar 2019 11:59:48 +0000 (12:59 +0100)
commitffd8ca18cc292c8dd7b7d7df2d4c605f281bede1
tree5cf60e5e3343307179ea32c1641584a89d989dc6
parent21e90685b624003c9b91d69420245d0164eddc8d
apm821xx: speed up ath9k-caldata extraction

Reading and writing to and from flash storage is slow and currently,
the ath10kcal_extract() scripts are even more at an disadvantage
because they use a block size of 1 to be able skip.

This patch reworks the extraction scripts to be much faster and
efficient by reading and writing the calibration data in possibly
one big block.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom