Dag Brattli <[EMAIL PROTECTED]> writes:

> Hi,
> 
> Just want you to know that I now have the smc-ircc driver running at 4Mbps
> on a Dell laptop. Still needs some more hacking, but it looks really
> promising. Should be able to build a new patch tomorrow!

SMC driver update:

Can now survive ping -f and run xmatrix (xscreensaver) X-redirected to
another PC. The speed is very good and I have no problems at all. Have sent
over 400.000 frames now, so I think I'll put out a new patch later today
instead of tomorrow.

Changes I had to do to the smc-ircc driver to make it work:

o Add probing for the SMC FDC37N958. The driver now knows about the
  FDC37C669, and the FDC37N958.

o The underrun condition was gives as iobase to the tx_complete function
  and received as underrun ;-)
 
o Tx DMA wasn't disabled correctly

o Now uses demand mode DMA instead of single mode DMA

o Fixed the .h file. It contained a lot of entries which looked like this:
  #define IRCC_IIR_ACTIVE_FRAME    1<<7

  This is very dangerous if you ask me. The safe version is either 0x80 (as 
  I'm using, or (1<<7). Using the above macro, may evaluate to something 
  very unpredictable if combined with other code.

o Added spinlocks so it's SMP safe. This will also make sure that an
  interrupt never occurs when the Tx function is called (then you would get 
  a register bank crashes)

o Fixed the Tx and Rx functions so they:

  1) turn off chip DMA

  2) setup DMA controller

  3) enable chip dma

  The original code missed 1)

o Removed a lot of debug functions which would crash the machine if you got
  a too high speed (too many messages printet pr second).

TODO:

Better support for the IrCC 2.0 which can handle back-to-back frames. The
current code cannot handle this. I don't have access to the IrCC 2.0 chip,
so somebody else will have to do this job.

-- Dag 

-- 
   / Dag Brattli                   | The Linux-IrDA Project               /
  // University of Tromsoe, Norway | Infrared communication for Linux    //
 /// http://www.cs.uit.no/~dagb    | http://www.cs.uit.no/linux-irda/   ///

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to