I try to rewrite a dma driver for a special board on a minirtlV2.2.
But i cannot disable the interrupts !!
My code :

    rtl_hard_savef_and_cli(irqflag);

    startdma()

    interruptible_sleep_on(&request->sleep);

    rtl_hard_restore_flags(irqflag);
 

if i start a small dma transfert I receive  the interrupts before  i call  the "interruptible_sleep_on()" .
(If  i start a very large transfert (128Ko) i can call "interruptible_on_sleep" before the dma is finished)

i work  on a 386 SX   and the driver is called from a Rt task .

Thanks for any helps .

Roland
 



Reply via email to