Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162359
b: refs/heads/master
c: 794f1d7
h: refs/heads/master
i:
  162357: fdc0e04
  162355: e94e3d4
  162351: f46f40c
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent ea4e889 commit 33c2f2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79de99e864fb731392bec78f251ce0310fed5d9a
refs/heads/master: 794f1d789520d423ef6d90d5390edea5c1b687c2
17 changes: 11 additions & 6 deletions trunk/drivers/staging/sep/sep_main_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -3803,6 +3803,15 @@ static int sep_set_time(unsigned long *address_ptr,
return 0;
}

static void sep_wait_busy(struct sep_device *dev)
{
u32 reg;

do {
reg = sep_read_reg(sep_dev, HW_HOST_SEP_BUSY_REG_ADDR);
} while (reg);
}

/*
PATCH for configuring the DMA to single burst instead of multi-burst
*/
Expand All @@ -3822,9 +3831,7 @@ static void sep_configure_dma_burst(void)
DEBUG_PRINT_0(SEP_DEBUG_LEVEL_BASIC,
"SEP Driver:<-------- sep_configure_dma_burst finished request access to registers from SEP (write reg) \n");

regVal = sep_read_reg(sep_dev, HW_HOST_SEP_BUSY_REG_ADDR);
while (regVal)
regVal = sep_read_reg(sep_dev, HW_HOST_SEP_BUSY_REG_ADDR);
sep_wait_busy(sep_dev);

DEBUG_PRINT_0(SEP_DEBUG_LEVEL_BASIC,
"SEP Driver:<-------- sep_configure_dma_burst finished request access to registers from SEP (while(revVal) wait loop) \n");
Expand All @@ -3834,9 +3841,7 @@ static void sep_configure_dma_burst(void)

/* release the sep busy */
sep_write_reg(sep_dev, HW_HOST_HOST_SEP_GPR0_REG_ADDR, 0x0UL);
regVal = sep_read_reg(sep_dev, HW_HOST_SEP_BUSY_REG_ADDR);
while (regVal != 0x0)
regVal = sep_read_reg(sep_dev, HW_HOST_SEP_BUSY_REG_ADDR);
sep_wait_busy(sep_dev);

DEBUG_PRINT_0(SEP_DEBUG_LEVEL_BASIC,
"SEP Driver:<-------- sep_configure_dma_burst done \n");
Expand Down

0 comments on commit 33c2f2f

Please sign in to comment.