[OpenWrt-Devel] Broken SPI transfers on TD-W8970 (latest trunk)

John Crispin blogic at openwrt.org
Thu Oct 15 01:59:26 EDT 2015


bummer. i had hoped that my patch fixed the issue.

did you try the patch graham posted ?

	John

On 14/10/2015 20:38, Martin Blumenstingl wrote:
> Hi John,
> 
> I am getting SPI errors on latest trunk.
> It seems that those might be related to your SPI changes from last week.
> 
> I found that someone else reported a similar issue a few years ago: [0].
> That patch was never applied and I'm not sure if it's 100% correct.
> 
> These are the errors I get without the rxreq_max correction
> (hw->rxfs -1) applied - the device is barely usable in this case:
> [  106.211973] spi-xway 1e100800.spi: SPI wait ready timed out stat: 44002003
> [  106.217446] m25p80 spi32766.3: wait failed
> [  106.419959] spi-xway 1e100800.spi: SPI wait ready timed out stat: 44002003
> [  106.623973] spi-xway 1e100800.spi: SPI wait ready timed out stat: c4002003
> [  106.629442] m25p80 spi32766.3: wait failed
> [  106.831959] spi-xway 1e100800.spi: SPI wait ready timed out stat: c4002003
> [  107.035969] spi-xway 1e100800.spi: SPI wait ready timed out stat: c4002003
> [  107.041432] m25p80 spi32766.3: wait failed
> [  107.243966] spi-xway 1e100800.spi: SPI wait ready timed out stat: c4002003
> [  107.447973] spi-xway 1e100800.spi: SPI wait ready timed out stat: c4002003
> 
> However, with the rxreq_max correction applied it works better, but I
> get read errors sometimes:
> [   18.798861] spi-xway 1e100800.spi: error 441e2203
> [   18.802207] spi_master spi32766: failed to transfer one message from queue
> [   18.810784] spi-xway 1e100800.spi: error 44162203
> [   18.814123] spi_master spi32766: failed to transfer one message from queue
> or:
> # passwd
> [  123.844172] spi-xway 1e100800.spi: error b4092203
> [  123.847459] spi_master spi32766: failed to transfer one message from queue
> passwd: no record of root in /etc/shadow, using /etc/passwd: I/O error
> 
> I've attached two patches where the second one should help debugging
> this (or further) issues, and the other one might actually fix an actual
> on some devices.
> 
> Are you able to reproduce these issues on your TD-W89x0 as well?
> 
> Regards,
> Martin
> 
> 
> [0] https://lists.openwrt.org/pipermail/openwrt-devel/2012-April/014794.html
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list