openwrt/staging/ynezz.git
5 years agoath79: add wmac migration for all ar93xx/qca95xx SoCs
Chuanhong Guo [Fri, 21 Jun 2019 10:33:53 +0000 (18:33 +0800)]
ath79: add wmac migration for all ar93xx/qca95xx SoCs

Add migration for all ar71xx device path as well as previously
incorrect ath79 path.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agoath79: ar93xx/qca95xx: move gmac/wmac/pcie node out of apb bus
Chuanhong Guo [Fri, 21 Jun 2019 10:25:12 +0000 (18:25 +0800)]
ath79: ar93xx/qca95xx: move gmac/wmac/pcie node out of apb bus

according to functional block diagram in datasheet, these devices
don't belong to apb bus.
Move these nodes out to match datasheet description.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agoath79: add support for Qihoo C301
Chuanhong Guo [Mon, 15 Jul 2019 11:43:31 +0000 (19:43 +0800)]
ath79: add support for Qihoo C301

Specifications:
- SoC: AR9344
- RAM: 128MB
- Flash: 2 * 16MB (MX25L12845)
- Ethernet: 2 * FE LAN & 1 * FE WAN
- WiFi: 2.4G: AR9344 5G: QCA9882

Flash instruction:
1. Hold reset and power up the router
2. Set your IP to 192.168.1.x
3. Open 192.168.1.1 and upload the generated *factory* firmware

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agoramips: mtk-mmc: mt76x8: check ESD_MODE before applying AGPIO_CFG
Chuanhong Guo [Sat, 13 Jul 2019 09:59:03 +0000 (17:59 +0800)]
ramips: mtk-mmc: mt76x8: check ESD_MODE before applying AGPIO_CFG

Since mt76x8an ver1 eco2, SDXC pins can be switched to the
following pinmap:
sd_d1  -> PAD_I2S_SDI
sd_d0  -> PAD_I2S_WS
sd_cmd -> PAD_I2S_CLK
sd_d3  -> PAD_I2C_SCLK
sd_d2  -> PAD_I2C_SD
sd_clk -> PAD_GPIO0
sd_wp  -> PAD_TXD1
sd_cd  -> PAD_RXD1

To use this pinmap, one would need to set ESD_MODE bit (bit 15)
to 1 in GPIO1_MODE and switch other used pads into GPIO mode.
In this mode, we don't need to switch ethernet pins to digital
pad.

Check ESD_MODE bit before applying AGPIO_CFG and use rt_sysc_m32
to set it.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agompc85xx: split up DEVICE_TITLE
Moritz Warning [Sun, 14 Jul 2019 08:53:27 +0000 (10:53 +0200)]
mpc85xx: split up DEVICE_TITLE

Splits up DEVICE_TITLE into DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
5 years agolibroxml: bump to the 3.0.2 version
Rafał Miłecki [Sun, 14 Jul 2019 20:24:54 +0000 (22:24 +0200)]
libroxml: bump to the 3.0.2 version

* Fix for memory leak regression
* Support for (un)escaping

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agotarget/toolchain/files/wrapper.sh: simplify 'case'
Eneas U de Queiroz [Mon, 15 Jul 2019 17:08:00 +0000 (14:08 -0300)]
target/toolchain/files/wrapper.sh: simplify 'case'

Removed an eglibc remnant, and while at it, grouped all of the
TOOLCHAIN_PLATFORMs using the same FLAGS together.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
5 years agolibs/toolchain: remove eglibc remnant file
Eneas U de Queiroz [Mon, 15 Jul 2019 17:07:59 +0000 (14:07 -0300)]
libs/toolchain: remove eglibc remnant file

This removes package/libs/toolchain/eglibc-files/etc/nsswitch.conf.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
5 years agotegra: split up DEVICE_TITLE
Moritz Warning [Sun, 14 Jul 2019 08:35:21 +0000 (10:35 +0200)]
tegra: split up DEVICE_TITLE

Splits up DEVICE_TITLE into DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
5 years agoubox: implement service_running() in log init.d script
Rafał Miłecki [Wed, 3 Jul 2019 09:16:22 +0000 (11:16 +0200)]
ubox: implement service_running() in log init.d script

It allows checking if service is running.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agorpcd: implement service_running() in init.d script
Rafał Miłecki [Wed, 3 Jul 2019 09:16:21 +0000 (11:16 +0200)]
rpcd: implement service_running() in init.d script

It allows checking if service is running.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agofstools: add direct dependencies on libblobmsg-json and libjson-c
Petr Štetiar [Sun, 14 Jul 2019 20:10:37 +0000 (22:10 +0200)]
fstools: add direct dependencies on libblobmsg-json and libjson-c

The OpenWrt buildroot ABI version rebuild tracker does not handle
transient dependencies, therefore add all libraries linked by
block-mount and blockd as direct dependencies to the corresponding
binary package definition.

This ensures that block-mount and blockd is automatically rebuilt and
relinked if any of these libraries has its ABI_VERSION updated in the
future.

Fixes: FS#2373
[jow: similar fix for procd and 98.42% of commit message]
Signed-off-by: Jo-Philip Wich <jow@mein.io>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
5 years agoath79: add support for devolo WiFi pro 1750x
David Bauer [Tue, 11 Jun 2019 15:27:51 +0000 (17:27 +0200)]
ath79: add support for devolo WiFi pro 1750x

Hardware
--------
CPU:   Qualcomm Atheros QCA9558
RAM:   128M DDR2
FLASH: 16MiB
ETH:   1x Atheros AR8035 (PoE in)
WiFi2: QCA9558 3T3R
WiFi5: QCA9880 3T3R
BTN:   1x Reset
LED:   1x LED Power (non-controllable)
       1x LED Status (internal)
       1x LED LAN (controlled by PHY)
       1x LED WLAN
BEEP:  1x GPIO attached piezo beeper
UART:  3.3V GND TX RX (115200-N-8) (3.3V is square pad)
       Header is located next to external-LED header.

Installation
------------
Make sure you set a password for the root user as prompted on first
setup!

1. Upload OpenWRT sysupgrade image via SSH to the device.
Use /tmp as the destination folder on the device.
User is root, password the one set in the web interface.

2. Install OpenWRT with

> sysupgrade -n -F /tmp/<openwrt-image-name>

Signed-off-by: David Bauer <mail@david-bauer.net>
5 years agogemini: Stop enforcing command line
Linus Walleij [Wed, 10 Jul 2019 17:46:12 +0000 (19:46 +0200)]
gemini: Stop enforcing command line

The command line enforced by the kernel is harmful, we want to
use the command line passed from the device tree. This is
especially important for the SQ201, Teltonika RUT and WBD111
which has a console set to 115200n8 and not 19200n8 like all
the others, so their consoles will be confusingly changing
baudrate between boot loader and kernel. The setting in the
device tree corresponds to what the boot loader is using.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
5 years agogpio-button-hotplug: unify polled and interrupt code
David Bauer [Tue, 2 Jul 2019 21:57:18 +0000 (23:57 +0200)]
gpio-button-hotplug: unify polled and interrupt code

This patch unifies the polled and interrupt-driven gpio_keys code
paths as well implements consistent handling of the debounce
interval set for the GPIO buttons and switches.

Hotplug events will only be fired if

1. The input changes its state and remains stable for the duration
   of the debounce interval (default is 5 ms).

2. In the initial stable (no state-change for duration of the
   debounce interval) state once the driver module gets loaded.

   Switch type inputs will always report their stable state.
   Unpressed buttons will not trigger an event for the initial
   stable state. Whereas pressed buttons will trigger an event.
   This is consistent with upstream's gpio-key driver that uses
   the input subsystem (and dont use autorepeat).

Prior to this patch, this was handled inconsistently for interrupt-based
an polled gpio-keys. Hence this patch unifies the shared logic into the
gpio_keys_handle_button() function and modify both implementations to
handle the initial state properly.

The changes described in 2. ) . can have an impact on the
failsafe trigger. Up until now, the script checked for button
state changes. On the down side, this allowed to trigger the
failsafe by releasing a held button at the right time. On the
plus side, the button's polarity setting didn't matter.

Now, the failsafe will only engage when a button was pressed
at the right moment (same as before), but now it can
theoretically also trigger when the button was pressed the
whole time the kernel booted and well into the fast-blinking
preinit phase. However, the chances that this can happen are
really small. This is because the gpio-button module is usually
up and ready even before the preinit state is entered. So, the
initial pressed button event gets lost and most devices behave
as before.

Bisectors: If this patch causes a device to permanently go into
failsafe or experience weird behavior due to inputs, please
check the following:
 - the GPIO polarity setting for the button
 - the software-debounce value

Run-tested for 'gpio-keys' and 'gpio-keys-polled' on

 - devolo WiFi pro 1200e
 - devolo WiFi pro 1750c
 - devolo WiFi pro 1750x
 - Netgear WNDR4700
 - Meraki MR24
 - RT-AC58U

Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [further
cleanups, simplification and unification]

5 years agobrcm2708: Add Raspberry Pi 4 support
Álvaro Fernández Rojas [Sat, 13 Jul 2019 11:33:44 +0000 (13:33 +0200)]
brcm2708: Add Raspberry Pi 4 support

- Support added to bcm2709 subtarget (32 bit).
- 64 bit kernel still requires many hacks on RPi 4B.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 years agobrcm2708: switch to linux-firmware SDIO NVRAM
Álvaro Fernández Rojas [Sat, 13 Jul 2019 11:30:57 +0000 (13:30 +0200)]
brcm2708: switch to linux-firmware SDIO NVRAM

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 years agolinux-firmware: add RPi SDIO NVRAM packages
Álvaro Fernández Rojas [Sat, 13 Jul 2019 11:34:59 +0000 (13:34 +0200)]
linux-firmware: add RPi SDIO NVRAM packages

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 years agobrcm2708-gpu-fw: add support for Raspberry Pi 4
Álvaro Fernández Rojas [Tue, 9 Jul 2019 18:17:31 +0000 (20:17 +0200)]
brcm2708-gpu-fw: add support for Raspberry Pi 4

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 years agobrcm2708: add linux 4.19 support
Álvaro Fernández Rojas [Tue, 9 Jul 2019 18:32:28 +0000 (20:32 +0200)]
brcm2708: add linux 4.19 support

Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
5 years agomt76: revert an accidental leftover debug change
Felix Fietkau [Sat, 13 Jul 2019 14:00:43 +0000 (16:00 +0200)]
mt76: revert an accidental leftover debug change

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 years agoprocd: update to latest git HEAD
Hans Dedecker [Sat, 13 Jul 2019 11:24:56 +0000 (13:24 +0200)]
procd: update to latest git HEAD

31f0765 procd: check strchr() result before using it

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
5 years agomt76: update to the latest version
Felix Fietkau [Fri, 12 Jul 2019 14:11:45 +0000 (16:11 +0200)]
mt76: update to the latest version

8fc3e6e mt76: mt7615: fix using VHT STBC rates
b21b991 mt76: mt7615: fix PS buffering of action frames
3d43dd8 mt76: mt7615: fix invalid fallback rates
0ce4682 mt76: mt7603: fix invalid fallback rates
3b08966 Revert "mt76: usb: use full intermediate buffer in mt76u_copy"
48800e7 Revert "mt76: usb: remove unneeded {put,get}_unaligned"
439354d Revert "mt76: usb: fix endian in mt76u_copy"
8c1da93 mt76: usb: fix endian in mt76u_copy
307be50 mt76: usb: remove unneeded {put,get}_unaligned
5d29829 mt76: mt76x02: use params->ssn value directly
f74d117 mt76: mt7603: use params->ssn value directly
649f2e8 mt76: mt7615: use params->ssn value directly
b647180 mt76: mt7615: unlock dfs bands

Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 years agomac80211: Do not build b43legacy on BRCM47xx mips74 subtarget
Hauke Mehrtens [Thu, 11 Jul 2019 23:12:11 +0000 (01:12 +0200)]
mac80211: Do not build b43legacy on BRCM47xx mips74 subtarget

b43legacy needs ssb support and we do not compile the mips74 subtarget
of the brcm47xx target with SSB support. This causes a build failure in
the mac80211 package and only some of the kernel modules are being
created.

I am not aware of any device with a BRCM47xx mips74 CPU which uses a
b43legacy compatible device.

Fixes: FS#2334
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 years agoramips: add support for ASUS RT-AC57U
David Bauer [Thu, 11 Jul 2019 15:15:48 +0000 (17:15 +0200)]
ramips: add support for ASUS RT-AC57U

SoC:   MediaTek MT7621AT
RAM:   128M (Winbond W631GG6KB-15)
FLASH: 16MB (Spansion S25FL128SA)
WiFi:  MediaTek MT7603EN bgn 2SS
WiFi:  MediaTek MT7612EN nac 2SS
BTN:   Reset - WPS
LED:    - Power
        - LAN {1-4}
        - WAN
        - WiFi 2.4 GHz
        - WiFi 5 GHz
        - USB
UART:  UART is present next to the Power LED.
       TX - RX - GND - 3V3 / 57600-8N1
       3V3 is the nearest one to the Power LED.

Installation
------------
Via TFTP:
1. Set your computers IP-Address to 192.168.1.75.
2. Power up the Router with the Reset button pressed.
3. Release the Reset button after 5 seconds.
4. Upload OpenWRT sysupgrade image via TFTP:
 > tftp -4 -v -m binary 192.168.1.1 -c put <IMAGE>

Via SSH:
Note: User/password for SSH is identical with the one used in the
Web-interface.
1. Complete the initial setup wizard.
2. Activate SSH under "Administration" -> "System".
3. Transfer the OpenWrt sysupgrade image via scp:
 > scp owrt.bin admin@192.168.1.1:/tmp
4. Connect via SSH to the router.
 > ssh admin@192.168.1.1
5. Write the OpenWrt image to flash.
 > mtd-write -i /tmp/owrt.bin -d linux
6. Reboot the router
 > reboot

Signed-off-by: David Bauer <mail@david-bauer.net>
5 years agolua5.3: build shared library
Colby Whitney [Tue, 2 Jul 2019 17:18:00 +0000 (11:18 -0600)]
lua5.3: build shared library

Update the lua5.3 package to build a shared object just like the old lua
package. Ported / recreated the same patch number as the other lua
package. Built and tested library / interpreter on BCM5301X.

Signed-off-by: Colby Whitney <colby.whitney@luxul.com>
5 years agoramips: fix mqmaker witi case in fixup-mac-address
Chuanhong Guo [Thu, 11 Jul 2019 15:21:19 +0000 (23:21 +0800)]
ramips: fix mqmaker witi case in fixup-mac-address

This commit fixes a forgotten case in previous commit.

Fixes: 087e14ab59 ("ramips: mt7621: merge two variants of MQmaker WiTi together")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agobase-files: move stage2 upgrade to separated file
Rafał Miłecki [Wed, 3 Jul 2019 07:51:49 +0000 (09:51 +0200)]
base-files: move stage2 upgrade to separated file

do_upgrade_stage2() isn't really any common code. It isn't used anywhere
except for /sbin/sysupgrade that passes it to the stage2.

Moving its code to separated file also simplifies COMMAND variable.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agoramips: mt7621: merge two variants of MQmaker WiTi together
Chuanhong Guo [Wed, 10 Jul 2019 15:57:36 +0000 (23:57 +0800)]
ramips: mt7621: merge two variants of MQmaker WiTi together

Since we can auto-detect memory now, we don't need 2 dts for two
memory variants.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agoramips: dts: drop memory nodes
Chuanhong Guo [Wed, 10 Jul 2019 05:53:59 +0000 (13:53 +0800)]
ramips: dts: drop memory nodes

mt7621 and mt7628 now have the ability to detect memory size
automatically.
Drop memory nodes and let kernel determine memory size.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agoramips: mt7621: add support for memory detection
Chuanhong Guo [Wed, 10 Jul 2019 03:05:41 +0000 (11:05 +0800)]
ramips: mt7621: add support for memory detection

mt7621 has the following memory map:
0x0-0x1c000000: lower 448m memory
0x1c000000-0x2000000: peripheral registers
0x20000000-0x2400000: higher 64m memory

detect_memory_region in arch/mips/kernel/setup.c only add the first
memory region and isn't suitable for 512m memory detection because
it may accidentally read the memory area for peripheral registers.

This commit adds memory detection capability for mt7621:
1. add the highmem area when 512m is detected.
2. guard memcmp from accessing peripheral registers:
     This only happens when some weird user decided to change
     kernel load address to 256m or higher address. Since this
     is a quite unusual case, we just skip 512m testing and return
     256m as memory size.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
5 years agoramips: fix bogus MTK_SOC (typo)
Daniel Golle [Wed, 10 Jul 2019 17:28:35 +0000 (19:28 +0200)]
ramips: fix bogus MTK_SOC (typo)

Belkin F7C027 is clearly Rt5350 SoC, as shown on internal
photographs filed for FCC approval[1].

[1]: https://fcc.io/K7S/F7C027

Fixes commit 3b0264eddbc
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agoramips: Sort all subtarget Makefiles
Adrian Schmutzler [Sun, 7 Jul 2019 14:27:51 +0000 (16:27 +0200)]
ramips: Sort all subtarget Makefiles

This patch applies sorting to the definitions as whole blocks.

Sorting has been performed fully automatic, line count differences
originate from double empty lines removed.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips: Reapply sorting to board.d files
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:47 +0000 (23:22 +0200)]
ramips: Reapply sorting to board.d files

This patch is cosmetical:
It only applies sorting based on device names, whereas renames
already took place in earlier patches.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agokernel/om-watchdog: Apply device renames from ramips
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:44 +0000 (23:22 +0200)]
kernel/om-watchdog: Apply device renames from ramips

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agouboot-envtools: Apply ramips device renames
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:42 +0000 (23:22 +0200)]
uboot-envtools: Apply ramips device renames

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips: Remove base-files/lib/ramips.sh
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:39 +0000 (23:22 +0200)]
ramips: Remove base-files/lib/ramips.sh

Having converted the target to use device compatible, ramips.sh
is obsolete now.

The only remaining entry for the mt7688 evaluation board seems to
be orphaned.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/rt305x: Name DTS files based on scheme
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:36 +0000 (23:22 +0200)]
ramips/rt305x: Name DTS files based on scheme

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/rt288x,rt3883: Name DTS files based on scheme
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:34 +0000 (23:22 +0200)]
ramips/rt288x,rt3883: Name DTS files based on scheme

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/mt76x8: Name DTS files based on scheme
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:31 +0000 (23:22 +0200)]
ramips/mt76x8: Name DTS files based on scheme

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/mt7621: Name DTS files based on scheme
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:28 +0000 (23:22 +0200)]
ramips/mt7621: Name DTS files based on scheme

As introduced with ath79, DTS files for ramips will now be labelled
soc_vendor_device.dts(i). With this change, DTS files can be
selected automatically without further manual links.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/mt7620: Name DTS files based on scheme
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:25 +0000 (23:22 +0200)]
ramips/mt7620: Name DTS files based on scheme

As introduced with ath79, DTS files for ramips will now be labelled
soc_vendor_device.dts(i). With this change, DTS files can be
selected automatically without further manual links.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips: Derive DTS name from device name in Makefile
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:22 +0000 (23:22 +0200)]
ramips: Derive DTS name from device name in Makefile

This will automatically derive the DTS name as in ath79 and thus
makes specifying DTS for every device obsolete.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---

This patch only introduces the mechanism and is then followed by
commits with renames and Makefile adjustments per subtarget.

Eventually, those can be all squashed into a single commit or left
as they are to enhance overview.

5 years agoramips/rt305x: Synchronize Makefiles with DTS compatible
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:19 +0000 (23:22 +0200)]
ramips/rt305x: Synchronize Makefiles with DTS compatible

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/rt288x,rt3883: Synchronize Makefiles with DTS compatible
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:16 +0000 (23:22 +0200)]
ramips/rt288x,rt3883: Synchronize Makefiles with DTS compatible

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/mt76x8: Synchronize Makefiles with DTS compatible
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:13 +0000 (23:22 +0200)]
ramips/mt76x8: Synchronize Makefiles with DTS compatible

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/mt7621: Synchronize Makefiles with DTS compatible
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:08 +0000 (23:22 +0200)]
ramips/mt7621: Synchronize Makefiles with DTS compatible

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips/mt7620: Synchronize Makefiles with DTS compatible
Adrian Schmutzler [Wed, 3 Jul 2019 21:22:02 +0000 (23:22 +0200)]
ramips/mt7620: Synchronize Makefiles with DTS compatible

This will "rename" devices in Makefiles to the pattern used in
DTS compatible. This will systematize naming of devices
enormously.

As device names are used to for default SUPPORTED_DEVICES entries,
we need to adjust the source for /tmp/sysinfo/board_name, too.
So remove relevant entries from base-files/lib/ramips.sh and
use device compatible for that.

Despite that, base-files are updated, too.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoramips: Improve compatible for TP-Link Archer devices
Adrian Schmutzler [Wed, 3 Jul 2019 21:21:54 +0000 (23:21 +0200)]
ramips: Improve compatible for TP-Link Archer devices

Include "Archer" in compatible as it is part of the device name.

Update Makefile device names where necessary to match compatible.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agoath79: fix missing DEVICE_VENDOR for some devices
Chen Minqiang [Sun, 7 Jul 2019 08:02:49 +0000 (16:02 +0800)]
ath79: fix missing DEVICE_VENDOR for some devices

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
5 years agoramips: add missing DEVICE_VENDOR
Daniel Golle [Wed, 10 Jul 2019 15:15:49 +0000 (17:15 +0200)]
ramips: add missing DEVICE_VENDOR

Fixes commit ee66fe4ea9a6f5e3f47a063f850bac57e1fb411a
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agosunxi: convert to multi-variable device title
Luis Araneda [Sat, 6 Jul 2019 02:26:00 +0000 (22:26 -0400)]
sunxi: convert to multi-variable device title

Use data from the linux-sunxi community wiki to
fill-in missing device information

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
5 years agoipq40xx: convert to multi-variable device title
Luis Araneda [Sat, 6 Jul 2019 04:50:32 +0000 (00:50 -0400)]
ipq40xx: convert to multi-variable device title

Additionally, fix some vendor and board names

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
5 years agokirkwood: split up DEVICE_TITLE
Moritz Warning [Sun, 7 Jul 2019 13:17:31 +0000 (15:17 +0200)]
kirkwood: split up DEVICE_TITLE

DEVICE_TITLE is split up into DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT

Signed-off-by: Moritz Warning <moritzwarning@web.de>
5 years agoath25: split up DEVICE_TITLE
Moritz Warning [Sun, 7 Jul 2019 13:17:11 +0000 (15:17 +0200)]
ath25: split up DEVICE_TITLE

DEVICE_TITLE is split up into DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT

Signed-off-by: Moritz Warning <moritzwarning@web.de>
5 years agooxnas: convert DEVICE_TITLE to new variables
Daniel Golle [Sat, 6 Jul 2019 19:21:34 +0000 (21:21 +0200)]
oxnas: convert DEVICE_TITLE to new variables

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agokernel: cherry pick patch removing __linux__ check
Fredrik Olofsson [Thu, 4 Jul 2019 11:58:15 +0000 (13:58 +0200)]
kernel: cherry pick patch removing __linux__ check

This is already included in newer upstream. Needed to build BPF programs
using the MIPS kernel include files.

Without this patch, clang fails with "#error Use a Linux compiler or
give up." in sgidefs.h when building BPF programs.

Signed-off-by: Fredrik Olofsson <fredrik.olofsson@anyfinetworks.com>
5 years agoinclude/package.mk: Add support for src-checkout/ folder
John Crispin [Wed, 10 Jul 2019 11:32:24 +0000 (13:32 +0200)]
include/package.mk: Add support for src-checkout/ folder

This feature is similar to the SRC_TREE_OVERRIDE. However instead of having
to manually create a symlink inside the package folder, the buildsystem
will check if $(TOP_DIR)/src-checkout/$(PKG_NAME)/.git is present and use
this instead.

Signed-off-by: John Crispin <john@phrozen.org>
5 years agoath79: Fix whitespace errors in 11-ath10k-caldata
Adrian Schmutzler [Tue, 9 Jul 2019 11:05:46 +0000 (13:05 +0200)]
ath79: Fix whitespace errors in 11-ath10k-caldata

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agobase-files: Fix path check in get_mac_binary
Adrian Schmutzler [Mon, 8 Jul 2019 08:17:28 +0000 (10:17 +0200)]
base-files: Fix path check in get_mac_binary

Logic was inverted when changing from string check to file check.
Fix it.

Fixes: 8592602d0a88 ("base-files: Really check path in get_mac_binary")
Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agorb532: Fix missing DEVICE_TITLE
Adrian Schmutzler [Mon, 8 Jul 2019 21:14:03 +0000 (23:14 +0200)]
rb532: Fix missing DEVICE_TITLE

This fixes the collection of target info during build, where the
device title for rb532/nand is just empty:
tmp/.config-target.in:44925:warning: leading whitespace ignored
tmp/.config-target.in:123738:warning: leading whitespace ignored
tmp/.config-target.in:123786:warning: leading whitespace ignored

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agokernel: bump 4.19 to 4.19.57
Koen Vandeputte [Tue, 9 Jul 2019 10:43:23 +0000 (12:43 +0200)]
kernel: bump 4.19 to 4.19.57

Refreshed all patches.

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
5 years agokernel: bump 4.14 to 4.14.132
Koen Vandeputte [Tue, 9 Jul 2019 10:18:49 +0000 (12:18 +0200)]
kernel: bump 4.14 to 4.14.132

Refreshed all patches.

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
5 years agonetsupport: move out sch_cake from kmod-sched
Kevin Darbyshire-Bryant [Tue, 9 Jul 2019 12:40:32 +0000 (13:40 +0100)]
netsupport: move out sch_cake from kmod-sched

Fix file installation clash between kmod-sched & kmod-sched-cake as both
try to install sch_cake.ko

Remove cake from kmod-sched package as cake is supposed to be the
optional qdisc.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
5 years agokernel: x86: enable NVME support for 64 bit target
Lucian Cristian [Sun, 30 Jun 2019 06:31:15 +0000 (09:31 +0300)]
kernel: x86: enable NVME support for 64 bit target

Newer motherboards support NVMe U.2 connectors but also NVMe storage can
be used on add-on pcie adapters.
Enable kernel driver on x86 for now so the NVMe flash storage can be used

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
5 years agoramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB
Chuanhong Guo [Thu, 27 Jun 2019 12:44:27 +0000 (20:44 +0800)]
ramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB

Upstream kernel added support for RAW_APPENDED_DTB on ralink arch
in the following commit:
02564fc89d3d ("ralink: Introduce fw_passed_dtb to arch/mips/ralink")

Use upstream solution and get rid of our OWRTDTB hack.
This commit set DEVICE_DTS to $$(DTS) instead of replacing DTS with
DEVICE_DTS in device profile because DTS variable will be dropped
in later commits.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
[Tested on mt7621/mt76x8]
Tested-by: Chuanhong Guo <gch981213@gmail.com>
[Tested on rt305x/mt7620]
Tested-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agousbreset: Add missing header
Rosen Penev [Sun, 7 Jul 2019 21:30:17 +0000 (14:30 -0700)]
usbreset: Add missing header

Fixes undefined reference to strtoul

Signed-off-by: Rosen Penev <rosenp@gmail.com>
5 years agonetsupport: move out mqprio from kmod-sched
Konstantin Demin [Fri, 28 Jun 2019 18:30:50 +0000 (21:30 +0300)]
netsupport: move out mqprio from kmod-sched

Currently, there's unable to install "kmod-sched-mqprio" after
"kmod-sched" (or vice versa), because "sch_mqprio.ko" is
shipped in both packages.

Fixes: f83522fa6361 ("linux: Add kmod-sched-mqprio")
Fixes: 6af639e0bf78 ("linux: Add kmod-sched-act-vlan")
Fixes: 72c7e2dc467c ("linux: Add kmod-sched-flower")
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
[Add cls_flower and act_vlan]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 years agoutil-linux: Update to 2.34
Daniel Engberg [Sat, 15 Jun 2019 10:20:44 +0000 (10:20 +0000)]
util-linux: Update to 2.34

Update util-linux to 2.34
Refresh patch

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
5 years agotools/gengetopt: Update to 2.23
Daniel Engberg [Sat, 15 Jun 2019 09:07:53 +0000 (09:07 +0000)]
tools/gengetopt: Update to 2.23

Update gengetopt to 2.23
Remove 100-dependency_fix.patch, fixed upstream
Rework no tests and docs patch
Fix typo in copyright section

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
5 years agoath79: Add missing IMAGE_SIZE for Etactica EG200
Adrian Schmutzler [Thu, 4 Jul 2019 11:54:18 +0000 (13:54 +0200)]
ath79: Add missing IMAGE_SIZE for Etactica EG200

The Etactica EG200 is the only device in ath79 despite nand
target that lacks IMAGE_SIZE.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agozynq: convert to multi-variable device title
Luis Araneda [Thu, 4 Jul 2019 23:35:38 +0000 (19:35 -0400)]
zynq: convert to multi-variable device title

Use the newly introduced variables to better differentiate
between vendor, model and revision

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
5 years agoiperf3: update to 3.7
DENG Qingfang [Fri, 5 Jul 2019 18:42:23 +0000 (02:42 +0800)]
iperf3: update to 3.7

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
5 years agokmod-sched-cake: drop out of tree package, use kernel version
Kevin Darbyshire-Bryant [Wed, 3 Jul 2019 08:22:55 +0000 (09:22 +0100)]
kmod-sched-cake: drop out of tree package, use kernel version

CAKE made it to kernel 4.19 and since OpenWrt now at kernel 4.19 we can
drop the out of tree cake package in base repository.

Add kmod-sched-cake to netsupport so package dependencies are still met.
Similarly CAKE is retained as an optional qdisc module to avoid base
scheduler package size implications.

Backport upstream patches from k5.1 to address some small bugs and
support fwmark usage.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
5 years agobase-files: drop support for NAND upgrade in platform_pre_upgrade()
Rafał Miłecki [Tue, 2 Jul 2019 14:10:57 +0000 (16:10 +0200)]
base-files: drop support for NAND upgrade in platform_pre_upgrade()

With bcm53xx switched to the new procedure there is no more need for
keeping that backward compatibility code.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agobcm53xx: sysupgrade: call nand_do_upgrade() from platform_do_upgrade()
Rafał Miłecki [Tue, 2 Jul 2019 14:10:56 +0000 (16:10 +0200)]
bcm53xx: sysupgrade: call nand_do_upgrade() from platform_do_upgrade()

Calling nand_do_upgrade() from platform_pre_upgrade() was obsoleted in
the commit 30f61a34b4cf ("base-files: always use staged sysupgrade").

This change brings bcm53xx in sync with other targets and allows
dropping backward compatibility code. It shouldn't change any user
visible behavior.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agobase-files: drop unused jffs2_copy_config()
Rafał Miłecki [Tue, 2 Jul 2019 11:16:08 +0000 (13:16 +0200)]
base-files: drop unused jffs2_copy_config()

Its last usage was dropped back in 2013 in the commit b95bdc8ab56e
("kernel/base-files: clean up old code related to refreshing mtd
partitions, it is no longer used anywhere").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agokernel: Add missing includes mtdsplit_*.c
Hauke Mehrtens [Fri, 28 Jun 2019 19:52:41 +0000 (21:52 +0200)]
kernel: Add missing includes mtdsplit_*.c

This fixes the following compile problem with kernel 4.9 on lantiq:
drivers/mtd/mtdsplit/mtdsplit_uimage.c:244:34: error: array type has incomplete element type 'struct of_device_id'
 static const struct of_device_id mtdsplit_uimage_of_match_table[] = {
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/mtd/mtdsplit/mtdsplit_uimage.c:245:4: error: field name not in record or union initializer
  { .compatible = "denx,uimage" },

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 years agoath10k-firmware: Fix mirror hash
Hauke Mehrtens [Sun, 7 Jul 2019 11:30:48 +0000 (13:30 +0200)]
ath10k-firmware: Fix mirror hash

Fixes: 7f79882d44ba ("ath10k-firmware: update board-2.bin for community firmwares")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 years agokernel: Fix MIPS bounds check virt_addr_valid
Hauke Mehrtens [Mon, 17 Jun 2019 18:25:56 +0000 (20:25 +0200)]
kernel: Fix MIPS bounds check virt_addr_valid

This is pending to get into the upstream kernel.
This fixes a bug in the upstream kernel which was added to stable some
time ago.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 years agoath79: increase kernel partition size for CPE610v1
Andrew Cameron [Sun, 30 Jun 2019 02:45:09 +0000 (21:45 -0500)]
ath79: increase kernel partition size for CPE610v1

Increase the Kernel partition to address the issue discussed here
https://forum.openwrt.org/t/cpe610-v1-sysupgrade-bin-missing-too-big/39637/5
Switch Back to the okli Loader to support increased partition size

Signed-off-by: Andrew Cameron <apcameron@softhome.net>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [add <> for e-mail]
5 years agozram-swap: Add extra commands for status/compaction
Emil Muratov [Sun, 24 Feb 2019 07:00:03 +0000 (10:00 +0300)]
zram-swap: Add extra commands for status/compaction

This patch adds two new commands:
  zram status - shows memory stats for all zram swaps
  zram compaction - trigger compaction for all zram swaps

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
5 years agobusybox: enable swapon/off by default to make it consistent with mkswap
Emil Muratov [Thu, 1 Nov 2018 18:53:43 +0000 (21:53 +0300)]
busybox: enable swapon/off by default to make it consistent with mkswap

  No size increase on busybox binary.
  Since busybox mkswap is already enabled by default it seems reasonable
  to enable swapon/off too. For ex. this obsoletes installing block-mount
  dependency for zram-swap.

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
5 years agozram-swap: Add zram compaction and statistics info output
Emil Muratov [Wed, 31 Oct 2018 21:16:58 +0000 (00:16 +0300)]
zram-swap: Add zram compaction and statistics info output

Executing '/etc/init.d/zram start' during runtime (with a swap being already
mounted) triggers zram device compaction and prints out nice stats info about
zram memory usage

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [use IEC's MiB unit]
5 years agozram-swap: Fix busybox dependency check
Emil Muratov [Wed, 31 Oct 2018 08:43:49 +0000 (11:43 +0300)]
zram-swap: Fix busybox dependency check

   - fix dependency on BUSYBOX_CONFIG_SWAPONOFF (removed in 84da2a6)
   - add busybox defaults checking (fix zram-swap always installs swap-utils
     and libblkid as dependency, even if busybox includes mkswap by default)

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
5 years agogemini: Add SL93512r missing ImageInfo file
Linus Walleij [Sun, 7 Jul 2019 00:10:42 +0000 (02:10 +0200)]
gemini: Add SL93512r missing ImageInfo file

Somehow I missed to add the magical image cooking file
for the SL93512r. Fix it.

Fixes: 18e2053becb8 ("gemini: Add StorLink SL93512r images")
Reported-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [added Fixes,
changed subject]

5 years agogemini: Fix device name for StorLink SL93512r
Adrian Schmutzler [Fri, 5 Jul 2019 16:56:06 +0000 (18:56 +0200)]
gemini: Fix device name for StorLink SL93512r

This has been reported by Chen Minqiang (@ptpt52).

Reported-by: Chen Minqiang <ptpt52@gmail.com>
Fixes: 18e2053becb8 ("gemini: Add StorLink SL93512r images")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [Added tags]
5 years agolibnftnl: bump to version 1.1.3
Konstantin Demin [Mon, 1 Jul 2019 14:15:50 +0000 (17:15 +0300)]
libnftnl: bump to version 1.1.3

bump ABI version accordingly (thanks to Jo-Philipp Wich).

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
5 years agoramips: Fix compatible for YUKAI Engineering BOCCO
Adrian Schmutzler [Thu, 27 Jun 2019 17:27:10 +0000 (19:27 +0200)]
ramips: Fix compatible for YUKAI Engineering BOCCO

Looks like an undetected copy/paste error.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agobase-files: Really check path in get_mac_binary
Adrian Schmutzler [Thu, 4 Jul 2019 21:28:44 +0000 (23:28 +0200)]
base-files: Really check path in get_mac_binary

Currently, path argument is only checked for being not empty.

This changes behavior to actually check whether path exists.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years agompc85xx: Use gzip compressed kernel on HiveAP-330
Pawel Dembicki [Thu, 4 Jul 2019 11:17:02 +0000 (13:17 +0200)]
mpc85xx: Use gzip compressed kernel on HiveAP-330

After commit 1e41de2f48 ("mpc85xx: convert TL-WDR4900 v1 to simpleImage")
XZ compression of zImage was enabled. This change exposed a problem with
the HiveAP-330 images, which was fixed by foregoing the compression on
the kernel altogether with commit 98089bb8ba8
("mpc85xx: Use uncompressed kernel on the HiveAP-330").

This patch adds back the gzip compression of the kernel image by
utilizing the generic OpenWRT uImage method instead of relying on
the PowerPC bootwrapper script that did it previously.

Compile-tested: p1020/hiveap-330

Tested-by: Chris Blake <chrisrblake93@gmail.com> [run-tested]
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[filled in even more text]

5 years agohostapd: adjust removed wolfssl options
Eneas U de Queiroz [Mon, 1 Jul 2019 16:40:01 +0000 (13:40 -0300)]
hostapd: adjust removed wolfssl options

This edjusts the selection of recently removed wolfssl options which
have always been built into the library even in their abscence.
Also remove the selection of libwolfssl itself, allowing the library to
be built as a module.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
5 years agowolfssl: update to 4.0.0-stable
Eneas U de Queiroz [Mon, 1 Jul 2019 16:40:00 +0000 (13:40 -0300)]
wolfssl: update to 4.0.0-stable

Removed options that can't be turned off because we're building with
--enable-stunnel, some of which affect hostapd's Config.in.
Adjusted the title of OCSP option, as OCSP itself can't be turned off,
only the stapling part is selectable.
Mark options turned on when wpad support is selected.
Add building options for TLS 1.0, and TLS 1.3.
Add hardware crypto support, which due to a bug, only works when CCM
support is turned off.
Reorganized option conditionals in Makefile.
Add Eneas U de Queiroz as maintainer.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
5 years agowolfssl: update to 3.15.7, fix Makefile
Eneas U de Queiroz [Mon, 1 Jul 2019 16:39:59 +0000 (13:39 -0300)]
wolfssl: update to 3.15.7, fix Makefile

This includes a fix for a medium-level potential cache attack with a
variant of Bleichenbacher’s attack.  Patches were refreshed.
Increased FP_MAX_BITS to allow 4096-bit RSA keys.
Fixed poly1305 build option, and some Makefile updates.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
5 years agoath10k-firmware: update board-2.bin for community firmwares
Christian Lamparter [Sat, 29 Jun 2019 14:56:31 +0000 (16:56 +0200)]
ath10k-firmware: update board-2.bin for community firmwares

This patch updates the board-2.bin for the default
IPQ4019, QCA9984 and QCA9888 ath10k-firmware-xyz-ct
and -ct-htt firmwares.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
5 years agotoolchain: Don't force GCC8 on ARC
Rosen Penev [Thu, 20 Jun 2019 19:33:04 +0000 (12:33 -0700)]
toolchain: Don't force GCC8 on ARC

This prevents overriding it to use GCC9.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[changed logic to not fall back on 7.4]

5 years agogdb-arc: Remove
Rosen Penev [Mon, 17 Jun 2019 23:44:12 +0000 (16:44 -0700)]
gdb-arc: Remove

Normal GDB has supported ARC since 8.0

Signed-off-by: Rosen Penev <rosenp@gmail.com>
5 years agogdb: Remove !arc dependency
Rosen Penev [Mon, 17 Jun 2019 23:43:51 +0000 (16:43 -0700)]
gdb: Remove !arc dependency

Supported since 8.0.

Added uClibc-ng patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
5 years agokernel: 4.19: Backport usb dwc2 lpm mode hw check
Martin Schiller [Fri, 5 Jul 2019 12:10:07 +0000 (14:10 +0200)]
kernel: 4.19: Backport usb dwc2 lpm mode hw check

This patch backports verbatim the commit from Linux 5.2-rc7 that fixes
the warnings about invalid lpm related parameters on hardware which
don't that.

This is the case for e.g. lantiq xrx200 targets.

Supported only in Linux 4.17 an later.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[refresh patches, fix commit title]
Signed-off-by: Mathias Kresin <dev@kresin.me>
5 years agolantiq: fix etop compiler warnings
Mathias Kresin [Thu, 4 Jul 2019 20:43:00 +0000 (22:43 +0200)]
lantiq: fix etop compiler warnings

The following warnings are introduced by our own patches:

 lantiq_etop.c:173:1: warning: no semicolon at end of struct or union
 };
 ^
 lantiq_etop.c: In function 'ltq_etop_change_mtu':
 lantiq_etop.c:725:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  int max = ETH_HLEN + VLAN_HLEN + new_mtu + ETH_FCS_LEN;
  ^~~

Signed-off-by: Mathias Kresin <dev@kresin.me>