David Brownell wrote: > On Tuesday 23 June 2009, Steven A. Falco wrote: >> m25p80 spi0.0: invalid bits-per-word (0) >> >> This message comes from spi_ppc4xx_setupxfer. I believe your patch >> is doing what you intended (i.e. forcing an initial call to >> spi_ppc4xx_setupxfer), but it exposes an OF / SPI linkage problem. >> >> Namely, of_register_spi_devices does not support a bits-per-word >> property, so bits-per-word is zero. > > Bits-per-word == 0 must be interpreted as == 8. > > Simple bug in the ppc4xx code. It currently rejects > values other than 8.
Ok - I'll post a patch for that. Your changes to bitbang_work look good. I'm not clear on why you first set do_setup = -1 but later use do_setup = 1. Perhaps they should both be "1". Other than that, Acked-by: Steven A. Falco <sfa...@harris.com> > > Speaking of spi_ppc4xx issues ... I still have an oldish > copy in my review queue, it needs something like the > appended patch. (Plus something to accept bpw == 0.) > Is there a newer version? That is a question for Stefan. Perhaps when I post my patch to the PPC list, we can move this further along... Steve _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev