• Stelian Pop's avatar
    [PATCH] meye driver update · e8bae927
    Stelian Pop authored
    * replace the pci_alloc_consistent calls with dma_alloc_coherent
      because we want to do the allocations at GFP_KERNEL priority and
      not GFP_ATOMIC because we request quite a bit of memory and the
      allocation fails quite frequently.
    
      It would be better to have a pci_alloc_consistent with an extra
      parameter (priority) but since we haven't, and the meye driver is
      supposed to work only on ix86 platforms we can safely do the
      change.
    
    * fix the DMA engine stop request. The hard freezes encountered
      when using this driver and repeatedly opening/closing the device
      have been tracked down to this particular piece of code. The new
      version seems to work way better, I haven't had a single freeze
      since the change.
    
    * fix the irq handler prototype (irqreturn_t changes).
    e8bae927
meye.h 11.9 KB