Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-17 Thread Martin Blumenstingl
On Sat, Jan 16, 2016 at 10:48 PM, Daniel Schwierzeck wrote: > Am Samstag, den 16.01.2016, 21:17 +0100 schrieb Martin Blumenstingl: > >> So compared to your patch the final list of changes is: >> - INIT_COMPLETION -> reinit_completion >> - use clk_get_fpi() >> -

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-16 Thread Martin Blumenstingl
Hi Daniel, On Sat, Jan 16, 2016 at 1:06 AM, Martin Blumenstingl wrote: >> It is a complete rewrite with DT support and runs against the UGW-6.1.1 >> kernel. Unfortunately I hadn't time yet to adapt and test it with >> OpenWRT. Maybe you want to volunteer for

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-16 Thread Martin Blumenstingl
On Sat, Jan 16, 2016 at 4:34 PM, Daniel Schwierzeck wrote: > nice, thanks for testing :) Thanks for writing nice patches ;-) >> - replace INIT_COMPLECTION with reinit_completion (this is due the >> newer kernel version in OpenWrt) >> - use clk_get_fpi() to obtain

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-16 Thread Daniel Schwierzeck
Am Samstag, den 16.01.2016, 18:03 +0100 schrieb Martin Blumenstingl: > On Sat, Jan 16, 2016 at 4:34 PM, Daniel Schwierzeck > wrote: > > nice, thanks for testing :) > Thanks for writing nice patches ;-) > > > > - replace INIT_COMPLECTION with reinit_completion (this

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-16 Thread Daniel Schwierzeck
Am Samstag, den 16.01.2016, 15:39 +0100 schrieb Martin Blumenstingl: > Hi Daniel, > > On Sat, Jan 16, 2016 at 1:06 AM, Martin Blumenstingl > wrote: > > > It is a complete rewrite with DT support and runs against the UGW > > > -6.1.1 > > > kernel. Unfortunately

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-16 Thread Daniel Schwierzeck
Am Samstag, den 16.01.2016, 21:17 +0100 schrieb Martin Blumenstingl: > So compared to your patch the final list of changes is: > - INIT_COMPLETION -> reinit_completion > - use clk_get_fpi() > - of_device_id for "lantiq,spi-xrx100" > > I only have three small questions left: > - The "spi_frm"

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-16 Thread Martin Blumenstingl
On Sat, Jan 16, 2016 at 7:07 PM, Daniel Schwierzeck wrote: > If you use native CS, you should use the same numbering as in the > datasheet: > > { > ... > spi-nor@4 { > #address-cells = <1>; > #size-cells = <1>; >

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-15 Thread Martin Blumenstingl
Hi Daniel, On Wed, Jan 13, 2016 at 9:05 PM, Daniel Schwierzeck wrote: > could you retry with the attached driver? > > It is a complete rewrite with DT support and runs against the UGW-6.1.1 > kernel. Unfortunately I hadn't time yet to adapt and test it with >

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-13 Thread Martin Blumenstingl
Hi John, On Mon, Jan 11, 2016 at 3:25 PM, Martin Blumenstingl wrote: > Here's the kernel log from the TD-W8970: https://paste.kde.org/pia7p73i9 > I have debugged it and split_tplink_kernel gets 0x2 as offset and > 0x7A as size (which looks correct).

Re: [OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-13 Thread Daniel Schwierzeck
Hi Martin, Am Mittwoch, den 13.01.2016, 20:23 +0100 schrieb Martin Blumenstingl: > Hi John, > > On Mon, Jan 11, 2016 at 3:25 PM, Martin Blumenstingl > wrote: > > Here's the kernel log from the TD-W8970: > > https://paste.kde.org/pia7p73i9 > > I have debugged

[OpenWrt-Devel] lantiq: Initial linux 4.4 support (with SPI problems)

2016-01-11 Thread Martin Blumenstingl
Hello, this series adds linux 4.4 support to the lantiq target. It depends on the linux/generic 4.4.0 update because -rc8 contains a build-fix for MIPS devices. I have tested it on two (VRX200) devices: - VGV7510KW22 (seems to work fine) - TD-W8970 (the mtd_reads in mtd_split seem to only return