[PATCH] netifd: add support of GRE tunnel ignore-df option

2023-04-17 Thread Denis Kalashnikov
mentation" back). But with "ignore-df" packets with DF=1 will be fragmented. Signed-off-by: Denis Kalashnikov --- system-linux.c | 5 + system.c | 1 + system.h | 1 + 3 files changed, 7 insertions(+) diff --git a/system-linux.c b/system-linux.c index e4041fb..43974

[RFC] ath79: MikroTik RB912UAG-2HPnD: add initial value to SSR

2022-01-20 Thread Denis Kalashnikov
From: Denis Kalashnikov ar71xx mach-rb91x.c and others set SSR init value through platform data (this ability is added to upstream drivers/gpio/gpio-74x164.c by 451-gpio-74x164-improve-platform-device-support.patch). When we ported RB912UAG-2HPnD to ath79, we used DTS gpio-exports instead

[PATCH v2] ath79: add support for reset key on MikroTik RB912UAG-2HPnD

2022-01-19 Thread Denis Kalashnikov
t an error and occurs when the gpio-latch probe function is called before the rb91x-key probe. We fix these related things here too. Signed-off-by: Denis Kalashnikov --- Changelog: v1 --> v2: * Remove support for kernel 5.4, * gpio-latch and rb91x-nand don't report about -EPROBE_DEFER. ---

[PATCH v2 2/2] generic: platform/mikrotik: use MTD notifier

2021-11-16 Thread Denis Kalashnikov
the init/exit routines can now be called outside of the kernel normal init/exit calls, they cannot be jettisoned and must always be available: the __init and __exit qualifiers are thus removed. Reported-by: Denis Kalashnikov Signed-off-by: Denis Kalashnikov Signed-off-by: Thibaut VARĂˆNE --- v2

[PATCH v2 1/2] ath79: add support for reset key on MikroTik RB912UAG-2HPnD

2021-11-16 Thread Denis Kalashnikov
sleep" suffix to several gpiolib calls in gpio-latch. Signed-off-by: Denis Kalashnikov --- Changes in v2: * Fix identations of switch statements. target/linux/ath79/config-5.10| 1 + target/linux/ath79/config-5.4 | 1 + ...9342_mikrotik_routerbo

[PATCH v2 0/2] ath79: add a support for reset key on MikroTik RB912

2021-11-16 Thread Denis Kalashnikov
-2HPnD. Tested kernels 5.4 and 5.10. Changes in v2: * In mikrotik routerboot module use MTD notifier instead of late_initcall. This is approved by the module author. Denis Kalashnikov (2): ath79: add support for reset key on MikroTik RB912UAG-2HPnD generic: platform/mikrotik: use MTD notifier

[PATCH 1/2] ath79: add support for reset key on MikroTik RB912UAG-2HPnD

2021-11-09 Thread Denis Kalashnikov
sleep" suffix to several gpiolib calls in gpio-latch. Signed-off-by: Denis Kalashnikov --- target/linux/ath79/config-5.10| 1 + target/linux/ath79/config-5.4 | 1 + ...9342_mikrotik_routerboard-912uag-2hpnd.dts | 23 +- .../ath79/files/drivers/gpio/gp

[PATCH 0/2] ath79: add a support for reset key on MikroTik RB912

2021-11-09 Thread Denis Kalashnikov
-2HPnD. Tested kernels 5.4 and 5.10. Denis Kalashnikov (2): ath79: add support for reset key on MikroTik RB912UAG-2HPnD ath79: mikrotik: Change the moment of routerboot partition parser init target/linux/ath79/config-5.10| 1 + target/linux/ath79/config-5.4

[PATCH 2/2] ath79: mikrotik: Change the moment of routerboot partition parser init

2021-11-09 Thread Denis Kalashnikov
x type managed txpower 20.00 dBm Signed-off-by: Denis Kalashnikov --- .../linux/generic/files/drivers/platform/mikrotik/routerboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/generic/files/drivers/platform/mikrotik/routerboot.c

[PATCH 3/3] ath79: add support for MikroTik RouterBOARD 912UAG-2HPnD

2021-05-27 Thread Denis Kalashnikov
From: Denis Kalashnikov This board has been supported in the ar71xx. Links: * https://mikrotik.com/product/RB912UAG-2HPnD * https://openwrt.org/toh/hwdata/mikrotik/mikrotik_rb912uag-2hpnd Hardware: * SoC: Atheros AR9342, * RAM: DDR 64MB, * SPI NOR: 64KB, * NAND: 128MB, * Ethernet: x1 10/100

[PATCH 2/3] ath79: add NAND driver for MikroTik RB91xG series

2021-05-27 Thread Denis Kalashnikov
From: Denis Kalashnikov Main part is copied from ar71xx original driver rb91x_nand written by Gabor Juhos . What is done: * Support of kernel 5.4 and 5.10, * DTS support, * New gpio API (gpiod_*) support. Signed-off-by: Denis Kalashnikov --- Changelog: RFC v1 --> RFC v2 - Do not use

[PATCH 1/3] ath79: add gpio-latch driver for MikroTik RouterBOARDs

2021-05-27 Thread Denis Kalashnikov
From: Denis Kalashnikov This is a slighty modified version of ar71xx gpio-latch driver written by Gabor Juhos . Changes: * DTS support, * New gpio API (gpiod_*). Signed-off-by: Denis Kalashnikov --- Changelog: RFC v1 --> RFC v2 - Don't use MFD driver API anymore, - Use the new gpio

[PATCH 0/3] ath79: add support for MikroTik RouterBOARD 912UAG-2HPnD

2021-05-27 Thread Denis Kalashnikov
From: Denis Kalashnikov RB912 needs two ad hoc drivers: gpio-latch and rb91x_nand. So I've ported them from ar71xx and added DTS. In RFC v1 I added a MFD driver that provided API for manipulating shared gpio lines to gpio-latch and nand drivers. In RFC v2 I just ported gpio-latch and rb91x_nand

[RFC v2 2/3] ath79: add NAND driver for Mikrotik RB91xG series

2021-05-21 Thread Denis Kalashnikov
Main part is copied from ar71xx original driver rb91x_nand written by Gabor Juhos . What is done: * Support of kernel 5.4 and 5.10, * DTS support, * New gpio API (gpiod_*) support. Signed-off-by: Denis Kalashnikov --- Changelog: v1-->v2: - Do not use MFD driver API anymore. --- .../fi

[RFC v2 3/3] ath79: add support for Mikrotik RouterBoard 912G

2021-05-21 Thread Denis Kalashnikov
with sysfs led trigger timer). But kmod-gpio-beeper doesn't work -- we left this as is for now. You can flash image by sysupgrade utility or load it by net (by DHCP/TFTP, hold the button while booting). Co-Developed-by: Koen Vandeputte Signed-off-by: Denis Kalashnikov --- Changelog: v1->

[RFC v2 1/3] ath79: add gpio-latch driver for Mikrotik RouterBoards

2021-05-21 Thread Denis Kalashnikov
This is a slighty modified version of ar71xx gpio-latch driver written by Gabor Juhos . Changes: * DTS support, * New gpio API (gpiod_*). Signed-off-by: Denis Kalashnikov --- Changelog: v1-->v2: - Don't use MFD driver API anymore. --- .../ath79/files/drivers/gpio/gpio-latch.c |

[RFC 0/3] ath79: add support for Mikrotik RouterBoard 912G

2021-05-21 Thread Denis Kalashnikov
. Or may be there is a more general solution for this problem. Nevertheless all other seems to be working. Denis Kalashnikov (3): ath79: add gpio-latch driver for Mikrotik RouterBoards ath79: add NAND driver for Mikrotik RB91xG series ath79: add support for Mikrotik RouterBoard 912G .../dts

[PATCH 4/4] ath79: add support of Mikrotik RouterBoard 91xG series

2021-05-06 Thread Denis Kalashnikov
* 2.4 GHz Wi-Fi ('iw dev wlan0 scan' is working), * LEDs, What is not working: * USB port and mPCIe slot, * Beeper, * Button, You can flash image by sysupgrade utility or load it by net (by DHCP/TFTP, hold the button while booting). Signed-off-by: Denis Kalashnikov --

[PATCH 3/4] ath79: add NAND driver for Mikrotik RB91xG

2021-05-06 Thread Denis Kalashnikov
and a serial register nCS. So, we need a MFD driver that control access to these shared lines. Signed-off-by: Denis Kalashnikov --- .../files/drivers/mtd/nand/raw/nand_rb91x.c | 432 ++ target/linux/ath79/mikrotik/config-default| 1 + .../patches-5.4/939-mikrotik-rb91x.patch

[PATCH 1/4] ath79: add MFD driver (NAND and GPIO) for Mikrotik RB91xG

2021-05-06 Thread Denis Kalashnikov
provides API for separate NAND driver and latch-GPIO driver. This driver is used in place of the ar71xx gpio-latch driver. Signed-off-by: Denis Kalashnikov --- .../linux/ath79/files/drivers/mfd/rb91x-ngl.c | 331 ++ .../linux/ath79/files/include/mfd/rb91x-ngl.h | 59 target

[PATCH 2/4] ath79: add GPIO-latch driver for Mikrotik RB91xG

2021-05-06 Thread Denis Kalashnikov
-by: Denis Kalashnikov --- .../files/drivers/gpio/gpio-latch-rb91x.c | 127 ++ target/linux/ath79/mikrotik/config-default| 1 + .../patches-5.4/939-mikrotik-rb91x.patch | 23 3 files changed, 151 insertions(+) create mode 100644 target/linux/ath79/files/drivers/gpio

[PATCH 0/4] RFC: ath79: add support for Mikrotik RB91xG

2021-05-06 Thread Denis Kalashnikov
RB912UAG-2HPnD. Gigabit Ethernet, 2.4GHz Wi-Fi, sysupgrade and LEDs:) are working for me. Not working: beeper, button and USB port/mPCIe (has not tested yet). Denis Kalashnikov (4): ath79: add MFD driver (NAND and GPIO) for Mikrotik RB91xG ath79: add GPIO-latch driver for Mikrotik RB91xG ath79

[PATCH 0/4] RFC: ath79: add support for Mikrotik RB91xG

2021-05-06 Thread Denis Kalashnikov
RB912UAG-2HPnD. Gigabit Ethernet, 2.4GHz Wi-Fi, sysupgrade and LEDs:) are working for me. Not working: beeper, button and USB port/mPCIe (has not tested yet). Denis Kalashnikov (4): ath79: add MFD driver (NAND and GPIO) for Mikrotik RB91xG ath79: add GPIO-latch driver for Mikrotik RB91xG ath79

[OpenWrt-Devel] [PATCH] uqmi: separate into libuqmi library and uqmi util itself

2019-08-23 Thread Denis Kalashnikov
It is needed to reuse qmi code, e.g. in a modem manager util which is useful on routers with several cell modems. Signed-off-by: Denis Kalashnikov --- package/network/utils/uqmi/Makefile | 25 +- .../utils/uqmi/patches/1-libuqmi.patch| 46 +++ 2 files