mbox series

[OpenWrt-Devel,v4,0/6] Speed up and merge caldata/eeprom extraction

Message ID 20190301144022.1984-1-freifunk@adrianschmutzler.de
Headers show
Series Speed up and merge caldata/eeprom extraction | expand

Message

Adrian Schmutzler March 1, 2019, 2:40 p.m. UTC
This patchset goes on with the attempt to
- speed up caldata/eeprom handling by reading blockwise,
- merge the similar functions in one library.

It depends on the patch "ath79: speed up ath9k-eeprom extraction"
by Dmitry Tunin to be applied beforehand.

Patchset v4 is just a rebase due to recently pushed hardware additions.

The patches 1 to 4 have been run-tested (all at once) on the following
devices:
TP-Link WDR4300 (ar71xx and ath79)
Ubnt AC Mesh (ath79)
TP-Link CPE210 v2 (ar71xx)

The patches 5 and 6 are optional. Since a have no ipq40xx or ramips
device at hand, I cannot test them. Thus, one can apply patches 1 to 4
and then easily do patches 5 and 6 if/after they are tested. (So they
do not hold up the earlier patches.)
However, it would be nice if someone did test ramips and ipq40xx.

If the eeprom.sh merge is not desired, but the speedup is, it is also
possible to just merge patches 1 to 3.

Adrian Schmutzler (6):
  ath79: Speed up caldata/eeprom handling
  ar71xx: Speed up caldata/eeprom handling
  ar71xx: Speed up mtd extraction in ar71xx.sh
  ar71xx/ath79: Merge eeprom/caldata extraction into eeprom.sh
  ipq40xx: Make use of common eeprom.sh library for caldata
  ramips: Merge ath9k-eeprom extraction to common eeprom.sh

 package/base-files/files/lib/functions/eeprom.sh   | 91 ++++++++++++++++++++
 .../etc/hotplug.d/firmware/10-ath9k-eeprom         | 99 +++++-----------------
 .../etc/hotplug.d/firmware/11-ath10k-caldata       | 80 ++++++-----------
 target/linux/ar71xx/base-files/lib/ar71xx.sh       |  4 +-
 .../etc/hotplug.d/firmware/10-ath9k-eeprom         | 86 ++++++-------------
 .../etc/hotplug.d/firmware/11-ath10k-caldata       | 62 ++++----------
 .../etc/hotplug.d/firmware/11-ath10k-caldata       | 82 +++++-------------
 .../etc/hotplug.d/firmware/10-rt2x00-eeprom        | 32 ++-----
 8 files changed, 209 insertions(+), 327 deletions(-)
 create mode 100644 package/base-files/files/lib/functions/eeprom.sh

Comments

Petr Štetiar March 2, 2019, 10:52 a.m. UTC | #1
Adrian Schmutzler <freifunk@adrianschmutzler.de> [2019-03-01 15:40:16]:

> This patchset goes on with the attempt to
> - speed up caldata/eeprom handling by reading blockwise,
> - merge the similar functions in one library.
> 
> It depends on the patch "ath79: speed up ath9k-eeprom extraction"
> by Dmitry Tunin to be applied beforehand.

I've successfuly runtested following build tree:

 ramips: Merge ath9k-eeprom extraction to common eeprom.sh (Adrian Schmutzler)
 ipq40xx: Make use of common eeprom.sh library for caldata (Adrian Schmutzler)
 ar71xx/ath79: Merge eeprom/caldata extraction into eeprom.sh (Adrian Schmutzler)
 ar71xx: Speed up mtd extraction in ar71xx.sh (Adrian Schmutzler)
 ar71xx: Speed up caldata/eeprom handling (Adrian Schmutzler)
 ath79: Speed up caldata/eeprom handling (Adrian Schmutzler)
 ath79: speed up ath9k-eeprom extraction (Dmitry Tunin)
 oxnas: switch to DTS aliases for LEDs and use generic diag.sh (Daniel Golle)

on following devices:

 archer-c7-v5 (ar71xx)
 zyxel,nbg6617 (ipq40xx)
 ubnt,bullet-m-xw (ath79)
 bdcom,wap2100-sk (ramips)

Tested-by: Petr Štetiar <ynezz@true.cz>