Re: [BUG] Rockchip SPI: long burst writes produce unexpected result

2019-04-08 Thread Vicente Bergas
On Sunday, April 7, 2019 9:55:10 PM CEST, Emil Renner Berthing wrote: Hi Vicente, On Sat, 6 Apr 2019 at 19:35, Vicente Bergas wrote: Hi, i have been experiencing issues writing to NOR-Flash SPI Memories from two RK3399-based platforms: gru-kevin and sapphire board. For kevin, this resulted in

Re: [BUG] Rockchip SPI: long burst writes produce unexpected result

2019-04-07 Thread Emil Renner Berthing
Hi Vicente, On Sat, 6 Apr 2019 at 19:35, Vicente Bergas wrote: > > Hi, > i have been experiencing issues writing to NOR-Flash SPI Memories > from two RK3399-based platforms: gru-kevin and sapphire board. > For kevin, this resulted in a bricked device because that memory > is the only boot device.

Re: [BUG] Rockchip SPI: long burst writes produce unexpected result

2019-04-06 Thread Vicente Bergas
Hi, please, forget my previous mail about eff0275e5253604429aedc42b008c5fcaa6cc597 spi: rockchip: simplify use_dma logic i messed up with commit IDs, sorry. The first offending commit is one later than that: commit 420b82f842941a32adf309ca1b193adfc77616b0 Date: Wed Oct 31 11:57:07 2018 +0100

Re: [BUG] Rockchip SPI: long burst writes produce unexpected result

2019-04-06 Thread Vicente Bergas
Hi again, just found the first offending commit: commit eff0275e5253604429aedc42b008c5fcaa6cc597 Date: Wed Oct 31 11:57:06 2018 +0100 spi: rockchip: simplify use_dma logic We only need to know if we're using dma when setting up the transfer, so just use a local variable for th

[BUG] Rockchip SPI: long burst writes produce unexpected result

2019-04-06 Thread Vicente Bergas
Hi, i have been experiencing issues writing to NOR-Flash SPI Memories from two RK3399-based platforms: gru-kevin and sapphire board. For kevin, this resulted in a bricked device because that memory is the only boot device. Fortunately an external programmer is available. In order to isolate where