Re: ath79: Fix for Mikrotik NAND bad blocks - testers needed

2021-03-23 Thread Sergey Ryazanov
Hello Danijel! On Mon, Mar 22, 2021 at 11:54 PM Danijel wrote: > I'm working on restoring Mikrotik RB2011 support after ar71xx target was > dropped after 19.07 release. While working on it, the problem with bad blocks > and the issue of the current way of flashing kernel was also brought up. > >

Re: ath79: Fix for Mikrotik NAND bad blocks - testers needed

2021-04-08 Thread Sergey Ryazanov
Hello Danijel, On Tue, Mar 23, 2021 at 3:21 PM Sergey Ryazanov wrote: > On Mon, Mar 22, 2021 at 11:54 PM Danijel wrote: >> So now I'm looking for testers (and reviewers) who could test this change on >> the affected devices (with bad blocks) and NOR Mikrotiks. > >

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 > the advantage of havi

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

[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] Help for updating kernel drivers

2017-05-31 Thread Sergey Ryazanov
Hello Swapnil, Monday, May 22, 2017, 11:48:50 AM, you wrote: > If anyone can help me to figure out a way by which I can modify a > driver of linux kernel and make the change reflect in the router.  Could you specify, please, that the driver you mentioned comes from the kernel tarball or fr

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. It seems driver does not > hook

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 beca

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-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 attached

Re: [OpenWrt-Devel] MV88E6060 switch

2017-07-27 Thread Sergey Ryazanov
Hello Nerijus, Friday, July 21, 2017, 7:47:56 PM, you wrote: > 2017-07-21 01:41, Sergey Ryazanov rašė: >> You should disable CONFIG_NET_DSA_MV88E6060 and select only >> CONFIG_MVSWITCH_PHY=y option. This two different drivers, the first >> one is mainstream

Re: [OpenWrt-Devel] MV88E6060 switch

2017-07-27 Thread Sergey Ryazanov
Hello Nerijus, Thursday, July 27, 2017, 9:40:36 PM, you wrote: > On Thu, 27 Jul 2017 21:31:01 +0300 Sergey Ryazanov > wrote: >> Did you see the "Marvell 88E6060 PHY driver attached" in kernel >> messages log? If not then the mwswitch driver did not atta

Re: [OpenWrt-Devel] MV88E6060 switch

2017-09-08 Thread Sergey Ryazanov
On Fri, Jul 28, 2017 at 1:03 AM, Nerijus Baliunas wrote: > On Thu, 27 Jul 2017 23:43:19 +0300 Sergey Ryazanov > wrote: > >> >> Did you see the "Marvell 88E6060 PHY driver attached" in kernel >> >> messages log? If not then the mwswitch dr

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-02 Thread Sergey Ryazanov
Hello Nerijus, On Fri, Sep 29, 2017 at 7:32 PM, Nerijus Baliunas wrote: > On Fri, 8 Sep 2017 22:50:13 +0300 Sergey Ryazanov > wrote: >> >> >> Did you see the "Marvell 88E6060 PHY driver attached" in kernel >> >> >> messages log? I

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 > inet addr:192.168.0.1

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-08 Thread Sergey Ryazanov
On Mon, Oct 9, 2017 at 12:00 AM, Nerijus Baliunas wrote: > On Sun, 8 Oct 2017 23:44:58 +0300 Sergey Ryazanov > wrote: >> > I assigned IP with a command >> > ip a a 192.168.0.10/24 dev eth0 >> > >> > but ping from PC does not answer. >> >>

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-10 Thread Sergey Ryazanov
On Mon, Oct 9, 2017 at 1:58 AM, Nerijus Baliunas wrote: > On Mon, 9 Oct 2017 01:31:29 +0300 Sergey Ryazanov > wrote: > >> > Just tried: >> > # ifconfig eth0 192.168.0.10 up >> > ifconfig: SIOCSIFFLAGS: Out of memory >> > # dmesg|grep eth

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 Mask:255.255.255.0 > inet6 a

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 3:17 PM, Nerijus Baliunas wrote: > On Wed, 11 Oct 2017 14:53:16 +0300 Sergey Ryazanov > wrote: >> Ok. At least we know now that the switch functioning (even without a >> dedicated driver). One question left: what happens to the Ethernet >> driver?

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 7:17 PM, Nerijus Baliunas wrote: > On Wed, 11 Oct 2017 18:53:40 +0300 Sergey Ryazanov > wrote: > >> A-ha! The interface survives the down/up circle but does not survive >> the init procedure. >> >> Try to completely avoid bridge usage

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 11:01 PM, Nerijus Baliunas wrote: > On Wed, 11 Oct 2017 22:50:40 +0300 Sergey Ryazanov > wrote: > >> Khm, according to wikidevi your router is equipped with 16MB of RAM, >> the ethernet driver for xscale SoCs attempts to allocate almost a 1 MB >

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Wed, Oct 11, 2017 at 11:44 PM, Nerijus Baliunas wrote: > On Wed, 11 Oct 2017 23:28:00 +0300 Sergey Ryazanov > wrote: > >> > root@LEDE:/# cat /proc/meminfo >> > MemTotal: 12232 kB >> > MemFree: 996 kB >> >> Looks like th

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Thu, Oct 12, 2017 at 12:29 AM, Nerijus Baliunas wrote: > On Thu, 12 Oct 2017 00:15:15 +0300 Sergey Ryazanov > wrote: >> Can you boot in failsafe mode again, check free memory while the >> interface is Up, then bring it Down and check free memory again? That >> w

Re: [OpenWrt-Devel] MV88E6060 switch

2017-10-11 Thread Sergey Ryazanov
On Thu, Oct 12, 2017 at 2:05 AM, Nerijus Baliunas wrote: > On Thu, 12 Oct 2017 01:30:35 +0300 Sergey Ryazanov > wrote: > >> Try this patch, it should reduce the memory demand of the ethernet >> driver, so it will have the change to get started on your router. >> >

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 operation!)". > The module is loade

[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

[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 --- target/linux/apm821xx/config-4.14 | 2 -- target/linux/archs38/config-4.14 | 2 -- target/linux/ath79/config-4.14 | 2

[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 --- target/linux/apm821xx/config-4.14 | 1 - target/linux/archs38/config-4.14 | 1

[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 --- target/linux/apm821xx/config-4.14 | 1 - target

[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 --- target/linux/apm821xx/config-4.14 | 1 - target/linux/archs38/config-4.14 | 1 - target/linux/ath79/config

[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 --- target/linux/apm821xx/config

[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 --- target/linux/apm821xx/config-4.14 | 1 - target

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

2018-05-21 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- 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/target/linux/ath25/Makefile

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

2018-05-21 Thread Sergey Ryazanov
onera 2.0g 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 =>

[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 --- target/linux/ath25/config-4.14 | 171 ++ .../linux/ath25/patches-4.14/107-ar5312_gpio.patch | 212 +++ .../linux/ath25/patches-4.14/108-ar2315_gpio.patch | 363

[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 target/linux/ath25/patche

[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

[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

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

2018-06-03 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] [PATCH 00/17] atheros: I/O cleanups

2014-07-12 Thread Sergey Ryazanov
Main goals of this series: * Simplify interface between arch code and SoC drivers * Simplify internal realization of arch code * Make code consistent with mainstream kernel rules and practice Sergey Ryazanov (17): atheros[ar2315-wdt]: rename config symbol atheros: use correct address space

[OpenWrt-Devel] [PATCH 05/17] atheros[ar231x-eth]: update MAC and PHY reset method

2014-07-12 Thread Sergey Ryazanov
Pass reset_set and reset_clear callback functions pointers via platform_data instead of reset register address. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 49 ++ .../atheros/patches-3.10/110-ar2313_ethernet.patch | 24

[OpenWrt-Devel] [PATCH 01/17] atheros[ar2315-wdt]: rename config symbol

2014-07-12 Thread Sergey Ryazanov
Rename config symbol to AR2315_WDT to avoid confusion with other Atheros SoCs. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/config-3.10 | 2 +- target/linux/atheros/patches-3.10/130-watchdog.patch | 11 ++- 2 files changed, 7 insertions(+), 6 deletions

[OpenWrt-Devel] [PATCH 07/17] atheros: pass UART IRQ number via function argument

2014-07-12 Thread Sergey Ryazanov
UART IRQ number could be different for different SoCs, so make them configurable. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100

[OpenWrt-Devel] [PATCH 02/17] atheros: use correct address space and pointer type for register access

2014-07-12 Thread Sergey Ryazanov
Make sparse happy :) Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch index 36ad7c8

[OpenWrt-Devel] [PATCH 06/17] atheros[ar231x-eth]: move driver to atheros subdirectory

2014-07-12 Thread Sergey Ryazanov
Move driver code to respective vendor subdirectory and fix config symbol name. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/config-3.10 | 2 +- .../atheros/patches-3.10/110-ar2313_ethernet.patch | 59 +++--- .../patches-3.10/220

[OpenWrt-Devel] [PATCH 04/17] atheros[ar2315-wdt]: update I/O handling

2014-07-12 Thread Sergey Ryazanov
* Pass iomem and IRQ via platform device resources * Remap iomem and use iowrite32 accessor function Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 17 +++- .../linux/atheros/patches-3.10/130-watchdog.patch | 45 -- 2 files

[OpenWrt-Devel] [PATCH 03/17] atheros[ar2315-wdt]: update interrupt handling

2014-07-12 Thread Sergey Ryazanov
Acknowledge watchdog interrupt in arch irq dispatcher and remove odd watchdog enable call from probe function. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 7 --- target/linux/atheros/patches-3.10/130-watchdog.patch | 5 + 2 files changed, 5

[OpenWrt-Devel] [PATCH 11/17] atheros: use irq_set_chained_handler()

2014-07-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 34 +++--- .../atheros/patches-3.10/105-ar2315_pci.patch | 6 ++-- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b

[OpenWrt-Devel] [PATCH 10/17] atheros: simplify AR2315 misc IRQ (un)masking

2014-07-12 Thread Sergey Ryazanov
Currently AR5312 misc IRQ numbers are used for AR2315+ chips, what cause us to use switch-case to map IRQ number to ISR bit. Introduce AR2315 specific misc IRQs set and simplify interrupt (un)mask operation. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch

[OpenWrt-Devel] [PATCH 08/17] atheros: move AR2315 misc IRQ dispatching to separate function

2014-07-12 Thread Sergey Ryazanov
Align code with AR5312 realization. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 47 -- .../atheros/patches-3.10/105-ar2315_pci.patch | 15 +++ 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/target/linux

[OpenWrt-Devel] [PATCH 13/17] atheros[ar231x-eth]: pass phys address of I/O memory via platform res

2014-07-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 20 ++-- .../atheros/patches-3.10/110-ar2313_ethernet.patch | 19 --- .../patches-3.10/220-enet_micrel_workaround.patch| 6 +++--- 3 files changed, 21 insertions

[OpenWrt-Devel] [PATCH 15/17] atheros[uart]: use 32-bit aligned I/O

2014-07-12 Thread Sergey Ryazanov
Use 32-bit aligned I/O and update base UART address (remove +3 offset). Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 6 +++--- target/linux/atheros/patches-3.10/101-early-printk-support.patch | 4 ++-- 2 files changed, 5 insertions(+), 5

[OpenWrt-Devel] [PATCH 14/17] atheros[ar231x-eth]: pass PHY I/O memory via device resources

2014-07-12 Thread Sergey Ryazanov
Pass PHY I/O memory region via platform resources and remap them unconditionally. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 57 ++ .../atheros/patches-3.10/110-ar2313_ethernet.patch | 48 +++--- .../patches-3.10/220

[OpenWrt-Devel] [PATCH 12/17] atheros: simplify gpiolib realization

2014-07-12 Thread Sergey Ryazanov
GPIOs * Simplify gpio_chip methods realization Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 234 ++ 1 file changed, 57 insertions(+), 177 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux

[OpenWrt-Devel] [PATCH 09/17] atheros: rename some interrupt control handlers

2014-07-12 Thread Sergey Ryazanov
Rename interrupt control handlers to be consistent with operation names and add IRQ chips names. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 45 --- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/target/linux

[OpenWrt-Devel] [PATCH 16/17] atheros[uart]: pass only physical I/O mem address to 8250 driver

2014-07-12 Thread Sergey Ryazanov
Pass only physical address to 8250 serial port driver and set flag to remap I/O memory inside the driver. Also fix AR5312 UART base address definition, which seems specified already mapped. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 11 +-- 1

[OpenWrt-Devel] [PATCH 17/17] atheros: update macroses names

2014-07-12 Thread Sergey Ryazanov
is specific. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 528 ++--- .../patches-3.10/101-early-printk-support.patch| 2 +- .../atheros/patches-3.10/105-ar2315_pci.patch | 22 +- 3 files changed, 276 insertions(+), 276

Re: [OpenWrt-Devel] [PATCH 00/17] atheros: I/O cleanups

2014-07-12 Thread Sergey Ryazanov
2014-07-12 17:33 GMT+04:00 Sergey Ryazanov : > Main goals of this series: > * Simplify interface between arch code and SoC drivers > * Simplify internal realization of arch code > * Make code consistent with mainstream kernel rules and practice > Forgot to say, that this ser

Re: [OpenWrt-Devel] [PATCH 14/17] atheros[ar231x-eth]: pass PHY I/O memory via device resources

2014-07-12 Thread Sergey Ryazanov
2014-07-12 18:37 GMT+04:00 Felix Fietkau : > On 2014-07-12 15:33, Sergey Ryazanov wrote: >> Pass PHY I/O memory region via platform resources and remap them >> unconditionally. >> >> Signed-off-by: Sergey Ryazanov > >> diff --git a/target/linux/atheros/patches-

[OpenWrt-Devel] [PATCH] kernel/3.1{3, 4}: fix AMD USB HDC wakeup quirk disabling

2014-07-13 Thread Sergey Ryazanov
Declare inline placeholder when usb_hcd_amd_remote_wakeup_quirk() not compiled due CONFIG_PCI_DISABLE_COMMON_QUIRKS. Signed-off-by: Sergey Ryazanov --- .../811-pci_disable_usb_common_quirks.patch | 17 + .../811-pci_disable_usb_common_quirks.patch | 17

Re: [OpenWrt-Devel] [PATCH 00/17] atheros: I/O cleanups

2014-07-14 Thread Sergey Ryazanov
gt; trying. > Sounds strangely. I'll try to investigate this now. Thanks for your feedback. > Cheers, > Karl P > > > 2014-07-12 17:33 GMT+04:00 Sergey Ryazanov : >> Main goals of this series: >> * Simplify interface between arch code and SoC drivers >>

Re: [OpenWrt-Devel] [PATCH 00/17] atheros: I/O cleanups

2014-07-14 Thread Sergey Ryazanov
t; trying. > You right. I downloaded patches from patchwork, tried to apply them and got the same result. John, please, could you reject this series? I will send new one. > Cheers, > Karl P > > > 2014-07-12 17:33 GMT+04:00 Sergey Ryazanov : >> Main goals of this series

[OpenWrt-Devel] [PATCH v2 00/18] atheros: I/O cleanups

2014-07-14 Thread Sergey Ryazanov
tests are not done with AR2317/8 and AR5312, since I have no access to such boards now. Changes since v1: * Add missed patch 'atheros[ar2315-wdt]: update initialization' Sergey Ryazanov (18): atheros[ar2315-wdt]: update initialization atheros[ar2315-wdt]: rename config symbol at

[OpenWrt-Devel] [PATCH v2 04/18] atheros[ar2315-wdt]: update interrupt handling

2014-07-14 Thread Sergey Ryazanov
Acknowledge watchdog interrupt in arch irq dispatcher and remove odd watchdog enable call from probe function. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 7 --- target/linux/atheros/patches-3.10/130-watchdog.patch | 5 + 2 files changed, 5

[OpenWrt-Devel] [PATCH v2 03/18] atheros: use correct address space and pointer type for register access

2014-07-14 Thread Sergey Ryazanov
Make sparse happy :) Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch index 36ad7c8

[OpenWrt-Devel] [PATCH v2 01/18] atheros[ar2315-wdt]: update initialization

2014-07-14 Thread Sergey Ryazanov
* update driver id to be consistent with other ar231x drivers * remove odd module_{init,exit} * add module metadata (description, name, etc.) Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 2 +- .../linux/atheros/patches-3.10/130-watchdog.patch | 29

[OpenWrt-Devel] [PATCH v2 08/18] atheros: pass UART IRQ number via function argument

2014-07-14 Thread Sergey Ryazanov
UART IRQ number could be different for different SoCs, so make them configurable. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100

[OpenWrt-Devel] [PATCH v2 02/18] atheros[ar2315-wdt]: rename config symbol

2014-07-14 Thread Sergey Ryazanov
Rename config symbol to AR2315_WDT to avoid confusion with other Atheros SoCs. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/config-3.10 | 2 +- target/linux/atheros/patches-3.10/130-watchdog.patch | 11 ++- 2 files changed, 7 insertions(+), 6 deletions

[OpenWrt-Devel] [PATCH v2 10/18] atheros: rename some interrupt control handlers

2014-07-14 Thread Sergey Ryazanov
Rename interrupt control handlers to be consistent with operation names and add IRQ chips names. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 45 --- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/target/linux

[OpenWrt-Devel] [PATCH v2 05/18] atheros[ar2315-wdt]: update I/O handling

2014-07-14 Thread Sergey Ryazanov
* Pass iomem and IRQ via platform device resources * Remap iomem and use iowrite32 accessor function Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 17 +++- .../linux/atheros/patches-3.10/130-watchdog.patch | 45 -- 2 files

[OpenWrt-Devel] [PATCH v2 09/18] atheros: move AR2315 misc IRQ dispatching to separate function

2014-07-14 Thread Sergey Ryazanov
Align code with AR5312 realization. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 47 -- .../atheros/patches-3.10/105-ar2315_pci.patch | 15 +++ 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/target/linux

[OpenWrt-Devel] [PATCH v2 07/18] atheros[ar231x-eth]: move driver to atheros subdirectory

2014-07-14 Thread Sergey Ryazanov
Move driver code to respective vendor subdirectory and fix config symbol name. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/config-3.10 | 2 +- .../atheros/patches-3.10/110-ar2313_ethernet.patch | 59 +++--- .../patches-3.10/220

[OpenWrt-Devel] [PATCH v2 06/18] atheros[ar231x-eth]: update MAC and PHY reset method

2014-07-14 Thread Sergey Ryazanov
Pass reset_set and reset_clear callback functions pointers via platform_data instead of reset register address. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 49 ++ .../atheros/patches-3.10/110-ar2313_ethernet.patch | 24

[OpenWrt-Devel] [PATCH v2 12/18] atheros: use irq_set_chained_handler()

2014-07-14 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 34 +++--- .../atheros/patches-3.10/105-ar2315_pci.patch | 6 ++-- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b

[OpenWrt-Devel] [PATCH v2 11/18] atheros: simplify AR2315 misc IRQ (un)masking

2014-07-14 Thread Sergey Ryazanov
Currently AR5312 misc IRQ numbers are used for AR2315+ chips, what cause us to use switch-case to map IRQ number to ISR bit. Introduce AR2315 specific misc IRQs set and simplify interrupt (un)mask operation. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch

[OpenWrt-Devel] [PATCH v2 13/18] atheros: simplify gpiolib realization

2014-07-14 Thread Sergey Ryazanov
GPIOs * Simplify gpio_chip methods realization Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 234 ++ 1 file changed, 57 insertions(+), 177 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux

[OpenWrt-Devel] [PATCH v2 14/18] atheros[ar231x-eth]: pass phys address of I/O memory via platform res

2014-07-14 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 20 ++-- .../atheros/patches-3.10/110-ar2313_ethernet.patch | 19 --- .../patches-3.10/220-enet_micrel_workaround.patch| 6 +++--- 3 files changed, 21 insertions

[OpenWrt-Devel] [PATCH v2 16/18] atheros[uart]: use 32-bit aligned I/O

2014-07-14 Thread Sergey Ryazanov
Use 32-bit aligned I/O and update base UART address (remove +3 offset). Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 6 +++--- target/linux/atheros/patches-3.10/101-early-printk-support.patch | 4 ++-- 2 files changed, 5 insertions(+), 5

[OpenWrt-Devel] [PATCH v2 17/18] atheros[uart]: pass only physical I/O mem address to 8250 driver

2014-07-14 Thread Sergey Ryazanov
Pass only physical address to 8250 serial port driver and set flag to remap I/O memory inside the driver. Also fix AR5312 UART base address definition, which seems specified already mapped. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 11 +-- 1

[OpenWrt-Devel] [PATCH v2 15/18] atheros[ar231x-eth]: pass PHY I/O memory via device resources

2014-07-14 Thread Sergey Ryazanov
Pass PHY I/O memory region via platform resources and remap them unconditionally. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 57 ++ .../atheros/patches-3.10/110-ar2313_ethernet.patch | 48 +++--- .../patches-3.10/220

[OpenWrt-Devel] [PATCH v2 18/18] atheros: update macroses names

2014-07-14 Thread Sergey Ryazanov
is specific. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 528 ++--- .../patches-3.10/101-early-printk-support.patch| 2 +- .../atheros/patches-3.10/105-ar2315_pci.patch | 22 +- 3 files changed, 276 insertions(+), 276

Re: [OpenWrt-Devel] [PATCH 00/17] atheros: I/O cleanups

2014-07-14 Thread Sergey Ryazanov
2014-07-14 21:05 GMT+04:00 Sergey Ryazanov : > 2014-07-14 14:31 GMT+04:00 Karl Palsson : >> >> I've tried to test this on an ar2317, but the series isn't applying cleanly >> to today's trunk. >> >> I got the first one to succeed, with some fuz

Re: [OpenWrt-Devel] [PATCH v2 00/18] atheros: I/O cleanups

2014-07-15 Thread Sergey Ryazanov
2014-07-15 17:53 GMT+04:00 Jonas Gorski : > On Tue, Jul 15, 2014 at 1:57 AM, Sergey Ryazanov > wrote: >> Main goals of this series: >> * Simplify interface between arch code and SoC drivers >> * Simplify internal realization of arch code >> * Make code consisten

Re: [OpenWrt-Devel] [PATCH v2 00/18] atheros: I/O cleanups

2014-07-15 Thread Sergey Ryazanov
2014-07-15 17:50 GMT+04:00 Karl Palsson : > On Tue, Jul 15, 2014 at 03:57:19AM +0400, Sergey Ryazanov wrote: >> Main goals of this series: >> * Simplify interface between arch code and SoC drivers >> * Simplify internal realization of arch code >> * Make code consis

[OpenWrt-Devel] Make phy fixups patch generic

2014-07-30 Thread Sergey Ryazanov
Hello Hauke, could you move your patch, which fix fixups call [1] from brcm47xx target to the generic patches, since mvswitch driver suffers from the same problem? 1. https://dev.openwrt.org/browser/trunk/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch -- BR, Sergey ___

Re: [OpenWrt-Devel] Make phy fixups patch generic

2014-07-30 Thread Sergey Ryazanov
Hi Florian, 2014-07-31 2:14 GMT+04:00 Florian Fainelli : > Hi Sergey, > > 2014-07-30 15:09 GMT-07:00 Sergey Ryazanov : >> Hello Hauke, >> >> could you move your patch, which fix fixups call [1] from brcm47xx >> target to the generic patches, since mvswitch driver

[OpenWrt-Devel] [PATCH] kernel/3.1{3, 4}: fix IFF_NO_IP_ALIGN flag location

2014-08-03 Thread Sergey Ryazanov
Fix IFF_NO_IP_ALIGN location which is collide with new netdev private flag IFF_MACVLAN. Signed-off-by: Sergey Ryazanov --- target/linux/generic/patches-3.13/721-phy_packets.patch | 2 +- target/linux/generic/patches-3.14/721-phy_packets.patch | 2 +- 2 files changed, 2 insertions(+), 2

[OpenWrt-Devel] [PATCH 0/4] atheros: switch to kernel 3.14

2014-08-04 Thread Sergey Ryazanov
tory of changes. Sergey Ryazanov (4): atheros: refresh config-3.10 atheros: copy 3.10 patches to 3.14 and refresh them atheros: add 3.14 configuration atheros: switch kernel version to 3.14 target/linux/atheros/Makefile | 2 +- target/linux/athe

[OpenWrt-Devel] [PATCH 3/4] atheros: add 3.14 configuration

2014-08-04 Thread Sergey Ryazanov
Created on basis of 3.10 config. Remove few obsolete symbols and add new upstream symbols. New symbols left in its default state. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/{config-3.10 => config-3.14} | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) c

[OpenWrt-Devel] [PATCH 1/4] atheros: refresh config-3.10

2014-08-04 Thread Sergey Ryazanov
Refresh 3.10 kernel configuration, particulary correct AR2315_WDT symbol position. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/config-3.10 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/atheros/config-3.10 b/target/linux/atheros/config-3.10 index

[OpenWrt-Devel] [PATCH 4/4] atheros: switch kernel version to 3.14

2014-08-04 Thread Sergey Ryazanov
After several tests, 3.14 kernel seems run fine. Signed-off-by: Sergey Ryazanov --- 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 1b52909..ccda090 100644 --- a/target/linux

[OpenWrt-Devel] [PATCH 2/4] atheros: copy 3.10 patches to 3.14 and refresh them

2014-08-04 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- target/linux/atheros/{patches-3.10 => patches-3.14}/100-board.patch | 4 ++-- .../{patches-3.10 => patches-3.14}/101-early-printk-support.patch | 2 +- .../atheros/{patches-3.10 => patches-3.14}/105-ar2315_pci.patch | 0 .../{patches-3.10 =>

Re: [OpenWrt-Devel] [PATCH 0/4] atheros: switch to kernel 3.14

2014-08-04 Thread Sergey Ryazanov
2014-08-05 0:59 GMT+04:00 Felix Fietkau : > On 2014-08-04 22:40, Sergey Ryazanov wrote: >> A humble request to the committers: use "svn cp" for patches and config file >> in order to preserve the history of changes. > I used git-svn, it has rename detection and handles

Re: [OpenWrt-Devel] [PATCH 0/4] atheros: switch to kernel 3.14

2014-08-07 Thread Sergey Ryazanov
Hello Hans, 2014-08-07 14:30 GMT+04:00 Hans Ulli Kroll : > On Tue, 5 Aug 2014, Sergey Ryazanov wrote: > >> 2014-08-05 0:59 GMT+04:00 Felix Fietkau : >> > On 2014-08-04 22:40, Sergey Ryazanov wrote: >> >> A humble request to the committers: use "svn cp"

Re: [OpenWrt-Devel] [PATCH 09/28] Remove ATHEROS_AR231X

2014-09-05 Thread Sergey Ryazanov
Hello Paul, 2014-09-05 14:10 GMT+04:00, Paul Bolle : > Jiri, Nick, Luis, John, > > On Wed, 2014-06-18 at 13:46 +0200, Paul Bolle wrote: >> Having this conversation every rc1 is getting a bit silly. Could Jiri >> e.a. perhaps set some specific deadline for ATHEROS_AR231X to be >> submitted? > > I w

Re: [OpenWrt-Devel] [PATCH 09/28] Remove ATHEROS_AR231X

2014-09-05 Thread Sergey Ryazanov
2014-09-05 15:33 GMT+04:00 Paul Bolle : > Hi Sergey, > > On Fri, 2014-09-05 at 15:12 +0400, Sergey Ryazanov wrote: >> 2014-09-05 14:10 GMT+04:00, Paul Bolle : >> > On Wed, 2014-06-18 at 13:46 +0200, Paul Bolle wrote: >> >> Having this conversation every rc

Re: [OpenWrt-Devel] [PATCH 09/28] Remove ATHEROS_AR231X

2014-09-10 Thread Sergey Ryazanov
2014-09-09 22:27 GMT+04:00, John W. Linville : > On Fri, Sep 05, 2014 at 04:02:10PM +0400, Sergey Ryazanov wrote: >> 2014-09-05 15:33 GMT+04:00 Paul Bolle : >> > Hi Sergey, >> > >> > On Fri, 2014-09-05 at 15:12 +0400, Sergey Ryazanov wrote: >> >> 201

Re: [OpenWrt-Devel] [PATCH 09/28] Remove ATHEROS_AR231X

2014-09-10 Thread Sergey Ryazanov
2014-09-10 15:36 GMT+04:00, Jiri Slaby : > On 09/10/2014, 12:33 PM, Sergey Ryazanov wrote: >> 2014-09-09 22:27 GMT+04:00, John W. Linville : >>> On Fri, Sep 05, 2014 at 04:02:10PM +0400, Sergey Ryazanov wrote: >>>> 2014-09-05 15:33 GMT+04:00 Paul Bolle : >>>

  1   2   3   4   >