This re-uses the "number of GPIOs" which are already configured per ath9k chip/revision during chip initialization in hw.c's ath9k_hw_fill_cap_info(). It also sets the parent device of the GPIO controller which is not only good practice, but it will also allow using the ath9k device as GPIO controller in devicetree (once the patches for this have landed - these are currently in discussion upstream).
As preparation for this all mac80211 patches are refreshed. Changes since v1: - rebased on top of nbd's tree which includes a mac80211 update: https://git.lede-project.org/?p=lede/nbd/staging.git;a=commit;h=42b1e020a7ceb2992ab5597c74e8e892bf7fbc2b Martin Blumenstingl (3): kernel: mac80211: fold the AR9280 GPIO patch into the ath9k GPIO patch kernel: mac80211: enable the gpio controller for all ath9k devices kernel: mac80211: set the parent of the ath9k gpio_chip Mathias Kresin (1): mac80211: refresh patches .../100-remove-cryptoapi-dependencies.patch | 90 ++++++++++++---------- .../mac80211/patches/530-ath9k_extra_leds.patch | 12 +-- .../patches/548-ath9k_enable_gpio_chip.patch | 27 +++---- .../patches/549-ath9k_enable_gpio_buttons.patch | 10 +-- .../patches/550-ath9k_add_ar9280_gpio_chip.patch | 27 ------- ...mfmac-register-wiphy-s-during-module_init.patch | 2 +- .../patches/910-01-add-support-for-mt7620.patch | 6 +- 7 files changed, 75 insertions(+), 99 deletions(-) delete mode 100644 package/kernel/mac80211/patches/550-ath9k_add_ar9280_gpio_chip.patch -- 2.9.0 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev