[OpenWrt-Devel] [PATCH resend] [ubus 1/2] cli: static keyword tweak

2016-02-26 Thread Zhao, Gang
function. Global struct commands is only used in this file, so it should be marked static. Signed-off-by: Zhao, Gang <gang.zhao...@gmail.com> --- cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli.c b/cli.c index f3a041a..c476f35 100644 --- a/cli.c +++ b

[OpenWrt-Devel] [PATCH resend] [ubus 2/2] cli: add timeout support for listen command

2016-02-26 Thread Zhao, Gang
60 seconds. Signed-off-by: Zhao, Gang <gang.zhao...@gmail.com> --- If timeout parameter is not provided, listen command will exit after 30 seconds. This is not compatable with previous version, that is, listen will blcok infinitely if timeout parameter is not provided. Since it seems n

Re: [OpenWrt-Devel] [PATCH] [ubus 2/2] cli: add timeout support for listen command

2016-02-26 Thread Zhao, Gang
John > > On 26/02/2016 03:27, Zhao, Gang wrote: > > Signed-off-by: Zhao, Gang <gang.zhao...@gmail.com> > > --- > > cli.c | 25 - > > 1 file changed, 20 insertions(+), 5 deletions(-) > > > > diff --git a/cli.c b/cli.c &g

Re: [OpenWrt-Devel] [PATCH] [ubus 1/2] cli: static keyword tweak

2016-02-26 Thread Zhao, Gang
On Fri, Feb 26, 2016 at 2:33 PM, John Crispin <blo...@openwrt.org> wrote: > Description of what the patch does is missing > > John > > On 26/02/2016 03:27, Zhao, Gang wrote: > > Signed-off-by: Zhao, Gang <gang.zhao...@gmail.com> > > --- >

[OpenWrt-Devel] [PATCH] [ubus 2/2] cli: add timeout support for listen command

2016-02-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang <gang.zhao...@gmail.com> --- cli.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/cli.c b/cli.c index c476f35..24b5d22 100644 --- a/cli.c +++ b/cli.c @@ -125,15 +125,29 @@ static int ubus_cli_call(struct ubus_contex

[OpenWrt-Devel] [PATCH] [ubus 1/2] cli: static keyword tweak

2016-02-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang <gang.zhao...@gmail.com> --- cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli.c b/cli.c index f3a041a..c476f35 100644 --- a/cli.c +++ b/cli.c @@ -127,7 +127,7 @@ static int ubus_cli_call(struct ubus_context *ctx, int argc, char

[OpenWrt-Devel] [PATCH] [ubus 0/2] cmdline update for ubus

2016-02-25 Thread Zhao, Gang
listen' command in openwrt code base, I think this may be acceptable, if not, I can change the code so listen command will only exit if timeout parameter is provided. Zhao, Gang (2): cli: static keyword tweak cli: add timeout support for listen command cli.c | 29 ++--- 1

Re: [OpenWrt-Devel] [PATCH 00/23] add 3.14 kernel support for ar71xx

2014-07-31 Thread Zhao, Gang
D-Link DIR-615-e1 passed some basic tests(dhcp, wireless, failsafe mode, etc), no big problem was found. But tp-link wr703n still has a problem. Actually on tp-link wr703n only eth0 doesn't work correctly, wlan0 works fine. The problem of eth0 is: if cable has been plugged when booting, eth0

Re: [OpenWrt-Devel] [PATCH 00/23] add 3.14 kernel support for ar71xx

2014-07-26 Thread Zhao, Gang
On Sat, 2014-07-26 at 12:00:21 +0800, Zhao, Gang wrote: On Sat, 2014-07-26 at 10:48:35 +0800, Zhao, Gang wrote: Tested on a tp-link wr703n, all seem okay. Oh, it seems there are some problems about the phy, all network cards are unusable :-( Will investigate it later. At least this patch set

Re: [OpenWrt-Devel] [PATCH 00/23] add 3.14 kernel support for ar71xx

2014-07-26 Thread Zhao, Gang
On Sat, 2014-07-26 at 22:17:36 +0800, Zhao, Gang wrote: On Sat, 2014-07-26 at 12:00:21 +0800, Zhao, Gang wrote: On Sat, 2014-07-26 at 10:48:35 +0800, Zhao, Gang wrote: Tested on a tp-link wr703n, all seem okay. Oh, it seems there are some problems about the phy, all network cards

Re: [OpenWrt-Devel] [PATCH 00/23] add 3.14 kernel support for ar71xx

2014-07-26 Thread Zhao, Gang
On Sat, 2014-07-26 at 14:33:43 -0400, Paul Blazejowski wrote: no sir! after applying this one liner to my 3.14.13 (instead of the 3.14.12 kernel that Zhao used in his patches) and quick rebuild, my wndr3700v4 will not boot; it shows 2 steady amber lights... so this test fails as well ...next

Re: [OpenWrt-Devel] [PATCH 00/23] add 3.14 kernel support for ar71xx

2014-07-26 Thread Zhao, Gang
On Sun, 2014-07-27 at 10:55:26 +0800, Zhao, Gang wrote: On Sat, 2014-07-26 at 14:33:43 -0400, Paul Blazejowski wrote: no sir! after applying this one liner to my 3.14.13 (instead of the 3.14.12 kernel that Zhao used in his patches) and quick rebuild, my wndr3700v4 will not boot; it shows 2

[OpenWrt-Devel] [PATCH 00/23] add 3.14 kernel support for ar71xx

2014-07-25 Thread Zhao, Gang
unchecked, 16 orphan) and 28 of xref (0 dead, 16 orphan) found. [6.86] eth0: link down [ 16.83] device eth0 entered promiscuous mode [ 26.39] random: nonblocking pool is initialized Zhao, Gang (23): ar71xx: copy 3.10 related files to 3.14 ar71xx: remove unneeded patches

[OpenWrt-Devel] [PATCH 02/23] ar71xx: remove unneeded patches

2014-07-25 Thread Zhao, Gang
Already applied in upstream. Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- ...S-ath79-don-t-hardwire-cpu_has_dsp-2-to-0.patch | 31 -- ...simplify-platform_get_resource_byname-dev.patch | 70 - ...r933x_uart-convert-to-use-devm_-functions.patch | 72

[OpenWrt-Devel] [PATCH 05/23] ar71xx: refresh 406-mtd-m25p80-allow-to-specify-max-read-size.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- ...mtd-m25p80-allow-to-specify-max-read-size.patch | 27 ++ 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/406-mtd-m25p80-allow-to-specify-max-read-size.patch b/target

[OpenWrt-Devel] [PATCH 06/23] ar71xx: refresh 409-mtd-rb4xx_nand_driver.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- target/linux/ar71xx/patches-3.14/409-mtd-rb4xx_nand_driver.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/409-mtd-rb4xx_nand_driver.patch b/target/linux/ar71xx/patches-3.14/409

[OpenWrt-Devel] [PATCH 04/23] ar71xx: refresh 206-spi-ath79-make-chipselect-logic-more-flexible.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- ...pi-ath79-make-chipselect-logic-more-flexible.patch | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/206-spi-ath79-make-chipselect-logic-more-flexible.patch b/target

[OpenWrt-Devel] [PATCH 03/23] ar71xx: remove patch 424-net-phy-add-phy_mmd_read_write-functions.patch

2014-07-25 Thread Zhao, Gang
Function phy_{read,write}_mmd defined but not used in this patch series. Besides, upstream has defined a funcion the same name. Remove this patch to avoid double defination. Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- ...-net-phy-add-phy_mmd_read_write-functions.patch | 40

[OpenWrt-Devel] [PATCH 07/23] ar71xx: refresh patches-3.14/410-mtd-rb750-nand-driver.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- target/linux/ar71xx/patches-3.14/410-mtd-rb750-nand-driver.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/410-mtd-rb750-nand-driver.patch b/target/linux/ar71xx/patches-3.14/410

[OpenWrt-Devel] [PATCH 09/23] ar71xx: refresh 425-net-phy-at803x-allow-to-configure-via-pdata.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- ...t-phy-at803x-allow-to-configure-via-pdata.patch | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/425-net-phy-at803x-allow-to-configure-via-pdata.patch b/target

[OpenWrt-Devel] [PATCH 10/23] ar71xx: refresh 431-spi-add-various-flags.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../ar71xx/patches-3.14/431-spi-add-various-flags.patch| 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/431-spi-add-various-flags.patch b/target/linux/ar71xx/patches-3.14

[OpenWrt-Devel] [PATCH 11/23] ar71xx: refresh 450-gpio-nxp-74hc153-gpio-chip-driver.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../ar71xx/patches-3.14/450-gpio-nxp-74hc153-gpio-chip-driver.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/450-gpio-nxp-74hc153-gpio-chip-driver.patch b/target/linux/ar71xx

[OpenWrt-Devel] [PATCH 12/23] ar71xx: refresh 451-gpio-74x164-improve-platform-device-support.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- ...io-74x164-improve-platform-device-support.patch | 64 ++ 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/451-gpio-74x164-improve-platform-device-support.patch b/target

[OpenWrt-Devel] [PATCH 13/23] ar71xx: refresh 452-gpio-add-gpio-latch-driver.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../ar71xx/patches-3.14/452-gpio-add-gpio-latch-driver.patch | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/452-gpio-add-gpio-latch-driver.patch b/target/linux/ar71xx/patches

[OpenWrt-Devel] [PATCH 14/23] ar71xx: refresh 462-mtd-m25p80-set-spi-transfer-type.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../462-mtd-m25p80-set-spi-transfer-type.patch | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/462-mtd-m25p80-set-spi-transfer-type.patch b/target/linux/ar71xx

[OpenWrt-Devel] [PATCH 17/23] ar71xx: refresh 609-MIPS-ath79-ap136-fixes.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- target/linux/ar71xx/patches-3.14/609-MIPS-ath79-ap136-fixes.patch | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/609-MIPS-ath79-ap136-fixes.patch b/target/linux/ar71xx/patches-3.14

[OpenWrt-Devel] [PATCH 15/23] ar71xx: refresh 463-spi-ath79-add-fast-flash-read.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../patches-3.14/463-spi-ath79-add-fast-flash-read.patch | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/463-spi-ath79-add-fast-flash-read.patch b/target/linux/ar71xx

[OpenWrt-Devel] [PATCH 18/23] ar71xx: refresh 902-unaligned_access_hacks.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../patches-3.14/902-unaligned_access_hacks.patch | 149 ++--- 1 file changed, 68 insertions(+), 81 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/902-unaligned_access_hacks.patch b/target/linux/ar71xx/patches

[OpenWrt-Devel] [PATCH 16/23] ar71xx: refresh 490-usb-ehci-add-quirks-for-qca-socs.patch

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../490-usb-ehci-add-quirks-for-qca-socs.patch | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/linux/ar71xx/patches-3.14/490-usb-ehci-add-quirks-for-qca-socs.patch b/target/linux/ar71xx

[OpenWrt-Devel] [PATCH 19/23] ar71xx: update config

2014-07-25 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- target/linux/ar71xx/config-3.14 | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/target/linux/ar71xx/config-3.14 b/target/linux/ar71xx/config-3.14 index aa5eb7e..3f7570b 100644 --- a/target/linux/ar71xx

[OpenWrt-Devel] [PATCH 22/23] ar71xx: modify file mach-alfa-ap96.c

2014-07-25 Thread Zhao, Gang
From: Zhao, Gang gamer...@gmail.com Related upstream changes: v3.12-rc1~69^2~23 (mmc: mmc_spi: Remove platform data .get_cd() and .get_ro() callbacks) and v3.12-rc1~21^2~25 (mmc: mmc_spi: Support CD/RO GPIOs). Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- target/linux/ar71xx/files-3.14

[OpenWrt-Devel] [PATCH 20/23] ar71xx: modify patch 707-MIPS-ath79-add-support-for-QCA953x-SoC.patch

2014-07-25 Thread Zhao, Gang
From: Zhao, Gang gamer...@gmail.com Commit v3.12-rc1~21^2~25(MIPS: ath79: Switch to the clkdev framework) switched to clkdev framework, so the static variables like ath79_ref_clk are gone. Make needed changes to address this. Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- ...07-MIPS-ath79

[OpenWrt-Devel] [PATCH 21/23] ar71xx: modify patch 406-mtd-m25p80-allow-to-specify-max-read-size.patch

2014-07-25 Thread Zhao, Gang
From: Zhao, Gang gamer...@gmail.com Related upstream change: v3.14-rc1~65^2~150 (drivers: mtd: m25p80: convert bool read check into an enum). Signed-off-by: Zhao, Gang gang.zhao...@gmail.com --- .../patches-3.14/406-mtd-m25p80-allow-to-specify-max-read-size.patch| 2 +- 1 file changed, 1

[OpenWrt-Devel] [PATCH 23/23] ar71xx: fix spi ath79 fast read

2014-07-25 Thread Zhao, Gang
-by: Zhao, Gang gang.zhao...@gmail.com --- .../464-spi-ath79-fix-fast-flash-read.patch| 34 ++ 1 file changed, 34 insertions(+) create mode 100644 target/linux/ar71xx/patches-3.14/464-spi-ath79-fix-fast-flash-read.patch diff --git a/target/linux/ar71xx/patches-3.14/464

[OpenWrt-Devel] [PATCH] ar71xx: fix spi ath79 fast read (for 3.10 kernel)

2014-07-25 Thread Zhao, Gang
-by: Zhao, Gang gang.zhao...@gmail.com --- .../464-spi-ath79-fix-fast-flash-read.patch| 36 ++ 1 file changed, 36 insertions(+) create mode 100644 target/linux/ar71xx/patches-3.10/464-spi-ath79-fix-fast-flash-read.patch diff --git a/target/linux/ar71xx/patches-3.10/464

Re: [OpenWrt-Devel] [PATCH 00/23] add 3.14 kernel support for ar71xx

2014-07-25 Thread Zhao, Gang
On Sat, 2014-07-26 at 10:48:35 +0800, Zhao, Gang wrote: Tested on a tp-link wr703n, all seem okay. Oh, it seems there are some problems about the phy, all network cards are unusable :-( Will investigate it later. At least this patch set made a bootable kernel... The last patch fix spi ath79

Re: [OpenWrt-Devel] Barrier Breaker 14.07-rc1

2014-07-14 Thread Zhao, Gang
On Mon, 2014-07-14 at 15:17:13 +0400, Nick Shvelidze wrote: Good to see package feed on GitHub. Would be great if there was a full OpenWRT source mirror on GitHub, for some reason git.openwrt.org refuses connections on HTTPS, both from my home and work IPs. Look at here :-)

[OpenWrt-Devel] [PATCH RESEND 3/4] base-files: remove function service_kill

2014-06-01 Thread Zhao, Gang
Function service_kill is deprecated and has no user, so remove it. Signed-off-by: Zhao, Gang gamer...@gmail.com --- package/base-files/files/lib/functions/service.sh | 23 --- 1 file changed, 23 deletions(-) diff --git a/package/base-files/files/lib/functions/service.sh b

[OpenWrt-Devel] [PATCH RESEND 0/4] add support for dlink dir-615-e1 and some cleanup

2014-06-01 Thread Zhao, Gang
The first three patches are resent patches. Zhao, Gang (4): ar71xx: add support for dlink dir-615-e1 ar71xx: image: clean up and add missing argument for some macros base-files: remove function service_kill package: netifd: remove blank line at the end of file package/base-files/files

[OpenWrt-Devel] [PATCH RESEND 1/4] ar71xx: add support for dlink dir-615-e1

2014-06-01 Thread Zhao, Gang
update web page(surely it also can be uploaded through dlink's failsafe mode uboot web page :-) ). This address ticket #8680. [1]: http://wiki.openwrt.org/toh/d-link/dir-615#browser.issues Signed-off-by: Zhao, Gang gamer...@gmail.com --- target/linux/ar71xx/base-files/etc/diag.sh

[OpenWrt-Devel] [PATCH RESEND 2/4] ar71xx: image: clean up and add missing argument for some macros

2014-06-01 Thread Zhao, Gang
Macro Sysupgrade/KR is not used and seems unnecessary, so remove it. Also add padding argument to macro Sysupgrade/RKuImage. Signed-off-by: Zhao, Gang gamer...@gmail.com --- target/linux/ar71xx/image/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux

[OpenWrt-Devel] [PATCH RESEND 4/4] package: netifd: remove blank line at the end of file

2014-06-01 Thread Zhao, Gang
Signed-off-by: Zhao, Gang gamer...@gmail.com --- package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh index

[OpenWrt-Devel] [PATCH] jshn: improve code readability

2014-06-01 Thread Zhao, Gang
No logical change, just let the code more readable. Signed-off-by: Zhao, Gang gamer...@gmail.com --- This is for git://git.openwrt.org/project/libubox.git sh/jshn.sh | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sh/jshn.sh b/sh/jshn.sh index 06ba965..baea4ed 100644

[OpenWrt-Devel] [PATCH 1/2] ar71xx: image: clean up and add missing argument for some macros

2014-05-21 Thread Zhao, Gang
Macro Sysupgrade/KR is not used and seems unnecessary, so remove it. Also add padding argument to macro Sysupgrade/RKuImage. Signed-off-by: Zhao, Gang gamer...@gmail.com --- target/linux/ar71xx/image/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux

[OpenWrt-Devel] [PATCH 2/2] base-files: remove function service_kill

2014-05-21 Thread Zhao, Gang
Function service_kill is deprecated and has no user, so remove it. Signed-off-by: Zhao, Gang gamer...@gmail.com --- package/base-files/files/lib/functions/service.sh | 23 --- 1 file changed, 23 deletions(-) diff --git a/package/base-files/files/lib/functions/service.sh b

[OpenWrt-Devel] [PATCH] ar71xx: add support for dlink dir-615-e1

2014-05-21 Thread Zhao, Gang
Dlink dir-615-e1 can use dir-600-a1's image, but the image can't be uploaded through dlink's normal firmware update web page. Add profile for dir-615-e1 so the generated image can be uploaded through the firmware update web page. Signed-off-by: Zhao, Gang gamer...@gmail.com --- target/linux

[OpenWrt-Devel] [PATCH 2/2] kernel: modify mtd related patches for 3.14

2014-05-06 Thread Zhao, Gang
change. Signed-off-by: Zhao, Gang gamer...@gmail.com --- target/linux/adm8668/files/drivers/mtd/maps/adm8668.c | 4 +++- target/linux/ar71xx/files/drivers/mtd/tplinkpart.c| 4 +++- target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c | 4 +++- target/linux/at91/files/drivers/mtd/at91part.c

[OpenWrt-Devel] [PATCH 1/2] kernel/generic: modify mtd related patches for 3.14

2014-05-06 Thread Zhao, Gang
kernel like: drivers/mtd/mtdsplit_seama.c: In function 'mtdsplit_seama_init': drivers/mtd/mtdsplit_seama.c:99:2: error: void value not ignored as it ought to be return register_mtd_parser(mtdsplit_seama_parser); ^ Signed-off-by: Zhao, Gang gamer...@gmail.com --- .../linux/generic/files