Commit Graph

13141 Commits (6bfd210ade2a5d35950f56aeeac2d0ee1b8499e0)

Author SHA1 Message Date
Imre Kaloz 6bfd210ade honor the bootloader's bootargs
Only overwrite the bootloader's bootargs if "chosen" exists in the dtb

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43802
10 years ago
Imre Kaloz f12a0f4308 enable wpad-mini by default
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43801
10 years ago
Rafał Miłecki d1a28cfbb2 bcm53xx: support flashing CHK and CyberTAN images
SVN-Revision: 43800
10 years ago
Rafał Miłecki 81b8d95f2c brcm47xx: support for flashing CHK and CyberTAN images
This will allow simple sysupgrade-s including simpler reverting to the
original firmware.

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

SVN-Revision: 43799
10 years ago
Rafał Miłecki cca3990b16 brcm47xx: verify if CHK/CyberTAN contains valid TRX
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43798
10 years ago
Hauke Mehrtens bb5a18ff92 mpc83xx: add support for kernel 3.14
This is compile tested only, please run test and report back.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43797
10 years ago
Hauke Mehrtens cb96191088 mpc52xx: add support for kernel 3.14
This is compile tested only, please run test and report back.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43796
10 years ago
Hauke Mehrtens 2ea959650e ep93xx: add support for kernel 3.14
This is compile tested only, please run test and report back.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43795
10 years ago
Hauke Mehrtens 469e8adbac kernel: add some missing config options
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43794
10 years ago
Hauke Mehrtens f22aeccdd2 ipq806x: refresh patches
This makes the patchs apply again.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43792
10 years ago
Felix Fietkau 0f0460afda oxnas: re-enable ubifs
After the changes make ubinize.cfg optional in image.mk, ubifs
generation can now safely be enabled again.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43789
10 years ago
Felix Fietkau 2ef587a8fc oxnas: clk-oxnas: rework pllb enable function
kernel lock debugging unveiled that we should not call
of_reset_control_get inside a clock's enable operation (see below)

move of_reset_control_* previously used in pllb_clk_enable to new
pllb_clk_prepare and pllb_clk_unprepare functions.
use a container to carry runtime information.

------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2742 lockdep_trace_alloc+0xb8/0xfc()
DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.26 #6
[<c001a6ac>] (unwind_backtrace) from [<c0016dec>] (show_stack+0x10/0x14)
[<c0016dec>] (show_stack) from [<c0194f68>] (dump_stack+0x7c/0x94)
[<c0194f68>] (dump_stack) from [<c0021b50>] (warn_slowpath_common+0x68/0x8c)
[<c0021b50>] (warn_slowpath_common) from [<c0021ba4>] (warn_slowpath_fmt+0x30/0x40)
[<c0021ba4>] (warn_slowpath_fmt) from [<c0061b30>] (lockdep_trace_alloc+0xb8/0xfc)
[<c0061b30>] (lockdep_trace_alloc) from [<c00cb740>] (kmem_cache_alloc+0x1c/0xf8)
[<c00cb740>] (kmem_cache_alloc) from [<c01d33c8>] (of_reset_control_get+0xe8/0x12c)
[<c01d33c8>] (of_reset_control_get) from [<c0269228>] (pllb_clk_enable+0x14/0xbc)
[<c0269228>] (pllb_clk_enable) from [<c0265738>] (__clk_enable+0x54/0xa0)
[<c0265738>] (__clk_enable) from [<c0265acc>] (clk_enable+0x18/0x2c)
[<c0265acc>] (clk_enable) from [<c04325f8>] (oxnas_pcie_probe+0x3b8/0x6a0)
[<c04325f8>] (oxnas_pcie_probe) from [<c01f2510>] (platform_drv_probe+0x18/0x48)
[<c01f2510>] (platform_drv_probe) from [<c01f1070>] (driver_probe_device+0xd8/0x24c)
[<c01f1070>] (driver_probe_device) from [<c01f1298>] (__driver_attach+0x70/0x94)
[<c01f1298>] (__driver_attach) from [<c01ef728>] (bus_for_each_dev+0x4c/0x98)
[<c01ef728>] (bus_for_each_dev) from [<c01f0818>] (bus_add_driver+0xcc/0x1e8)
[<c01f0818>] (bus_add_driver) from [<c01f169c>] (driver_register+0xa0/0xe8)
[<c01f169c>] (driver_register) from [<c01f2568>] (platform_driver_probe+0x20/0xa4)
[<c01f2568>] (platform_driver_probe) from [<c0013a3c>] (do_one_initcall+0x90/0x140)
[<c0013a3c>] (do_one_initcall) from [<c0421d38>] (kernel_init_freeable+0x1e4/0x2c0)
[<c0421d38>] (kernel_init_freeable) from [<c000c214>] (kernel_init+0x8/0x104)
[<c000c214>] (kernel_init) from [<c0008768>] (ret_from_fork+0x14/0x2c)
---[ end trace 5f17ed2f61e0683f ]---

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43787
10 years ago
Felix Fietkau 604fc8faf5 kernel/generic: fix warnings if libata-ledtrig is disabled
accidentally #if was used instead of #ifdef, thus gcc warned
about CONFIG_ATA_LEDS being undefined...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43786
10 years ago
Imre Kaloz edbb903461 fix mvneta vlan tagging
This is a 3.14.x backport of:
"mvneta: Fix TSO and checksum for non-acceleration vlan traffic"

Upstream commits:

817dbfa5d1bc276a72c1a577310382008e8aca0a
2d39d120781a5770573dc6ed672a5a562f541aea

Fixes vlan tagging on SoC interfaces for the WRT1900AC.  Useful
when using mvsw6171 driver.

Signed-off-by: Mark Milburn <mark.a.milburn@gmail.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43781
10 years ago
Imre Kaloz e23b988bf5 only call UbinizeImage and BuildSysUpgrade for boards we support them on
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43779
10 years ago
Imre Kaloz f3755f5758 The ubinized filesystems should be used for generating the final images, so store them in KDIR instead.
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43778
10 years ago
Felix Fietkau fa3cb9fa5c ar71xx: add flush reset register writes, should fix restart issues (#17839)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43777
10 years ago
Felix Fietkau a96afecf5c kernel: backport a few PHY layer fixes from upstream
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43776
10 years ago
Felix Fietkau d7320d2d89 ar71xx: rename/refresh patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43775
10 years ago
Imre Kaloz 5744500ab6 we've changed places with Luka, reflect that :)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43774
10 years ago
Imre Kaloz 2bff4ca7b1 use mwlwifi by default
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43773
10 years ago
Felix Fietkau 93192e65e8 oxnas: sata_oxnas: make irq handler more readable
safed one level of indention by using 'continue' instead of a
lengthy if-clause.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
v2: use logic-AND instead of '?' operator when checking for hw bug 6320

SVN-Revision: 43768
10 years ago
Felix Fietkau 74a9e1c1b0 oxnas: sata_oxnas: refactoring phase 2
- replaced // comments by /* comments */
 - added line-breaks where needed
 - fixed white-space according to kernel style
 - fixed some obvious spelling mistakes in comments and printks
 - removed some unneeded left-overs imported from vendor code-base
 - replaced printk(...) by libata macros where possible

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43767
10 years ago
Felix Fietkau feda47451f oxnas: sata_oxnas: refactoring phase 1
locking for 2nd port and hwraid was added from vendor's GPL code which
doesn't comply with current kernel coding style.

 - moved all global variables into host_priv
 - renamed locks
 - sanetized acquire() and release() parameter list

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43766
10 years ago
Felix Fietkau 3113bf4cb8 oxnas: refresh kernel config-3.1[48]
and no longer compile-in ext4 filesystem now that sata_oxnas is
also built as a module.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43765
10 years ago
Felix Fietkau 5506420980 kernel: remove openwrt micrel.c (replaced by upstream driver)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43762
10 years ago
Felix Fietkau 570fe5c662 kernel: disable soft-reset for generic PHY devices to avoid accidentally clearing preinitialized state
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43757
10 years ago
Rafał Miłecki e7d7f59171 bcm53xx: support WAN connected to switch port 0
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43754
10 years ago
Luka Perkov 0847247129 mvsw6171: note support for 88E6172 switches
The '6171 and '6172 are similar enough to work
without any changes to the code.

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 43753
10 years ago
Luka Perkov 873202fc0b kirkwood: add *plugs to uci-defaults
Set defaults health led to a timer heartbeet (200/800)
and populate network for:

- GuruplugServerPlus
- SheevaPlug
- SheevaPlug with eSATA

Signed-off-by: Gerald Kerma <dreagle@doukki.net>

SVN-Revision: 43752
10 years ago
Luka Perkov 39743e45f8 kikwood: populate kirkwood.sh with new boards
- SheevaPlug
- SheevaPlug with eSATA
- GuruplugServerPlus

Signed-off-by: Gerald Kerma <dreagle@doukki.net>

SVN-Revision: 43751
10 years ago
Luka Perkov ec9a0f898a kirkwood: set default EA4500 switch config
This maps the LAN ports to eth0 and WAN port to eth1.
Since there are two interfaces the 802.1q VLAN mode
is unnecessary and left disabled. Port-based VLANs
are used instead.

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 43750
10 years ago
Hauke Mehrtens abca0462d3 kernel: bgmac: fix some problems
There are some problems in the napi usage that are fixed now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43749
10 years ago
Hauke Mehrtens 192e945479 bcm53xx: PCIe: add link check again
When there is no device connected to the controller we should not start
the controller. This also changes between PCIe 1.0 and PCIe 2.0 speed
based on the device. This code is based on code from the new Broadcom
PCIe controller driver.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43748
10 years ago
Felix Fietkau 4ccf215a3e ar7: remove leftover 3.10 patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43746
10 years ago
Felix Fietkau 4571fc780d ar71xx: add support for qca956x soc
This patch adds soc support for QCA9561 and TP9343.
TP9343 is a reduced version of QCA9561, which can be found in TP-LINK routers in China.
The qca956x_wmac has not yet been supported by ath9k.

tested on TL-WDR6500 and TL-WR882N v1 (Chinese version)

Signed-off-by: Weijie Gao <hackpascal@gmail.com>

SVN-Revision: 43744
10 years ago
Felix Fietkau 2f9b042d69 ar8216: Inline function ar8xxx_create_mii
Inline function ar8xxx_create_mii.

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

SVN-Revision: 43743
10 years ago
Felix Fietkau 2289c7a010 ar8216: Remove read/write/rmw member functions from ar8xxx_priv
Remove read/write/rmw member functions from ar8xxx_priv

There seems to be no real benefit of the ar8xxx_priv member functions
read/write/rmw as one implementation exists for each of them only.
Especially ar8xxx_mii_rmw is assigned to priv->rmw first and then
mapped to ar8xxx_rmw.
Rename the ar8xxx_mii_.. functions to ar8xxx_.. and use them directly.

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

SVN-Revision: 43742
10 years ago
Felix Fietkau 45a494b808 ar8216: Create helpers mii_read32 / mii_write32 for 32 bit MII ops
Create helpers mii_read32 / mii_write32 for 32 bit MII ops.
Rename r3 variable to page in ar8xxx_mii_write to make it consistent
with the other ar8xxx_mii_xxxx functions.

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

SVN-Revision: 43741
10 years ago
Felix Fietkau 0e7f844c66 ar8216: Factor out chip-specific parameters from ar8xxx_probe_switch
Factor out chip-specific parameters from ar8xxx_probe_switch.
Move the ar8xxx_chip definitions after the swops definitions.

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

SVN-Revision: 43740
10 years ago
Felix Fietkau 054767cebc ar8216: remove unused function parameter in ar8327_led_register
Remove unused function parameter in ar8327_led_register.

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

SVN-Revision: 43739
10 years ago
Rafał Miłecki e21e9c5548 bcm53xx: backport spi-nor changes and update bcm53xxspiflash
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43738
10 years ago
Felix Fietkau d27c682def kernel: disable multicast-to-unicast translation for ipv6 neighbor solicitation (#17625)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43736
10 years ago
Luka Perkov 309e74b86d kirkwood: add sheevaplug and derivatives
Add kirkwood FDT:
- SheevaPlug
- SheevaPlug with eSATA
- GuruplugServerPlus
- Topkick1281P2

Signed-off-by: Gérald Kerma <drEagle@doukki.net>

SVN-Revision: 43735
10 years ago
Imre Kaloz 211cac98d5 Belkin AC 1750 DB (F9K1115v2) support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43734
10 years ago
John Crispin 0ffb7323d0 ralink: remove partitoon map from mt7621.dtsi
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43720
10 years ago
Rafał Miłecki dd9ca05249 bcm53xx: sysupgrade support for devices with serial flash
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43719
10 years ago
Rafał Miłecki c3e9796cd5 brcm47xx: extract magics from specific upgrade images (and still reject them)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43718
10 years ago
John Crispin 019ea725aa add "preinit_regular" diag.sh set_state argument
This new argument is used right after starting regular preinit (which
happens if failsafe wasn't triggered). The main purpose of "preinit"
argument is to indicate that failsafe can be triggered, however we were
missing a way to inform user that we don't wait for a trigger anymore.
With this change it's clear when failsafe mode can be triggered.

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

SVN-Revision: 43715
10 years ago
Rafał Miłecki a5b6b7e419 brcm47xx: detect (and still reject for now) CyberTAN fw format
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43714
10 years ago