From patchwork Wed Feb 27 22:18:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Schmutzler X-Patchwork-Id: 1049165 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adrianschmutzler.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HgHLxIHG"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 448qpD5MbXz9sBF for ; Thu, 28 Feb 2019 09:18:44 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qPU7h9W5LJg/w1vz69rSnZbnll/eaq369DdPvN2UTys=; b=HgHLxIHGAkiP7f zXg7BDAoZbEw0FyFJ6sn+3O4aovOz7DuQfFLbiRNJiRymqfys3HcG2/dgS3VkjEL+by1nopI/oqdE we+iWFTJU88Hbb0MsjqbB+ok8+lWsftiZOqSBpy6BAp2WafSCWJ7lcLLENIDYfLiRaqmSpJPEJsE0 r7R/DiVFEsm9tYYt2GGFtg8YDKgRF/6C3iksiLBn9fSNRMMGCC+e4KaH+Z51jKtmGxoHjoK1YLdw/ dPvnsNxom0sz7zW9vMu/SdeZCY908t6pnBYGFtB0v7vcv4e7+4VvUNi3rVZCAr8xVsfCEm3OKi9s7 cN+cOnYOSrdQgmCGMEig==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gz7XA-0004De-RS; Wed, 27 Feb 2019 22:18:36 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gz7Wr-0003ny-KU for openwrt-devel@lists.openwrt.org; Wed, 27 Feb 2019 22:18:20 +0000 Received: from localhost.localdomain ([188.194.105.77]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mj831-1hSh7Z462X-00fAqv for ; Wed, 27 Feb 2019 23:18:13 +0100 From: Adrian Schmutzler To: openwrt-devel@lists.openwrt.org Date: Wed, 27 Feb 2019 23:18:03 +0100 Message-Id: <20190227221809.1697-1-freifunk@adrianschmutzler.de> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:Bbk/vjRj/lMeRrY+26aY7+QqbIAngt3l8jv1hj79DI+cRquXA9D dIOWgSKUi6fYBZnf2vTvQr+BViY9hbuFcpP0hyFARFD1Soj2EyPFGk2RBPF+XdsPhXensmJ 950pRiSK2VbMte5fcm8vokSW8I1tGS1M//VPvAolM2OaFy6Zj1cgJbqCdFRQDIkd80HZ8tr nUYPocJ2i7wlgHLcIXrAQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:0GXaQf0MyQQ=:MlXEfX/vpGibUt2dNNie0B zRtDByi0jheeYLfkl4Hr7hns6f5sKbjIkCEv+StY3TMHLA+dkuc6RT4chV+6wlwUwnfhZU6SA 36BhflXJUY8pdm5rUH+TWyZHwZ9PBfVHP6xsAvROSfM9l6N/p6oYGHA95oF/cfIT2/lSxg5Kn v78GiTFRJ2ZndQtZnDMYE/8Mvx7YFKB+qblfnTAQlbNsBnbt77qZRC4fYSabC/y9ja+rFb+EL geTQ/XRaEwj1n1KQsl4Gs3J5zmVw+BalL3rYTOqvv6zod86lqMJsnrFdueMan/ihrqEyHF72L cMspzIhELbH71SWy9cD7tmhjPDMMTfN1Py4zyaR8JDuZSUW6rnR98Saw4j3JehVUnND0tbe6e 50I0vu5qkpftB2CwcJ0HTnjMzdBj6bXfOei/xBqgq0z6ccnyX9ewUxmddjhRRpXacu9I01zp4 s/17D0LSWIkBIUgGalmtIOPy1Ujs0u6r8JlM4lCk8nQnu5BndHqpSJHIPEf2zcvHSmheCtufu oMyqlCLQyD9Y9hmm1cBX1RK6GwxRigCTQb+frit1Xh0xrLuwIQ2bWx8H1P1KBLoE/SwRpcQ0U jt5EVZD3O8jvgi61HZvsBkrdxteG3vULZcuD/xQxz/iMNyWo0Ck0Cgk65oyxj1kL1VpzRo9A2 zRmsXDZTr1mfIL8CI78+TkxuchCl5zN1qHw5/a60P7DmqW33chaxGrMPrzrjLIS7u2EKgwafp +uaM8nd+1bUgAOoIxKi6WqnYYGLGVX2Nrrg+pfRvMglCqzI1CtdANZ0DWa6EEHLdEU7SSk2EN c5d52k6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190227_141817_970787_EBC51E8C X-CRM114-Status: GOOD ( 12.24 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [217.72.192.75 listed in list.dnswl.org] Subject: [OpenWrt-Devel] [PATCH v3 0/6] Speed up and merge caldata/eeprom extraction X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org 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. It replaces my earlier patchsets - Speed up caldata/eeprom handling for ar71xx/ath79 - Speed up caldata/eeprom handling with common file 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. 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