~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/dma/ioat/dma_v2.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <linux/delay.h>
35
35
#include <linux/dma-mapping.h>
36
36
#include <linux/workqueue.h>
 
37
#include <linux/prefetch.h>
37
38
#include <linux/i7300_idle.h>
38
39
#include "dma.h"
39
40
#include "dma_v2.h"
507
508
        struct ioat_ring_ent **ring;
508
509
        u64 status;
509
510
        int order;
 
511
        int i = 0;
510
512
 
511
513
        /* have we already been set up? */
512
514
        if (ioat->ring)
547
549
        ioat2_start_null_desc(ioat);
548
550
 
549
551
        /* check that we got off the ground */
550
 
        udelay(5);
551
 
        status = ioat_chansts(chan);
 
552
        do {
 
553
                udelay(1);
 
554
                status = ioat_chansts(chan);
 
555
        } while (i++ < 20 && !is_ioat_active(status) && !is_ioat_idle(status));
 
556
 
552
557
        if (is_ioat_active(status) || is_ioat_idle(status)) {
553
558
                set_bit(IOAT_RUN, &chan->state);
554
559
                return 1 << ioat->alloc_order;