Commit Graph

1783 Commits (e952654f0b002e6494cfdb705ee8f0646798dd6c)

Author SHA1 Message Date
Felix Fietkau 48123b0ce0 kernel: add missing config symbol
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46007
9 years ago
Felix Fietkau 42dcce7e4a kernel: add missing config symbol (#19870)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45992
9 years ago
Felix Fietkau 4a9d726200 ar8216: Fix problem with AR8337 MAC swap handling
AR8337 supports a configuration bit to swap MAC0 and MAC6.
Currently this is set in general if an AR8337 is detected and causes
issues with devices using an AR8334 (internally an AR8337, just
less chip pins).
And it might even cause issues with AR8337-based devices with
different board designs.

Swapping the MAC's however isn't needed for AR8337 in general.
It's just needed in case of certain board designs (affected devices
seem to be based on Atheros reference board AP135/136-010).
Therefore this configuration bit should be moved to platform data.

The patch includes the needed changes to the device initialization
code of affected devices. Hopefully I didn't miss any ..

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 45970
9 years ago
Jonas Gorski 9fbd6d0ba0 b53: fix memory out of bounds access on 64 bit targets
On device reset the sizes for the vlan and port tables were wrongly
calculated based on the pointer size instead of the struct size. This
causes buffer overruns on 64 bit targets, resulting in panics.

Fix this by dereferencing the pointers.

Reported-by: Fedor Konstantinov <blmink@mink.su>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45938
9 years ago
Jonas Gorski d24d5412ff b53: widen stp state mask to 3 bits (instead of 2)
At least on my b53 chip, the mask is 3 bits wide, and because
of this some STP states are not set properly and discarded when read.

Maybe for some other chips it makes sense to have just 2 bits width,
but I don't have other versions around to test/validate.

If that's the case then maybe we could add another STP state mask.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45937
9 years ago
Rafał Miłecki a1340b5cce kernel: backport config-related bcma patches from 4.2
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45927
9 years ago
Felix Fietkau b9ebf29fbd kernel: move a symbol from the ipq806x config to generic to prevent it from being nuked by make kernel_oldconfig
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45920
9 years ago
Felix Fietkau 5a64d5337b kernel: adjust mips highmem offset to avoid the need for -mlong-calls on systems with >256M RAM
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45891
9 years ago
Rafał Miłecki 6bc9e00e94 kernel: backport ssb fix for WRT350N v1 (BCM4705) reboots
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45865
9 years ago
John Crispin 50da78705a kernel: upstream fix: mount overlayfs r/o if workdir cannot be created
move the patch to the proper folder

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45848
9 years ago
John Crispin fe844bf0b4 kernel: add missing STMMAC options in generic configs
STMMAC_PLATFORM and STMMAC_PCI have been added recently in the kernel,
but show up only when STMMAC driver is enabled. So se'll add it in the
generic config, so the kernel build doesn't stall whenever we enable
this driver.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 45828
9 years ago
Felix Fietkau 388404764d kernel: bridge: backport two snooping related patches
With this patch the following two patches are backported:

* bridge: fix parsing of MLDv2 reports
* bridge: allow setting hash_max + multicast_router if interface is down

The former one is an important fix which got just applied to the net-tree
and is queued for stable. The latter is a patch which is needed to make
the hash_max and multicast_router attributes configurable through
netifd.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>

SVN-Revision: 45783
9 years ago
Imre Kaloz 588acc2cba generic/4.0: update to 4.0.4
Update kernel sources and refresh some patches.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45761
9 years ago
Jonas Gorski 4e2b4d8072 kernel: add missing generic config symbol
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45714
9 years ago
Jonas Gorski 76d079204d kernel: update 3.18 to 3.18.14
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.12
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.13
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.14

Build tested on brcm63xx and ipq806x, runtested on brcm63xx.

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

SVN-Revision: 45711
9 years ago
Steven Barth 53098a8aa5 generic/4.0: fix error during kernel patch application
Commit 5168c9a5702648eb690d32ec821647aca80aeba9 introduced a regression
during patch application on the 4.0 kernel. Some of the patched content
doesn't match the actual code, therefore leading to the following error:
  Applying patch generic/667-ipv6-Fixed-source-specific-default-route-handling.patch
  patching file net/ipv6/ip6_output.c
  Hunk #1 FAILED at 886.
  1 out of 1 hunk FAILED -- rejects in file net/ipv6/ip6_output.c
  patching file net/ipv6/route.c
  Hunk #1 succeeded at 2247 (offset 2 lines).
  Patch generic/667-ipv6-Fixed-source-specific-default-route-handling.patch does not apply (enforce with -f)

This change just adapts the actual patch to fix what is in kernel 4.0
and make it apply cleanly.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 45705
9 years ago
Steven Barth 1296956908 linux: backport IPv6 SAS fixes for source-specific routes
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45699
9 years ago
Rafał Miłecki 260383aeb1 kernel: backport struct ssb_sprom changes submitted by MIPS tree
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45677
9 years ago
Rafał Miłecki e93c68eedd b53: Allow using all ports on BCM53012
This chipset has at least 8 usable ports, e.g. Netgear R8000 has ports
5, 7 and 8 connected to Ethernet interfaces:
vlan1ports=0 1 2 3 5 7 8*
vlan2ports=4 8u
Port 6 seems to be always disabled.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45676
9 years ago
Felix Fietkau ac0e2479dc mtd: remove the warning about read-only caused by size vs. block boundary mismatch
Since the kernel/rootfs split handling was modified 2 years ago by r37283 (
https://dev.openwrt.org/changeset/37283 ) and by the subsequent checkins,
users have seen rather scary mtd errors in the log at every boot. The message
ends "-- forcing read-only", which looks a bit error-like. That error has
been mentioned in some forum threads, when users have noticed this message
instead of some actual error.

[    2.940000] 0x000000070000-0x000000ff0000 : "firmware"
[    2.970000] 2 netgear-fw partitions found on MTD device firmware
[    2.970000] 0x000000070000-0x000000188440 : "kernel"
[    2.980000] mtd: partition "kernel" must either start or end on erase
block boundary or be smaller than an erase block -- forcing read-only
[    2.990000] 0x000000188440-0x000000ff0000 : "rootfs"

The patch removes the rather useless warning message.

signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 45669
9 years ago
Felix Fietkau 9ebb99cb98 kernel: fix regression in backtrace module info change (#19631)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45665
9 years ago
Felix Fietkau 9913b6a90a generic: add CRYPTO_DEV_QCE option to default config
This option has been added in kernel 3.17. It shows-up only when both
ARCH_QCOM and CRYPTO are enabled. So we'll disable these two by default
to avoid stalling the build when these conditions are met.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 45658
9 years ago
Felix Fietkau 53827cdc82 kernel: when KALLSYMS is disabled, print module address + size for matching backtrace entries
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45655
9 years ago
Felix Fietkau a13783f8c3 kernel: fix pppoe disconnect issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45653
9 years ago
Rafał Miłecki 3a6cdac37c kernel: backport first bcma patches from 4.2
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45652
9 years ago
Felix Fietkau dbb99e937a kernel: add accidentally left out fib trie backport patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45650
9 years ago
Luka Perkov 3209b13b3f generic: refresh patches
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45648
9 years ago
Felix Fietkau 333579e527 kernel: backport upstream usbnet fix (fixes #19455)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45621
9 years ago
Imre Kaloz aea93173d1 generic/4.0: update to 4.0.1
Also refresh one patch.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45601
9 years ago
Imre Kaloz f86c07d8d4 The ability to read MAC addresses from MTD is useful for other targets besides ramips and lantiq as well.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45596
9 years ago
Felix Fietkau 51d0476ab0 kernel: implement RENAME_EXCHANGE support for jffs2 - overlayfs requires it
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45580
9 years ago
Rafał Miłecki e175b199f8 kernel: backport rest of bgmac patches to 4.0
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45573
9 years ago
Rafał Miłecki 6bfb1a4b11 kernel: backport few bgmac patches to 4.0
I still need to test following patch before backporting:
bgmac: leave interrupts disabled as long as there is work to do

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45571
9 years ago
Imre Kaloz c7d5fee204 generic/4.0: bump to final version
Linux 4.0 was released on 2014-04-12

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45559
9 years ago
Felix Fietkau 23f9c83594 kernel: backport an upstream PPPoE shutdown fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45548
9 years ago
John Crispin ca7fe0d4c6 kernel: fix generic/3.18 wpan symbols
-removed symbol because it should be handled by wpan.mk
-add missing FAKEHARD symbol (this symbol is removed in Kernel 4.0)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 45530
9 years ago
Jonas Gorski 0dfba24e9a kernel: refresh generic patches
Refresh patches to remove the trailing whitespaces caused by an old
diffutils version on osx.

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

SVN-Revision: 45506
9 years ago
Felix Fietkau 582b20c4e2 kernel: accidentally committed a few patches in the wrong place, move them
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45468
9 years ago
Felix Fietkau c9aeb21405 bcm53xx: add power button for Buffalo WZR-1750DHP
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45466
9 years ago
Felix Fietkau a7f768bdc8 bcm53xx: add USB LED for Buffalo WZR-1750DHP
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45465
9 years ago
Felix Fietkau 5c9c670616 kernel: update bgmac patches to the latest version submitted
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45431
9 years ago
Felix Fietkau d0ba3bb1e2 kernel: finally remove layer7 filter support
it has been non-functional for years and caused numerous memleaks and
crashes for people that tried to enable it.
it has no maintained upstream source, and it does not look like it's
going to be fixed any time soon

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

SVN-Revision: 45423
9 years ago
Felix Fietkau 87f854059a kernel: fix more bgmac dma init/cleanup issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45422
9 years ago
Felix Fietkau 1bf8e555bb kernel: sync bgmac changes with latest upstream submission
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45420
9 years ago
Felix Fietkau 6bc743ef6f kernel: add bgmac fixes for bcm53xx (fix ethernet bringup on a bcm4709 based device)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45417
9 years ago
Felix Fietkau afafbc0d74 kernel: bgmac: add more DMA related fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45407
9 years ago
Rafał Miłecki 06ac2f5c74 b53: improve overriding CPU port state on BCM5301X
On BCM5301X there are two different cases to handle: CPU port 8 vs. any
other one. Support for CPU port 8 was already partially implemented but
it lacked setting some extra bit for 2G speed. It also will need to be
extended to implement "SMP dual core 3 GMAC setup". That's the reason
for handling it in separated code block.
This patch also adds overriding CPU port state for port other than 8. It
requires using recently defined GMII_PORT registers.
It was tested for regressions on BCM53011 revs 2 & 3. It was also
confirmed to fix switch on some internal Broadcom board.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45402
9 years ago
Felix Fietkau 808fb7a0bd kernel: add missing memory barrier to bgmac
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45398
9 years ago
Imre Kaloz 6cfe1539da generic: make sure we only try to mangle bootargs we do have
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 45393
9 years ago
Felix Fietkau 8904cd1dcc kernel: add bgmac fixes for various issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45388
9 years ago