Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235548
b: refs/heads/master
c: f023eab
h: refs/heads/master
v: v3
  • Loading branch information
Feng Tang authored and Greg Kroah-Hartman committed Feb 22, 2011
1 parent 67ffa0e commit b3654ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 085a4f758f0cf95e1865b63892bf4304a149f0ca
refs/heads/master: f023eab379821365bf265a0240f30c00cecaef7c
11 changes: 11 additions & 0 deletions trunk/drivers/tty/serial/mfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
#define mfd_readl(obj, offset) readl(obj->reg + offset)
#define mfd_writel(obj, offset, val) writel(val, obj->reg + offset)

static int hsu_dma_enable;
module_param(hsu_dma_enable, int, 0);
MODULE_PARM_DESC(hsu_dma_enable, "It is a bitmap to set working mode, if \
bit[x] is 1, then port[x] will work in DMA mode, otherwise in PIO mode.");

struct hsu_dma_buffer {
u8 *buf;
dma_addr_t dma_addr;
Expand Down Expand Up @@ -1367,6 +1372,12 @@ static void hsu_global_init(void)

serial_hsu_ports[i] = uport;
uport->index = i;

if (hsu_dma_enable & (1<<i))
uport->use_dma = 1;
else
uport->use_dma = 0;

uport++;
}

Expand Down

0 comments on commit b3654ce

Please sign in to comment.