Commit Graph

1622 Commits (e73ca898ab11cc58084f8359fe3858d685505c65)

Author SHA1 Message Date
Rafał Miłecki e73ca898ab kernel: backport mainlined bgmac patches from 3.19
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44410
10 years ago
John Crispin 038f8e1eda generic: add a few missing symbols for generic config-3.19.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 44387
10 years ago
Rafał Miłecki ddcbef5766 kernel: backport bcma patches queued for 3.20
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44385
10 years ago
Rafał Miłecki d417d58ff7 kernel: 3.18: complete backport of some bcma patch
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44384
10 years ago
Luka Perkov 92f324d333 kernel: switch 3.19 from -rc5 to release .0
Signed-off-by: Luka Perkov <luka@openwrt.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 44381
10 years ago
John Crispin eee58211a8 kernel: add missing symbol
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 44373
10 years ago
John Crispin 7155ec7191 kernel: copy mips_decompressor_memmove patch to 3.18/3.19
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44339
10 years ago
John Crispin f17dee3058 kernel: add missing symbols
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44338
10 years ago
John Crispin 28353b3fc5 kernel: fix compile error inside adm6996.c
drivers/net/phy/adm6996.c:881:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' [-Wformat=]

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

SVN-Revision: 44333
10 years ago
Nicolas Thill 6b8f598ca6 linux/generic: add missing config symbols
Related to debug/tracing, only added to 3.14+, might be needed for older versions as well

Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 44323
10 years ago
Luka Perkov b9d513158e kernel: update 3.18 to 3.18.6
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44318
10 years ago
Luka Perkov d81a8ad523 kernel: update 3.14 to 3.14.32
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44302
10 years ago
Imre Kaloz b361a9d59a generic: allow ubi autoattach to run on NOR flash
Some devices out there only have a NOR flash to store the rootfs on.

While using UBI is arguable on this kind of flash, this is something that should
be supported.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44260
10 years ago
John Crispin baaef42952 ar71xx: Revert "added board support for compex wpj558"
This reverts commit f7873071561d82e75ba2dc46433a2982fef8ac6f.

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

SVN-Revision: 44245
10 years ago
John Crispin bc906ca59e added board support for compex wpj558
Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 44237
10 years ago
Rafał Miłecki 4dd3c05af2 kernel: disable bcma's usage of OF API in kernel 3.10
It fails to build because of missing of_irq_parse_raw and incompatible
irq_create_of_mapping.

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

SVN-Revision: 44230
10 years ago
Jo-Philipp Wich 9d7651b528 linux: fix mips boot decompressor build
Replace the now defunct 062-mips_decompressor_build_fix.patch with another
patch that simply undefines the arch memset and memcpy defines to avoid
syntax errors in the redeclaration.

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

SVN-Revision: 44223
10 years ago
John Crispin 31fd66f808 ar71xx: add Netgear WNR1000v2/WNR1000v2-VC support (#18633)
The board is already supported by OpenWrt. WNR1000v2/WNR1000v2-VC are
pretty much the same as WNR2000v3/WNR612v2, therefore the same
initialization code and flash layout is used.

Signed-off-by: Ștefan Rusu <saltwaterc@gmail.com>
Tested-by: Douglas Fraser <1dsfraser@gmail.com>

SVN-Revision: 44221
10 years ago
Rafał Miłecki 5ecce85db7 kernel: bcm47xxpart: support T_Meter partitions
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44185
10 years ago
Jo-Philipp Wich e25e6df2cf linux: add upstream patch to allow building dwc2 as module on 3.18
Also add the required config symbols to usb.mk

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

SVN-Revision: 44181
10 years ago
John Crispin dcac85d7d8 kernel: add LZ4 decompressors to kconfig hack
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 44168
10 years ago
Luka Perkov a9568263f6 kernel: update 3.14 to 3.14.30
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44158
10 years ago
Rafał Miłecki 3579379dba kernel: bcm47xxpart: support boart_data partition on Xiaomi
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44157
10 years ago
Rafał Miłecki 6296b8ca9f kernel: backport queued bcm47xxpart changes
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44156
10 years ago
Jo-Philipp Wich 3483c76084 kernel: add missing symbol to generic 3.18 config
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44150
10 years ago
Imre Kaloz 11a2a6b220 generic/3.19: fixup the value of IFF_NO_IP_ALIGN
Reported-by: Stephen Walker <stephendwalker+openwrt@gmail.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44139
10 years ago
Luka Perkov ee3eade285 kernel: update 3.14 to 3.14.29
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44137
10 years ago
Jo-Philipp Wich 08dad3f429 xburst: fix kernel build
Changeset r43049 removed the "062-mips_decompressor_build_fix.patch" which is
still required to properly build the xburst kernel.

Fix the syntax error in the preprocessed code by explicitely undefining the
"memcpy" and "memset" macros prior to declaring the replacements functions.

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

SVN-Revision: 44133
10 years ago
Imre Kaloz d26694243a generic: add preliminary 3.19 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44126
10 years ago
Imre Kaloz 53c7248554 generic/3.18: update to 3.18.3
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44121
10 years ago
Felix Fietkau 186db26d05 kernel: remove linux 3.3 patches and config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44109
10 years ago
Felix Fietkau f7ece95303 ar8216: prefix mii_xxx functions to avoid kernel namespace pollution
Prefix the exported mii_xxx32 functions with ar8xxx_
to avoid kernel namespace pollution.

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

SVN-Revision: 44105
10 years ago
Felix Fietkau 3a313a3e11 ar8216: add swconfig attribute to display ARL table on AR8327/AR8337
Add global read-only swconfig attribute "arl_table" to display the
address resolution table.
So far the chip-specific part is implemented for AR8327/AR8337 only
as I don't have the datasheets for the other AR8XXX chips.

Successfully tested on TL-WDR4300 (AR8327rev2)
and TL-WDR4900 (AR8327rev4).

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

SVN-Revision: 44104
10 years ago
Felix Fietkau 6ce848f622 ar8216: decrease page switch wait time
Until a few years ago the page switch wait time was set to msleep(1)
what was changed to usleep_range(1000, 2000) later.

I can not imagine that a low-level operation like switching page
on register level takes so much time.
Most likely the value of 1ms was initially set to check whether
it fixes an issue and then remained w/o further checking whether
also a smaller value would be sufficient.

Now the wait time is set to 5us and I successfully tested this on
AR8327. IMHO 5us should be plenty of time for all supported chips.
However I couldn't test this due to missing hardware.

If other chips should need a longer wait time we can add the
wait time as a parameter to the ar8xxx_chip struct.

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

SVN-Revision: 44103
10 years ago
Felix Fietkau a1fba9dfbe ar8216: add link change detection for switch ports
Check for switch port link changes and
- flush ATU in case of a change
- report link change via syslog

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

SVN-Revision: 44102
10 years ago
Felix Fietkau 74146c62c0 ar8216: fix ATU flushing
The functionality to flush the address translation table contains two bugs
which luckily compensate each other.
1. Just setting the operation is not sufficient to perform the flushing.
   The "active" bit needs to be set to actually trigger an action.
   For the vtu operations this is implemented correctly.
2. ar8xxx_phy_read_status is called every 2s by the phy state machine
   to check for link changes. This would have caused an ATU flush
   every 2s.

Fix the chip-specific ATU flush functions and remove the ATU flush call
from ar8xxx_phy_read_status.

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

SVN-Revision: 44101
10 years ago
Zoltan Herpai 91260ad6ef kernel: add missing config symbol for 3.18
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 44034
10 years ago
John Crispin 90ef62c78f kernel: preserve bootloader command line on MIPS
Somewhere in the conversion of the MIPS architecture code to Device Tree
usage, there's been a failure to keep the separate variables holding the
kernel command line reconciled between the tree and the bootloader. This
patch restores previous functionality that broke.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>

SVN-Revision: 44030
10 years ago
Felix Fietkau a0849e6439 kernel: add missing config symbol
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44026
10 years ago
Felix Fietkau 216100edb4 kernel: backport upstream commit to fix MIPS cache shift with secondary cache enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44024
10 years ago
Felix Fietkau 6dfea16ab9 ar8216: display flow control info in swconfig get_link in case of autonegatiation too
The swconfig get_link attribute (at least) on AR8327/AR8337 doesn't
consider the autonegotiated flow control.
AR8327/AR8337 provide the info about autonegotiated rx/tx flow control
in bits 10 and 11 of the port status register.
Use these values to display info about autonegotiated rx/tx flow
control as part of the get_link attribute.

Successfully tested on TL-WDR4900 (AR8327 rev.4) and
TL-WDR4300 (AR8327 rev.2).

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

SVN-Revision: 44023
10 years ago
Felix Fietkau 53c0c6054f ar8216: add 802.3az EEE info to swconfig get_link attribute
AR8327/AR8337 allow to read the result of EEE autonegotiation.
If EEE is autonegotiated between the link partners, display
this as part of the swconfig get_link attribute.

eee100:  100MBit EEE supported by both link partners
eee1000: 1GBit EEE supported by both link partners

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

SVN-Revision: 44022
10 years ago
Felix Fietkau bdc0750191 ar8216: introduce enable_eee swconfig attribute to control 802.3az EEE per port
Users reported network issues with AR8327 which turned out to be caused
by EEE not working correctly with certain link partners (ticket 14597).
The workaround was to disable EEE on all ports (changeset 41577).

The issue was with certain link partners only, therefore this patch
allows to control usage of EEE per port via swconfig.
Still the default is to initially disable EEE on all ports.

Successfully tested on a TL-WDR4900 (AR8327 rev.4)

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

SVN-Revision: 44021
10 years ago
John Crispin 64ccdb98fb ar8216: introduce ar8xxx_reg_clear complementing ar8xxx_reg_set
Introduce ar8xxx_reg_clear complementing ar8xxx_reg_set.

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

SVN-Revision: 44004
10 years ago
John Crispin 0fb39e6f4b ar8216: replace ar8xxx_rmw with ar8xxx_reg_set where appropriate
Replace ar8xxx_rmw with ar8xxx_reg_set where appropriate.

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

SVN-Revision: 44003
10 years ago
John Crispin 1cb2596f19 ar8216: define all switch_addr structs as const
Define all switch_addr structs as const.

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

SVN-Revision: 44002
10 years ago
Felix Fietkau 4f2fe5d7fa kernel: fix disable_irq() on MIPS CPU IRQs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43973
10 years ago
Luka Perkov 9db3df9d6b mvsw61xx: track and set per-VLAN port state in STU
Since the driver doesn't know anything about (M)STP
we just hard-set the ports to be enabled if they are
part of the VLAN.

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

SVN-Revision: 43938
10 years ago
Luka Perkov 0b2cbeca7a mvsw61xx: clean up and expand register definitions
- eliminate MV_CPUPORT; not necessary since we define
  the CPU port(s) via Device Tree

- add STU and expand VTU operations

- update register names to match those of 88E61xx rather than
  mvswitch's 88E6060

- use more consistent formatting

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

SVN-Revision: 43937
10 years ago
Luka Perkov 1e39f3aef8 mvsw61xx: rework chip recognition
Recognizes 88E6171/6172/6176 at the moment.

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

SVN-Revision: 43936
10 years ago