Skip to content

Commit

Permalink
Improved DPRAM communications timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirgatez committed Jan 30, 2011
1 parent e2fcdf2 commit 2f9b40a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dpram/dpram.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,19 +852,19 @@ void request_phone_reset(void)
static int onedram_get_semaphore(const char *func)
{
int i, chk_try = 10;
int j, req_try = 5000;
int j, req_try = 10000;

const u16 cmd = INT_COMMAND(INT_MASK_CMD_SMP_REQ);
*onedram_mailboxBA = cmd;
mdelay(1);
mdelay(4);

if(dump_on) return -1;

for(j = 0; j < req_try; j++) {
for(i = 0; i < chk_try; i++) {
if(*onedram_sem) {
unreceived_semaphore = 0;
printk(KERN_ERR "( %s )=====> send IRQ: %x [ Delays: %d x %d ]\n",__func__, cmd, j, i);
//printk(KERN_ERR "( %s )=====> send IRQ: %x [ Delays: %d x %d ]\n",__func__, cmd, j, i);
return 1;
}
udelay(1);
Expand Down Expand Up @@ -894,19 +894,19 @@ static int onedram_get_semaphore(const char *func)
static int onedram_get_semaphore_for_init(const char *func)
{
int i, chk_try = 10;
int j, req_try = 5000;
int j, req_try = 10000;

const u16 cmd = INT_COMMAND(INT_MASK_CMD_SMP_REQ);
*onedram_mailboxBA = cmd;
mdelay(1);
mdelay(4);

if(dump_on) return -1;

for(j = 0; j < req_try; j++) {
for(i = 0; i < chk_try; i++) {
if(*onedram_sem) {
unreceived_semaphore = 0;
printk(KERN_ERR "( %s )=====> send IRQ: %x [ Delays: %d x %d ]\n",__func__, cmd, j, i);
//printk(KERN_ERR "( %s )=====> send IRQ: %x [ Delays: %d x %d ]\n",__func__, cmd, j, i);
return 1;
}
udelay(1);
Expand Down

0 comments on commit 2f9b40a

Please sign in to comment.