Re: [PATCH 0/2] ath25: add 5.4 kernel support (not for merge)

2020-09-04 Thread Sergey Ryazanov
On Fri, Sep 4, 2020 at 12:54 PM Zoltan HERPAI wrote: >> On 09/04/2020 11:25, Adrian Schmutzler wrote: >> Zoltan HERPAI wrote: >>> Sure, a bit late, but there is hardware out there which would benefit from >>> recent OpenWrt (old ubnt gear, fonera, ... some of them 8/32). >>> But in terms of

[PATCH 0/2] ath25: add 5.4 kernel support (not for merge)

2020-09-03 Thread Sergey Ryazanov
version. Sergey Ryazanov (2): ath25: add kernel 5.4 support ath25: eth: fix crash on skb DMA (un-)map target/linux/ath25/Makefile | 1 + .../linux/ath25/{config-4.14 => config-5.4} | 73 +++ .../107-ar5312_gpio.patch | 20 ++--- .../

[PATCH 2/2] ath25: eth: fix crash on skb DMA (un-)map

2020-09-03 Thread Sergey Ryazanov
AR2315 Ethernet driver pass NULL instead of a real device pointer to DMA (un-)map calls. With kernel version 5.4 such behaviour causes a kernel panic. Fix this issue by preserving device pointer during the probe procedure and pass it to each skb data DMA (un-)map call. Signed-off-by: Sergey

[PATCH 1/2] ath25: add kernel 5.4 support

2020-09-03 Thread Sergey Ryazanov
Copy and refresh patches and config from 4.14. The only couple of fixes required to make kernel buildable: * rework ethernet supported link modes to linkmode bitmask; * drop erase callback invocation from AR2315 MTD driver. Signed-off-by: Sergey Ryazanov --- target/linux/ath25/Makefile

[OpenWrt-Devel] [PATCH] base-files: prevent issues w/ overlay on powerloss after sysupgrade

2020-04-24 Thread Sergey Ryazanov
as the previous configuration will be unpacked after the sysupgrade. Also sync the FS state after the sysupgrade.tgz archive removing to prevent duplicative extraction of a previous configuration. Tested with AMD Geode based board. Signed-off-by: Sergey Ryazanov --- package/base-files/files/etc

[OpenWrt-Devel] [PATCH] ar71xx: fix RouterBOARD Power LED default state

2018-10-25 Thread Sergey Ryazanov
: 6cad8ee0bd ("ar71xx: keep the RouterBOARD Power LED in On state") CC: Mathias Kresin Signed-off-by: Sergey Ryazanov --- Mathias, apply this patch to the stable branch too, please. --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c | 2 +- target/linux/ar71xx/files/arch/mips/

Re: [OpenWrt-Devel] [RFC 0/3] ath25: move Fonera 2.0g to subtarget

2018-06-04 Thread Sergey Ryazanov
Hello David, On Fri, Jun 1, 2018 at 11:14 AM, David Woodhouse wrote: > On Fri, 2018-06-01 at 03:36 +0300, Sergey Ryazanov wrote: >> This series adds a new ath25 subtarget for the Fonera 2.0g (FON2202) >> router. This router is unique since it have a USB port and uses PCI >>

[OpenWrt-Devel] [RFC 2/3] ath25: factor out Fonera 2.0g kernel options

2018-05-31 Thread Sergey Ryazanov
Disable SoCs and PCI options in the common ath25 kernel config and enable required options on per-subtarget basis. E.g. generic config activates all SoCs but keeps PCI support disabled, and fon2202 config activates only AR2315 but with the PCI support. Signed-off-by: Sergey Ryazanov --- target

[OpenWrt-Devel] [RFC 1/3] ath25: factor out Fonera 2.0g to subtarget

2018-05-31 Thread Sergey Ryazanov
port) to dedicated subtarget in order to debloat generic firmware. Signed-off-by: Sergey Ryazanov --- target/linux/ath25/Makefile| 5 +- target/linux/ath25/fon2202/profiles/00-default.mk | 16 + target/linux/ath25/fon2202/target.mk | 5 ++ .../a

[OpenWrt-Devel] [RFC 3/3] ath25: fon2202: add packages for USB support

2018-05-31 Thread Sergey Ryazanov
Add required packages for USB support to DEFAULT_PACKAGES of Fonera 2.0g subtarget. Signed-off-by: Sergey Ryazanov --- target/linux/ath25/fon2202/target.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/ath25/fon2202/target.mk b/target/linux/ath25/fon2202/target.mk index

[OpenWrt-Devel] [RFC 0/3] ath25: move Fonera 2.0g to subtarget

2018-05-31 Thread Sergey Ryazanov
, but on the other hand the 64kb alignment kills this reduction. See the size reduction details below. ELF LZMA Padded old generic 4209348 1368408 1376256 new generic 4079044 1328723 1376256 Sergey Ryazanov (3): ath25: factor out Fonera 2.0g to subtarget ath25

[OpenWrt-Devel] [PATCH 3/3] ath25: drop 4.9 kernel support

2018-05-21 Thread Sergey Ryazanov
--- target/linux/ath25/config-4.9 | 156 -- .../linux/ath25/patches-4.9/107-ar5312_gpio.patch | 212 --- .../linux/ath25/patches-4.9/108-ar2315_gpio.patch | 363 .../ath25/patches-4.9/110-ar2313_ethernet.patch| 1734

[OpenWrt-Devel] [PATCH 1/3] ath25: add kernel 4.14 support

2018-05-21 Thread Sergey Ryazanov
Copy and refresh patches and config from 4.9, no more work is need. Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> --- target/linux/ath25/config-4.14 | 171 ++ .../linux/ath25/patches-4.14/107-ar5312_gpio.patch | 212 +++ .../linux/ath25/patches-4.

[OpenWrt-Devel] [PATCH 0/3] ath25: update kernel from 4.9 to 4.14

2018-05-21 Thread Sergey Ryazanov
aka FON2202 (AR2315 based) * D-Link DIR-300 (AR2317 based) Sergey Ryazanov (3): ath25: add kernel 4.14 support ath25: switch to 4.14 kernel ath25: drop 4.9 kernel support target/linux/ath25/Makefile | 2 +- target/linux/ath25/{config-4.9 => config-4

[OpenWrt-Devel] [PATCH 2/3] ath25: switch to 4.14 kernel

2018-05-21 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> --- target/linux/ath25/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ath25/Makefile b/target/linux/ath25/Makefile index 27c2639659..cb8b7ec1be 100644 --- a/target/linux/ath25/Makefile +++ b/

[OpenWrt-Devel] [PATCH 6/6] kernel: enable THIN_ARCHIVES by default

2018-05-21 Thread Sergey Ryazanov
THIN_ARCHIVES option is enabled by default in the kernel configuration and no one target config disables it. So enable it by default and remove this symbol from target specific configs to keep them light. Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> --- target/linux/apm821xx/

[OpenWrt-Devel] [PATCH 3/6] kernel: disable DRM_LIB_RANDOM by default

2018-05-21 Thread Sergey Ryazanov
DRM_LIB_RANDOM config symbol selected only by DRM_DEBUG_MM_SELFTEST which is disable by default, so disable DRM_LIB_RANDOM by default too. Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> --- target/linux/apm821xx/config-4.14 | 1 - target/linux/archs38/config-4.14

[OpenWrt-Devel] [PATCH 5/6] kernel: enable FUTEX_PI by default

2018-05-21 Thread Sergey Ryazanov
New FUTEX_PI configuration symbol enabled if FUTEX and RT_MUTEX symbols are enabled. Both of these symbols are enabled by default in the generic config, so enable FUTEX_PI by default too to keep platform specific configs minimal. Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> ---

[OpenWrt-Devel] [PATCH 4/6] kernel: enable EXPORTFS by default

2018-05-21 Thread Sergey Ryazanov
OVERLAY_FS config symbol selects EXPORTFS since 4.12 kernel, we have OVERLAY_FS enabled by default, so enable EXPORTFS in the generic config of 4.14 and remove this option from platform specific configs. Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> --- target/linux/apm821xx/

[OpenWrt-Devel] [PATCH 1/6] kernel: disable ARCH_WANTS_THP_SWAP by default

2018-05-21 Thread Sergey Ryazanov
Only one arch (x86_64) enables this option. So disable ARCH_WANTS_THP_SWAP by default and remove referencies to it from all configs (except x86_64) to make them clean. Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> --- target/linux/apm821xx/config-4.14 | 1 - target/linux/a

[OpenWrt-Devel] [PATCH 2/6] kernel: disable DMA_{NOOP|VIRT}_OPS by default

2018-05-21 Thread Sergey Ryazanov
These options do not used by any supported arch, so disable them by default to make arch configs a bit more clean. Signed-off-by: Sergey Ryazanov <ryazanov@gmail.com> --- target/linux/apm821xx/config-4.14 | 2 -- target/linux/archs38/config-4.14 | 2 -- target/linux/ath79/

[OpenWrt-Devel] [PATCH 0/6] random kernel config fixes

2018-05-21 Thread Sergey Ryazanov
Hello, this series is a set of cosmetic fixes for kernel configuration, what were spotted during ath25 migration from kernel 4.9 to kernel 4.14. Sergey Ryazanov (6): kernel: disable ARCH_WANTS_THP_SWAP by default kernel: disable DMA_{NOOP|VIRT}_OPS by default kernel: disable DRM_LIB_RANDOM

Re: [OpenWrt-Devel] WRT300N v2 AR5416 (was:MV88E6060 switch)

2017-10-15 Thread Sergey Ryazanov
On Mon, Oct 16, 2017 at 12:50 AM, Nerijus Baliunas wrote: > WRT300N v2 has AR5416 card, so the driver should be ath9k. I enabled > kmod-ath9k, but did not check "Support chips used in PC OEM cards" and > "Enable TX99 support (WARNING: testing only, breaks normal

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Thu, Oct 12, 2017 at 2:05 AM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Thu, 12 Oct 2017 01:30:35 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: > >> Try this patch, it should reduce the memory demand of the ethernet >> driver,

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Thu, Oct 12, 2017 at 12:29 AM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Thu, 12 Oct 2017 00:15:15 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: >> Can you boot in failsafe mode again, check free memory while the >> interface is Up

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 11:44 PM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Wed, 11 Oct 2017 23:28:00 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: > >> > root@LEDE:/# cat /proc/meminfo >> > MemTotal: 12232 kB >> &

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 11:01 PM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Wed, 11 Oct 2017 22:50:40 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: > >> Khm, according to wikidevi your router is equipped with 16MB of RAM, >> th

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 7:17 PM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Wed, 11 Oct 2017 18:53:40 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: > >> A-ha! The interface survives the down/up circle but does not survive >> the init p

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 3:17 PM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Wed, 11 Oct 2017 14:53:16 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: >> Ok. At least we know now that the switch functioning (even without a >> dedicated dr

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 12:43 PM, Nerijus Baliunas wrote: > This works: > = FAILSAFE MODE active > # ifconfig -a > eth0 Link encap:Ethernet HWaddr 00:18:39:21:0D:AE > inet addr:192.168.1.1 Bcast:192.168.1.255

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-10 Thread Sergey Ryazanov
On Mon, Oct 9, 2017 at 1:58 AM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Mon, 9 Oct 2017 01:31:29 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: > >> > Just tried: >> > # ifconfig eth0 192.168.0.10 up >> > ifconfig: S

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-08 Thread Sergey Ryazanov
On Mon, Oct 9, 2017 at 12:00 AM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Sun, 8 Oct 2017 23:44:58 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: >> > I assigned IP with a command >> > ip a a 192.168.0.10/24 dev eth0 >&g

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-08 Thread Sergey Ryazanov
On Sun, Oct 8, 2017 at 11:12 PM, Nerijus Baliunas wrote: > I assigned IP with a command > ip a a 192.168.0.10/24 dev eth0 > > but ping from PC does not answer. > > ifconfig -a shows a few RX and TX packets: > eth0 Link encap:Ethernet HWaddr 00:18:39:21:0D:AE >

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-02 Thread Sergey Ryazanov
Hello Nerijus, On Fri, Sep 29, 2017 at 7:32 PM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Fri, 8 Sep 2017 22:50:13 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: >> >> >> Did you see the "Marvell 88E6060 PHY driver at

Re: [OpenWrt-Devel] MV88E6060 switch

2017-09-08 Thread Sergey Ryazanov
On Fri, Jul 28, 2017 at 1:03 AM, Nerijus Baliunas <neri...@users.sourceforge.net> wrote: > On Thu, 27 Jul 2017 23:43:19 +0300 Sergey Ryazanov <ryazanov@gmail.com> > wrote: > >> >> Did you see the "Marvell 88E6060 PHY driver at

Re: [OpenWrt-Devel] MV88E6060 switch

2017-07-20 Thread Sergey Ryazanov
Hello Nerijus, Friday, July 21, 2017, 12:49:29 AM, you wrote: > 2017-07-21 00:36, Sergey Ryazanov rašė: >>> No received/sent packets on br-lan and eth0 before and after modprobe >>> mv88e6060.ko. >> >> Did you saw the "Marvel 88E6060 PHY driver atta

Re: [OpenWrt-Devel] MV88E6060 switch

2017-07-20 Thread Sergey Ryazanov
Hello Nerijus, Wednesday, July 19, 2017, 1:00:43 PM, you wrote: > 2017-07-19 04:02, Sergey Ryazanov rašė: >>> Linksys WRT300N v2.0 has Marvell 88e6060 switch. But ixp4xx arch does not >>> have >>> its driver enabled (ar71xx has it). I added CONFIG_NET_DSA_MV88E6

Re: [OpenWrt-Devel] MV88E6060 switch

2017-07-18 Thread Sergey Ryazanov
Forgot CC lede-dev > Linksys WRT300N v2.0 has Marvell 88e6060 switch. But ixp4xx arch does not have > its driver enabled (ar71xx has it). I added CONFIG_NET_DSA_MV88E6060=m, > but when I modprobe mv88e6060.ko, nothing happens. It seems driver does not > hook > on any hardware: This happened

Re: [OpenWrt-Devel] MV88E6060 switch

2017-07-18 Thread Sergey Ryazanov
On Mon, Jul 17, 2017 at 5:29 PM, Nerijus Baliunas wrote: > Linksys WRT300N v2.0 has Marvell 88e6060 switch. But ixp4xx arch does not have > its driver enabled (ar71xx has it). I added CONFIG_NET_DSA_MV88E6060=m, > but when I modprobe mv88e6060.ko, nothing happens.

Re: [OpenWrt-Devel] SVN to GIT transition

2015-10-12 Thread Sergey Ryazanov
Too many voices, which blame svn and almost no advocates. So let me change this situation. As an occasional patch maker, I am fairly happy with current workflow based on git+svn mix. I *think* that this is a good solution exactly in this case and for this project. May be some random project could

Re: [OpenWrt-Devel] SVN to GIT transition

2015-10-12 Thread Sergey Ryazanov
2015-10-12 15:04 GMT+03:00 Felix Fietkau : > While it works fine for packages, I don't think the pull request stuff > is very usable for OpenWrt core, which has a more centralized > development model. > One reason why we haven't moved the main repo to git yet is that we lose >

Re: [OpenWrt-Devel] [PATCH] spi-ks8995: switch to upstream

2015-04-01 Thread Sergey Ryazanov
. All other code are the same. John On 01/04/2015 01:50, Sergey Ryazanov wrote: This driver is upstream since 2012 (commit: a8e510f682f), so switch to it and remove own sources. Also place it under Network Devices menu together with other phy drivers. Signed-off-by: Sergey Ryazanov

[OpenWrt-Devel] [PATCH] spi-ks8995: switch to upstream

2015-03-31 Thread Sergey Ryazanov
This driver is upstream since 2012 (commit: a8e510f682f), so switch to it and remove own sources. Also place it under Network Devices menu together with other phy drivers. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- package/kernel/linux/modules/netdevices.mk | 17 ++ package

Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for the UniFi AP Outdoor Plus

2015-03-21 Thread Sergey Ryazanov
2015-03-21 12:16 GMT+03:00 Stefan Rompf ste...@loplof.de: -The RF filter is controlled by the GPIO pins on the AR928x wifi chip via some kind of serial protocol. -The functions responsible for the filter are ath_hal_hsr_init(), called once on initialisation, ath_hal_hsr_disable() and

Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for the UniFi AP Outdoor Plus

2015-03-17 Thread Sergey Ryazanov
2015-03-17 23:15 GMT+03:00 Stefan Rompf ste...@loplof.de: Possibly, you could see some changes during change. Try check GPIO pins with oscillograph during channel change. Unfortunately opening the case is not an option. You should be a wizard to reveal hw protocol without touching hw :) Or

Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for the UniFi AP Outdoor Plus

2015-03-16 Thread Sergey Ryazanov
Hello Stefan, 2015-03-16 23:36 GMT+03:00 Stefan Rompf ste...@loplof.de: However, independant of the channel selected the ports are always set to 0x00081405 (or 0x00081404 or 0x00081406 depending on the LED setting): BZ.v3.2.7# /tmp/io -4 -r 0x18040004 18040004: 00081405 If anyone has

[OpenWrt-Devel] [PATCH 26/33] atheros: v3.18: cleanup includes

2015-03-12 Thread Sergey Ryazanov
Remove odd and add missed includes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 49 +++--- .../patches-3.18/101-early-printk-support.patch| 3 +- .../atheros/patches-3.18/105-ar2315_pci.patch | 4

[OpenWrt-Devel] [PATCH 23/33] atheros: v3.18: switch to IRQ domain

2015-03-12 Thread Sergey Ryazanov
Rework MISC and PCI IRQ controllers code to use IRQ domains and bitops. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/config-3.18 | 1 + target/linux/atheros/patches-3.18/100-board.patch | 232 - .../patches-3.18/101-early

[OpenWrt-Devel] [PATCH 21/33] atheros: v3.18: remap flash for boardconfig parsing

2015-03-12 Thread Sergey Ryazanov
Rework boardconfig handling code to honestly remap flash memory region. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 137 ++--- .../atheros/patches-3.18/102-ar5312_gpio.patch | 2 +- .../atheros/patches-3.18

[OpenWrt-Devel] [PATCH 01/33] atheros: add v3.18 support

2015-03-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/{config-3.14 = config-3.18} | 10 +++--- .../atheros/{patches-3.14 = patches-3.18}/100-board.patch | 4 ++-- .../101-early-printk-support.patch | 2 +- .../{patches

[OpenWrt-Devel] [PATCH 31/33] atheros: remove odd board check during image build

2015-03-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/image/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/linux/atheros/image/Makefile b/target/linux/atheros/image/Makefile index a31bf6a..86f2d44 100644 --- a/target/linux/atheros/image/Makefile

[OpenWrt-Devel] [PATCH 28/33] atheros: v3.18: renumber backported patches

2015-03-12 Thread Sergey Ryazanov
Move first 3 patches to 0xx numbers range to denote that this is backported code and they should be removed when we update kernel to version = 3.19 Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/{100-board.patch = 010-board.patch}| 0 .../{101

[OpenWrt-Devel] [PATCH 08/33] atheros: v3.18: update names and declarations

2015-03-12 Thread Sergey Ryazanov
Sync functions, variables and enums names with upstream. Mostly replace 'ar231x_' prefix by 'ath25_'. No functional changes, except few 'int' - 'unsigned' changes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 416

[OpenWrt-Devel] [PATCH 09/33] atheros: v3.18: change calls logic

2015-03-12 Thread Sergey Ryazanov
Check SoC family (AR5312+ or AR2315+) before call instead of checking it inside the called function. Also convert ar{5312,2315}_init_device() function to void, since they both return zero and nobody care about return value. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux

[OpenWrt-Devel] [PATCH 12/33] atheros: v3.18: relocate PCI host DMA base definition

2015-03-12 Thread Sergey Ryazanov
Put AR2315_PCI_HOST_SDRAM_BASEADDR macro to DMA header, since this is arbitrary value and not some hw specific constant. Also this relocation decouples dma from HW specific header. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 19

[OpenWrt-Devel] [PATCH 17/33] atheros: v3.18: pass PCI IRQ and I/O mem via resources

2015-03-12 Thread Sergey Ryazanov
Pass PCI IRQ and I/O memory ranges via platform device resources, this change makes PCI controller driver independed from arch headers, so also remove few includes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../atheros/patches-3.18/105-ar2315_pci.patch | 71

[OpenWrt-Devel] [PATCH 16/33] atheros: v3.18: remap PCI controller MMR memory

2015-03-12 Thread Sergey Ryazanov
Honestly remap PCI controller MMR and use accessor functions to interact with registers. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 3 +- .../atheros/patches-3.18/105-ar2315_pci.patch | 135 + 2 files

[OpenWrt-Devel] [PATCH 13/33] atheros: v3.18: rearrange PCI regs definitions

2015-03-12 Thread Sergey Ryazanov
Move PCI controller configuration registers from generic header to driver source. No functional changes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 93 +- .../atheros/patches-3.18/105-ar2315_pci.patch | 104

[OpenWrt-Devel] [PATCH 25/33] atheros: v3.18: rearrange code between patches

2015-03-12 Thread Sergey Ryazanov
Cleanup board patch by moving code to specific patches, and factor out leds to separate patch. No functional changes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 331 + .../patches-3.18/101-early-printk

[OpenWrt-Devel] [PATCH 22/33] atheros: v3.18: update register names

2015-03-12 Thread Sergey Ryazanov
Make register names more consistent, mostly add appropriate prefix (AR5312_ or AR2315_) or _BASE suffix. Also add macro to simplify mask and shift operation. No functional changes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 381

[OpenWrt-Devel] [PATCH 18/33] atheros: v3.18: cleanup register headers

2015-03-12 Thread Sergey Ryazanov
AFAIK, no one AR2315+ chip (AR2315, AR2316, AR2317, AR2318) does not contain IR block, so remove IR registers definitions. Also remove few unused macroses. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 64 +++ 1

[OpenWrt-Devel] [PATCH 20/33] atheros: v3.18: make registers headers local

2015-03-12 Thread Sergey Ryazanov
There are no external users (last one was PCI driver) for these headers, so move them to arch directory. Few macroses from ar231x.h header moved to devices.h and file was removed. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 36

[OpenWrt-Devel] [PATCH 29/33] atheros: switch to 3.18

2015-03-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/atheros/Makefile b/target/linux/atheros/Makefile index 3983ff7..170d4af 100644 --- a/target/linux/atheros/Makefile +++ b/target

[OpenWrt-Devel] [PATCH 15/33] atheros: v3.18: add context container for PCI driver

2015-03-12 Thread Sergey Ryazanov
Add container and place all context specific variables and structure to it. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../atheros/patches-3.18/105-ar2315_pci.patch | 123 - 1 file changed, 70 insertions(+), 53 deletions(-) diff --git a/target/linux

[OpenWrt-Devel] [PATCH 14/33] atheros: v3.18: move PCI enable code to arch

2015-03-12 Thread Sergey Ryazanov
Move PCI host interface enable code to arch, since it touches generic SoC registers outside the PCI MMR region. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../atheros/patches-3.18/105-ar2315_pci.patch | 44 +++--- 1 file changed, 23 insertions(+), 21 deletions

[OpenWrt-Devel] [PATCH 00/33] atheros: switch to 3.18 and rename to ath25

2015-03-12 Thread Sergey Ryazanov
of conversion process. Sergey Ryazanov (33): atheros: add v3.18 support atheros: v3.18: rename ATHEROS_AR231X symbol to ATH25 atheros: v3.18: rename kernel platform to ath25 atheros: v3.18: rename platform header atheros: v3.18: remove odd header reset.h atheros: v3.18: remove eth platform

[OpenWrt-Devel] [PATCH 06/33] atheros: v3.18: remove eth platform device unused field

2015-03-12 Thread Sergey Ryazanov
Ethernet controller driver don't use boarddata directly, so remove corresponding field from its platform device structure. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 10 +++--- target/linux/atheros/patches-3.18/102

[OpenWrt-Devel] [PATCH 02/33] atheros: v3.18: rename ATHEROS_AR231X symbol to ATH25

2015-03-12 Thread Sergey Ryazanov
This patch starts upsteam ath25 code backporting. No functional changes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../patches-3.14/404-mtd-cybertan-trx-parser.patch | 2 +- target/linux/atheros/config-3.18 | 2 +- target/linux/atheros/patches-3.18/100

[OpenWrt-Devel] [PATCH 03/33] atheros: v3.18: rename kernel platform to ath25

2015-03-12 Thread Sergey Ryazanov
Rename platform source directory and asm includes directory. No functional changes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 116 ++--- .../patches-3.18/101-early-printk-support.patch| 10 +- .../atheros

[OpenWrt-Devel] [PATCH 04/33] atheros: v3.18: rename platform header

2015-03-12 Thread Sergey Ryazanov
Rename ar231x_platform.h to ath25_platform.h Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 10 +- target/linux/atheros/patches-3.18/105-ar2315_pci.patch | 2 +- target/linux/atheros/patches-3.18/110

[OpenWrt-Devel] [PATCH 27/33] atheros: v3.18: non-functional cleanup

2015-03-12 Thread Sergey Ryazanov
To finally sync code with upsream cleanup registers headers, and update several comments and kernel config symbols descriptions. No functional changes. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 701

[OpenWrt-Devel] [PATCH 32/33] Rename 'atheros' target to 'ath25'

2015-03-12 Thread Sergey Ryazanov
Rename 'atheros' target to more precise 'ath25'. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- package/kernel/mac80211/Makefile| 6 +++--- package/kernel/wrt55agv2-spidevs/Makefile | 2 +- target/linux/{atheros = ath25

[OpenWrt-Devel] [PATCH 33/33] ath25: set myself as maintainer

2015-03-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/ath25/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ath25/Makefile b/target/linux/ath25/Makefile index b1baa2e..ae867e9 100644 --- a/target/linux/ath25/Makefile +++ b/target/linux/ath25/Makefile

[OpenWrt-Devel] [PATCH 07/33] atheros: v3.18: cleanup cpu-feature-overrides.h

2015-03-12 Thread Sergey Ryazanov
Remove mention of undefined features. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 22 +- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/target/linux/atheros/patches-3.18/100-board.patch b/target

[OpenWrt-Devel] [PATCH 05/33] atheros: v3.18: remove odd header reset.h

2015-03-12 Thread Sergey Ryazanov
This header provides prototype for function without realization and users. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 9 - 1 file changed, 9 deletions(-) diff --git a/target/linux/atheros/patches-3.18/100-board.patch b

[OpenWrt-Devel] [PATCH 11/33] atheros: v3.18: rework early initialization

2015-03-12 Thread Sergey Ryazanov
Do not use prom_init() callback, do memory initialization in plat_mem_setup() callback and move serial port configuration to arch_initcall stage. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 71 +++--- .../atheros

[OpenWrt-Devel] [PATCH 10/33] atheros: v3.18: rearrange interrupt handling functions

2015-03-12 Thread Sergey Ryazanov
No functional changes, just change functions order in source file. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 142 ++--- .../atheros/patches-3.18/105-ar2315_pci.patch | 2 +- 2 files changed, 72 insertions

[OpenWrt-Devel] [PATCH 19/33] atheros: v3.18: remap main SoC MMR memory

2015-03-12 Thread Sergey Ryazanov
Honestly remap main SoC MMR mem and use accessor functions to interact with registers. Now registers defined relatively to base address (e.g. SDRAM controller base address). Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/100-board.patch | 409

[OpenWrt-Devel] [PATCH 24/33] atheros: v3.18: move GPIO patches behind PCI

2015-03-12 Thread Sergey Ryazanov
Move GPIO patches behind PCI patch, since they are not yet merged upstream. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.18/105-ar2315_pci.patch| 6 +++--- .../patches-3.18/{102-ar5312_gpio.patch = 107-ar5312_gpio.patch} | 0 .../patches

[OpenWrt-Devel] [PATCH 4/5] kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED

2015-03-05 Thread Sergey Ryazanov
Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since only one platfrom (omap) needs them. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/arm64/config-default | 1 - target/linux/at91/config-default | 1 - target/linux/bcm53xx/config

[OpenWrt-Devel] [PATCH 3/5] kernel: disbale HAMRADIO in generic config

2015-03-05 Thread Sergey Ryazanov
HAMRADIO by-default in generic config, add it to kmod-ax25 package and remove it from platform specific configs. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- package/kernel/linux/modules/netsupport.mk | 1 + target/linux/at91/config-default | 1 - target/linux/atheros/config

[OpenWrt-Devel] [PATCH 1/5] kernel: remove GENERIC_NET_UTILS from platform configs

2015-03-05 Thread Sergey Ryazanov
CONFIG_GENERIC_NET_UTILS is selected by CONFIG_NET and already enabled in generic config, so we don't need this symbol in platform specific configurations. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/ar71xx/config-3.14| 1 - target/linux/arm64/config-default

[OpenWrt-Devel] [PATCH 2/5] kernel: move MTD_SPLIT_SUPPORT to generic config

2015-03-05 Thread Sergey Ryazanov
CONFIG_MTD_SPLIT_SUPPORT symbol default value is 'y' and many platform specific configs explicitly enables it, while no one platform disables this symbol. So place it in generic config and remove from platform specific configs. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target

[OpenWrt-Devel] [PATCH 5/5] kernel: move KERNFS to generic config

2015-03-05 Thread Sergey Ryazanov
KERNFS symbol is selected by SYSFS, so place it in generic config. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/bcm53xx/config-3.18 | 1 - target/linux/brcm47xx/config-3.18 | 1 - target/linux/brcm63xx/config-3.18 | 1 - target/linux/cns3xxx

[OpenWrt-Devel] [PATCH 0/5] kernel: tiny config symbols cleanup

2015-03-05 Thread Sergey Ryazanov
Move some symbols from platform specific configs to generic config. Only compile tested against AR231x. But I hope that this series should not cause serious issues with other platforms, since changes are relatively simple :) Sergey Ryazanov (5): kernel: remove GENERIC_NET_UTILS from platform

[OpenWrt-Devel] [PATCH 1/2] ath5k: channel change fix

2015-03-03 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../patches/331-ath5k-channel-change-fix.patch | 145 + 1 file changed, 145 insertions(+) create mode 100644 package/kernel/mac80211/patches/331-ath5k-channel-change-fix.patch diff --git a/package/kernel/mac80211

[OpenWrt-Devel] [PATCH 2/2] ath5k: fix reset race

2015-03-03 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../patches/332-ath5k-fix-reset-race.patch | 104 + 1 file changed, 104 insertions(+) create mode 100644 package/kernel/mac80211/patches/332-ath5k-fix-reset-race.patch diff --git a/package/kernel/mac80211

[OpenWrt-Devel] [PATCH 0/2] ath5k: reset path fixes

2015-03-03 Thread Sergey Ryazanov
Couple of patches for the reset code path to address the invalid hw_rix warning and to make reset more robust. Sergey Ryazanov (2): ath5k: channel change fix ath5k: fix reset race .../patches/331-ath5k-channel-change-fix.patch | 145 + .../patches/332-ath5k-fix-reset

Re: [OpenWrt-Devel] [PATCH] lldpd: fix init script for multiple interfaces

2015-02-27 Thread Sergey Ryazanov
2015-02-27 19:23 GMT+03:00 Alexandru Ardelean ardeleana...@gmail.com: The lldpd daemon requires only 1 -I parameter with all interfaces joined with commas. So, it needs: /usr/sbin/lldpd -I lan1,lan2,...,lanX versus /usr/sbin/lldpd -I lan1 -I lan2 ... -I lanX The latter seems to take

[OpenWrt-Devel] [PATCH] ath5k: fix spontaneus AR5312 freezes

2015-02-03 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../330-ath5k-fix-spontaneus-AR5312-freezes.patch | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 package/kernel/mac80211/patches/330-ath5k-fix-spontaneus-AR5312-freezes.patch diff --git a/package

Re: [OpenWrt-Devel] Hardlock in ath9k

2015-01-18 Thread Sergey Ryazanov
2015-01-15 14:55 GMT+03:00 Felix Fietkau n...@openwrt.org: On 2015-01-15 12:48, Gianluca Anzolin wrote: Il 15/01/2015 04:25, Felix Fietkau ha scritto: On 2015-01-14 20:19, Gianluca Anzolin wrote: Hi, I was just testing this evening, just for fun, a new build with the just released musl libc

Re: [OpenWrt-Devel] [PATCH 1/9] [ar71xx/kernel] upgrade 3.10.49 to 3.10.50 - released 2014-07-28

2014-10-17 Thread Sergey Ryazanov
2014-10-17 17:22 GMT+04:00 Bastian Bittorf bitt...@bluebottle.com: * Rafał Miłecki zaj...@gmail.com [17.10.2014 13:46]: Why 9 patches instead of 1 (3.10.49 - 3.10.56)? Why only ar71xx? just for completeness and i wanted to test each version anyway if patches are affected. i can not test

Re: [OpenWrt-Devel] Watchdog support for AR531x and potential lockup

2014-10-14 Thread Sergey Ryazanov
2014-10-13 19:48 GMT+04:00 Sergey Korolew d...@bittu.org.ru: Hello ! 1. Watchdog timer always decrement until zero, it cant be stopped at all. SR Yep, same for AR2315+ SoCs. And if interrupt acknowledged by writing SR one to ISR, then the timer starts counting again from 0x and SR

Re: [OpenWrt-Devel] Atheros AR231x MIPS machine name (ex [PATCH 01/16] MIPS: ar231x: add common parts)

2014-10-06 Thread Sergey Ryazanov
2014-10-03 22:46 GMT+04:00, Sergey Ryazanov ryazanov@gmail.com: Add owrt mailing list to cc. Any suggestions? 2014-09-30 0:57 GMT+04:00 Sergey Ryazanov ryazanov@gmail.com: 2014-09-29 13:30 GMT+04:00 Jonas Gorski j...@openwrt.org: On Sun, Sep 28, 2014 at 8:33 PM, Sergey Ryazanov

[OpenWrt-Devel] Atheros AR231x MIPS machine name (ex [PATCH 01/16] MIPS: ar231x: add common parts)

2014-10-03 Thread Sergey Ryazanov
Add owrt mailing list to cc. Any suggestions? 2014-09-30 0:57 GMT+04:00 Sergey Ryazanov ryazanov@gmail.com: 2014-09-29 13:30 GMT+04:00 Jonas Gorski j...@openwrt.org: On Sun, Sep 28, 2014 at 8:33 PM, Sergey Ryazanov ryazanov@gmail.com wrote: Add common code for Atheros AR5312

Re: [OpenWrt-Devel] [PATCH 00/32] atheros: various cleanups

2014-09-12 Thread Sergey Ryazanov
if i merged them correctly/ All patches are merged correctly. Thank you. On 12/09/2014 04:00, Sergey Ryazanov wrote: Final cleanup series before pushing code upstream. Cleanup all sparce errors and almost all checkpatch warnings (have a few warnings agains config symbol help). And many more

[OpenWrt-Devel] [PATCH 00/32] atheros: various cleanups

2014-09-11 Thread Sergey Ryazanov
boards: DWL-2100AP (AR2313 based) FON2202 (AR2315 based) LiteStation2 (AR2316 based) DIR-300 (AR2317 based) Sergey Ryazanov (32): atheros: avoid extern prototypes atheros: add missing include atheros: use NULL instead of plain integer atheros: use static keywork for local code

[OpenWrt-Devel] [PATCH 01/32] atheros: avoid extern prototypes

2014-09-11 Thread Sergey Ryazanov
Avoid using of extern prototypes as suggested by checkpatch. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.14/100-board.patch | 33 +++ 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/target/linux/atheros/patches-3.14

[OpenWrt-Devel] [PATCH 03/32] atheros: use NULL instead of plain integer

2014-09-11 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.14/100-board.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/atheros/patches-3.14/100-board.patch b/target/linux/atheros/patches-3.14/100-board.patch index 383ffa3

[OpenWrt-Devel] [PATCH 04/32] atheros: use static keywork for local code

2014-09-11 Thread Sergey Ryazanov
Make PCI IRQ handler and several structures static as suggested by sparse. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- target/linux/atheros/patches-3.14/105-ar2315_pci.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/atheros/patches-3.14

<    1   2   3   4   >