[OpenWrt-Devel] [PATCH] lantiq: fix wrong parameter order in xway_nand driver
Signed-off-by: Mathias Kresin--- .../linux/lantiq/patches-4.4/0018-MTD-nand-lots-of-xrx200-fixes.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/lantiq/patches-4.4/0018-MTD-nand-lots-of-xrx200-fixes.patch b/target/linux/lantiq/patches-4.4/0018-MTD-nand-lots-of-xrx200-fixes.patch index 5500861..31682bc 100644 --- a/target/linux/lantiq/patches-4.4/0018-MTD-nand-lots-of-xrx200-fixes.patch +++ b/target/linux/lantiq/patches-4.4/0018-MTD-nand-lots-of-xrx200-fixes.patch @@ -69,7 +69,7 @@ Signed-off-by: John Crispin + if (req_mask) { + if (cmd != NAND_CMD_STATUS) -+ ltq_ebu_w32(EBU_NAND_WAIT, 0); /* Clear nand ready */ ++ ltq_ebu_w32(0, EBU_NAND_WAIT); /* Clear nand ready */ + } + + -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] lantiq: VGV7510KW22/VGV7519 update spi pinmux group
With the backport of the kernel 4.5 pinctrl-xway patches (3551609d & 826bca29) the pinmux group "spi" was splitted into "spi_di", "spi_do" & "spi_clk". But the no longer existing group "spi" is still used by some device tree source files. This fixes the detection of the wireless chipset of the VGV7510KW22. Signed-off-by: Mathias Kresin--- target/linux/lantiq/dts/VGV7510KW22.dtsi | 2 +- target/linux/lantiq/dts/VGV7519.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/lantiq/dts/VGV7510KW22.dtsi b/target/linux/lantiq/dts/VGV7510KW22.dtsi index c3722e9..e504dc2 100644 --- a/target/linux/lantiq/dts/VGV7510KW22.dtsi +++ b/target/linux/lantiq/dts/VGV7510KW22.dtsi @@ -74,7 +74,7 @@ lantiq,output = <1>; }; spi { - lantiq,groups = "spi"; + lantiq,groups = "spi_di", "spi_do", "spi_clk"; lantiq,function = "spi"; }; }; diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi index 4a56114..95de6e5 100644 --- a/target/linux/lantiq/dts/VGV7519.dtsi +++ b/target/linux/lantiq/dts/VGV7519.dtsi @@ -53,7 +53,7 @@ lantiq,function = "stp"; }; spi { - lantiq,groups = "spi"; + lantiq,groups = "spi_di", "spi_do", "spi_clk"; lantiq,function = "spi"; }; mdio { -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] lantiq: BTHOMEHUBV5A - explicit select the flash device
The stock u-boot doesn't disable unused flash banks. Therefore, the nand driver tries to initialize a not connected NOR flash and the device hangs on boot. Workaround the issue by selecting the second flash bank (NAND). Signed-off-by: Mathias Kresin--- target/linux/lantiq/dts/BTHOMEHUBV5A.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts index 414d4bb..9283f62 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts @@ -28,7 +28,7 @@ compatible = "gen_nand", "lantiq,nand-xway"; lantiq,cs = <1>; bank-width = <2>; - reg = <0 0x0 0x200>; + reg = <0x1 0x0 0x200>; #address-cells = <1>; #size-cells = <1>; -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [RFC] libubus.h: add ubus_auto_shutdown()
From: Ben KellyAdd ubus_auto_shutdown function, which ensures any pending uloop_timer is cancelled before calling ubus_shutdown on the context. This avoids a condition where ubus_shutdown() is called during ubus_auto_connect attempting a reconnection. Signed-off-by: Ben Kelly --- libubus.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libubus.h b/libubus.h index 54e7d48..1b219b7 100644 --- a/libubus.h +++ b/libubus.h @@ -240,6 +240,12 @@ void ubus_free(struct ubus_context *ctx); /* call this only for struct ubus_context pointers initialised by ubus_connect_ctx() */ void ubus_shutdown(struct ubus_context *ctx); +static inline void ubus_auto_shutdown(struct ubus_auto_conn *conn) +{ + uloop_timeout_cancel(>timer); + ubus_shutdown(>ctx); +} + const char *ubus_strerror(int error); static inline void ubus_add_uloop(struct ubus_context *ctx) -- 2.5.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Trac accounts
Am I supposed to make an account to post tickets? I thought I was supposed to play with things in https://dev.openwrt.org/prefs but saving returns a HTTP 400. Trying to make an account complains my username is taken. Trying to reset my password complains my account doesn't exist. What give? I have old tickets signed with my email so something worked at one point. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel