Feng Tang wrote:
> +
> +     /*
> +      * Try to detect the FIFO depth if not set by interface driver,
> +      * the depth could be from 2 to 256 from HW spec
> +      */
> +     if (!dws->fifo_len) {
> +             u32 fifo;
> +             for (fifo = 2; fifo <= 257; fifo++) {
> +                     dw_writew(dws, txfltr, fifo);
> +                     if (fifo != dw_readw(dws, txfltr))
> +                             break;
> +             }
> +
> +             dws->fifo_len = (fifo == 257) ? 0 : fifo;
> +             dw_writew(dws, txfltr, 0);
> +     }
>  }
>  
>  int __devinit dw_spi_add_host(struct dw_spi *dws)
>   
Just what I was looking for; thanks!

Acked-by: Jean-Hugues Deschenes <[email protected]>





------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to