Commit Graph

29566 Commits (4cc6898f944b6e51df2f61dfb9e3fc22c39d8119)

Author SHA1 Message Date
Gabor Juhos 7aa8fbd831 ar71xx/mikrotik: enable the 74x164 GPIO driver
That will be used to drive the 74HC595 serial-in/parallel-out
8-bits shift register which can be found on some RouterBOARDs.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39702 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23 08:11:50 +00:00
Gabor Juhos 6686b2a76f ar71xx: improve platform device support in the gpio-74x164 driver
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39701 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23 08:11:49 +00:00
Gabor Juhos 55d0d060ef ar71xx: rb91x-nand: rewrite to use GPIO API
Rewrite tha rb91x-nand driver to use GPIO API to
modify the NAND control lines.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39700 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23 07:19:32 +00:00
Gabor Juhos 81b220fd51 ar71xx: rb91x: register a gpio-latch platform device
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39699 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 18:05:32 +00:00
Gabor Juhos db489b0e9b ar71xx/mikrotik: enable the GPIO latch driver
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39698 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 18:05:31 +00:00
Gabor Juhos 1b9a85db8a ar71xx: add a generic GPIO latch driver
It will be used for the Mikrotik boards.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39697 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 18:05:29 +00:00
Gabor Juhos 1a1595984e ar71xx/mikrotik: enable small sector erase in the m25p80 driver
The serial flash devices used on the ROuterBOARDs are
supporting 4KiB erase blocks. Enable the small sector
erase option in the m25p80 driver to avoid superfluous
erase/write of adjacent blocks.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39696 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 16:26:55 +00:00
Gabor Juhos 10a4d61736 ar71xx: spi-ath79: fix initial GPIO CS line setup
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 16:17:28 +00:00
Gabor Juhos 0d2744a731 ar71xx: refresh unaligned access hacks patch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 16:17:27 +00:00
Nicolas Thill 436f87b029 target/sunxi: add dependency on sunxi to kmod-wdt-sunxi
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39693 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 15:51:11 +00:00
Felix Fietkau 171273a040 gianfar: Fix reported number of sent bytes to BQL
This is a backported patch for the gianfar ethernet driver
used in TPLink 4900 v1. It is supposed to fix the error which
show up in dmesg with:
NETDEV WATCHDOG: eth0 (fsl-gianfar): transmit queue xy timed out
Full upstream patch is at: http://patchwork.ozlabs.org/patch/271242

Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 14:42:48 +00:00
Felix Fietkau a2db25951f ath5k: mark the current survey channel as being used
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39691 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:57:09 +00:00
Felix Fietkau acfc03d554 ath9k: reduce unnecessary logspam (#14940)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39690 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:48:56 +00:00
Felix Fietkau 26fc63878b ath9k: fix issues with 5/10 mhz channel bandwidth (#14916)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39689 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:43:48 +00:00
Felix Fietkau 1577a27b74 ath9k: fix issues that have been plaguing some powersave clients since the tx queueing rework (#14092)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39688 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:01:11 +00:00
Felix Fietkau 8de10cb678 ath9k: show more reset causes in debugfs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39687 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:01:07 +00:00
Felix Fietkau 17d917db53 mac80211: merge some upstream fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39686 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:01:04 +00:00
Felix Fietkau b2ce41bde8 ath9k: enable u-apsd support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39685 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:01:00 +00:00
Felix Fietkau 3fe5fa17cf ath9k: add a tx locking fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39684 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 13:00:55 +00:00
Jonas Gorski d6bd83b3b5 b53: Make b53_switch_init static
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Patchwork: http://patchwork.openwrt.org/patch/4869/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39683 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:58 +00:00
Jonas Gorski 46c26870ba b53: Add BCM53128 switch support
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Patchwork: http://patchwork.openwrt.org/patch/4867/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39682 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:56 +00:00
Jonas Gorski d6204583f4 brcm63xx: fix RG100A/DB120 usb port number
Set usbh ports to 2 to fix #15007.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39681 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:52 +00:00
Jonas Gorski 18ea539386 brcm63xx: fix number of usb ports for HW556 variants
Don't only fix up the fallback board, but also all three variants.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:50 +00:00
Jonas Gorski 9c7295404a brcm63xx: add initial support for BCM963268BU_P300 reference board
Only netboot tested, so no images or now.
GbE ports are only working in FE mode, and leds do not work.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39679 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:48 +00:00
Jonas Gorski db056cb4ad brcm63xx: add VW6339GU support
Completely untested except for booting from network; wan port
only works in 10/HD, lan1 only in 100/FD.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39678 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:46 +00:00
Jonas Gorski 2cb2948110 brcm63xx: fix number of switch ports for BCM63168/63268
BCM63168 has 6 ports (3 FE PHY, 1 GE PHY, two RGMII) and BCM63268
has two additional RGMII ports, making it 8.
Fix this by checking the chip variant and applying an appropriate
limit.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39677 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:44 +00:00
Jonas Gorski 61188a63b3 brcm63xx: F@ST2504n board support (image, base-files)
Signed-off-by: Max Staudt <openwrt.max@enpas.org>
Patchwork: http://patchwork.openwrt.org/patch/4730/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39676 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:42 +00:00
Jonas Gorski c2aafb0640 brcm63xx: F@ST2504n board support
Signed-off-by: Max Staudt <openwrt.max@enpas.org>
Patchwork: http://patchwork.openwrt.org/patch/4729/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39675 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:40 +00:00
Jonas Gorski 1375b2da00 brcm63xx: add support for Asmax AR 1004g router
Support for Asmax AR 1004g router

Signed-off-by: Adrian Feliks <mexit@o2.pl>
Patchwork: http://patchwork.openwrt.org/patch/4464/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39674 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:38 +00:00
Jonas Gorski 7c03680aea brcm63xx: Add profile and build image for Sagemcom F@ST2704V2 ADSL router
This adds profile and build image for Sagemcom F@st2704, using b43
driver.
For WiFi to work properly BCMA fallback SPROM support patch must
be applied (http://git.io/z1Ki8A).

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4212/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39673 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:35 +00:00
Jonas Gorski a37a113b81 brcm63xx: Add userspace support for Sagemcom F@ST2704V2 ADSL router
This adds userspace support for Sagemcom F@st 2704 router.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4215/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39672 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:33 +00:00
Jonas Gorski 2d30c51507 brcm63xx: Add kernel support for Sagemcom F@ST2704V2 ADSL router
This adds kernel support support for Sagemcom F@st 2704 wireless ADSL
router.
It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+
modem equipped with 64 MiB RAM and 8 MiB flash.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4266/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22 11:16:30 +00:00
Hauke Mehrtens 316cf18d11 kernel: add missing depends on kmod-mii
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39670 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-21 22:57:39 +00:00
Hauke Mehrtens a55ac4d143 kexec-tools: disable lzma support
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39652 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-21 20:06:41 +00:00
Steven Barth b7a8cc562f odhcpd: fix wrong address pool being advertised
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39651 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-21 18:02:25 +00:00
Imre Kaloz 6cab8a6c0c [base-files]: the root password should be empty for real, like before
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-21 10:39:14 +00:00
Jo-Philipp Wich 13ede72907 firewall: fix validation constraints
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39649 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-21 00:22:23 +00:00
Jo-Philipp Wich 0d02f32a17 netifd: fix validation constraints
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39648 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-21 00:17:04 +00:00
Jo-Philipp Wich 75f88cf3fe firewall: fix several ipset integration issues (#15016)
- Do not consider bitmap storage for IPv6 family sets
	- Move ipset family parameter before any additional option
	- Only emit family parameter for hash sets
	- Do not allow IPv6 iprange for IPv4 sets and vice versa

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39647 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 23:20:10 +00:00
Steven Barth 873b6c31ed 6in4: add support for he.net updatekey
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39646 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 21:36:15 +00:00
Luka Perkov 48d02a5a97 imx6: update Ventana dts
Update the Ventana device-tree to match upstream:
 - Add IMX6Q/IMX6DL variants for GW54xx/GW53xx/GW52xx/GW51xx
 - align pinctrl with upstream
 - consolidate multiple patches into one

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39644 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 17:26:10 +00:00
Luka Perkov 91ea98bba8 imx6: enable IMX6 watchdog
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39643 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 17:26:08 +00:00
Gabor Juhos 478a601601 ar71xx: rb91x: fix pll_1000 value for eth0 to avoid packet loss
When the RB91x device uses a GbE link the connection
suffers from packet loss:

  root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 20 -q
  PING 192.168.1.254 (192.168.1.254): 65507 data bytes

  --- 192.168.1.254 ping statistics ---
  20 packets transmitted, 9 packets received, 55% packet loss
  round-trip min/avg/max = 4.570/4.815/4.999 ms

Using a different PLL value fixes the issue.

  root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 100 -q
  PING 192.168.1.254 (192.168.1.254): 65507 data bytes

  --- 192.168.1.254 ping statistics ---
  100 packets transmitted, 100 packets received, 0% packet loss
  round-trip min/avg/max = 4.449/5.413/13.870 ms

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39642 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 17:07:56 +00:00
Gabor Juhos f2ee489058 ar71xx: Add support for MikroTik RB951Ui-2HnD
I noticed that the patch at http://patchwork.openwrt.org/patch/4017/
for adding support for the MikroTik RouterBOARD 951Ui-2HnD had been
abandoned because it wasn't generated and sent to the mailing list
correctly and doesn't apply as a result.  I have cleaned up this patch.

When testing this on real hardware, I also noticed that wireless didn't
work, so this patch fixes that as well.

This patch applies cleanly to SVN 39392.

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>
Patchwork: http://patchwork.openwrt.org/patch/4773/
[juhosg:
  - drop the 'rb951ui_wlan_init' function and rework the code to
    use the recently introduced rb95x_wlan_init function instead,
  - fix GPIO number of the port5 LED,
  - rename LEDs according to the standard LED naming conventions,
    and use 'rb' prefix in the names]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39641 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 17:07:51 +00:00
Gabor Juhos 5a2681e1f1 kernel/3.10: improve fq_codel hashing for 6in4 6to4 801.ad and IPIP cases
This is a backport of code to improve the quality of fq_codel
hashing for 3.10 for some encapsulated protocols.

Not needed in 3.11 and later.

Patch-by: Dave Taht <dave.taht@bufferbloat.net>
Patchwork: http://patchwork.openwrt.org/patch/4902/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39640 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 17:07:44 +00:00
Luka Perkov c6fbfa607e imx6: drop upstream rejected patch
http://article.gmane.org/gmane.linux.drivers.i2c/17891

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39639 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20 14:01:28 +00:00
Felix Fietkau aba884cec1 gcc: prevent the use of LDRD/STRD on ARMv5TE
These instructions are for 64-bit load/store. On ARMv5TE, the CPU
requires addresses to be aligned to 64-bit. When misaligned, behavior is
undefined (effectively either loads the same word twice on LDRD, or
corrupts surrounding memory on STRD).

On ARMv6 and newer, unaligned access is safe.

Removing these instructions for ARMv5TE is necessary, because GCC
ignores alignment information in pointers and does unsafe optimizations
that have shown up as bugs in various places.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39638 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19 19:20:10 +00:00
Gabor Juhos 0dc3968b6a ar71xx: add profile and build image for TP-Link TL-WDR4900 v2.0 board
Patch-by: TenNinjas <tenninjas@tenninjas.ca>
Patchwork: http://patchwork.openwrt.org/patch/4850/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39637 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19 12:15:35 +00:00
Gabor Juhos 35674d7b75 ar71xx: add user-space support for TP-Link TL-WDR4900 v2.0 board
Patch-by: TenNinjas <tenninjas@tenninjas.ca>
Patchwork: http://patchwork.openwrt.org/patch/4849/
[juhosg:
  - use the Archer C7 specific LED setup instead of adding
    identical code]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39636 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19 12:15:34 +00:00
Gabor Juhos 3375c8b727 ar71xx: add kernel support for the TP-Link TL-WDR4900 v2.0 board
Patch-by: TenNinjas <tenninjas@tenninjas.ca>
Patchwork: http://patchwork.openwrt.org/patch/4848/
[juhosg:
  - rename and refresh kernel patch,
  - merge the board setup code into mach-archer-c7.c and drop
    mach-tl-wdr49000-v2.c]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39635 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19 12:15:32 +00:00