On 12/13/06, <b class="gmail_sendername">Joakim Tjernlund</b> <<a href="mailto:joakim.tjernlund@transmode.se">joakim.tjernlund@transmode.se</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The MPC 832x has a different SPI controller i/f, probably due to<br>its QUICC engine support. This patch adapts the spi_mpx83xx driver to<br>be usable on QE based 83xx cpus.<br></blockquote></div><br>First, I'm pretty much against sending such patches to arch lists and not to subsystem lists.
<br><br>@@ -99,31 +105,39 @@ static inline u32 mpc83xx_spi_read_reg(_<br> return in_be32(reg);<br> }<br><br>Then, this <br>+ *rx++ = (type)(data >> shift); \<br>and this
<br>+ data = *tx++ << shift; \<br><br>pieces of code are potentially dangerous (what if 'shift' is something like 'x & 0xf3 << 4' ?)<br><br>Vitaly<br>