Thread (9 messages) flat view 9 messages, 4 authors, 2007-10-08

Re: [PATCH] fsl_spi_init: Support non-QE processors

From: Kumar Gala <hidden>
Date: 2007-10-03 22:11:02

On Oct 3, 2007, at 1:17 PM, Grant Likely wrote:
On 10/3/07, Peter Korsgaard [off-list ref] wrote:
quoted
quoted
quoted
quoted
quoted
quoted
"Grant" == Grant Likely [off-list ref] writes:
Hi,

 Grant> Why not just:

 Grant>         np = of_find_node_by_type(NULL, "qe");
 Grant> +       if (!np)
 Grant> +               np = of_find_node_by_type(NULL, "soc");
 Grant>         if (!np)
 Grant>                 return -ENODEV;

My first iteration did it like that, but then you don't get a -ENODEV
if the node is missing (and you'll end up using the wrong clock) and
it doesn't support processors with SPI on and off QE (if that
exists/will ever exist).
Okay, but you should at least be able confine your determination of
which sysclk value to use to one part of the function.  Otherwise, it
looks good.
Peter, can you respin this w/Grant's modification.  I've grabbed the  
other patches and applied them.  waiting on this one.

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help