Skip to content

Commit

Permalink
Blazed v2.3.0R3 1300Mhz Overclocked & UnderVolted with BackLightNotifier
Browse files Browse the repository at this point in the history
	Fix dprams non command handler, declare functions
  • Loading branch information
sirgatez committed Feb 7, 2011
1 parent 0597c18 commit 0f1d445
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions dpram/dpram.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ static void res_ack_tasklet_handler(unsigned long data);
static void fmt_rcv_tasklet_handler(unsigned long data);
static void raw_rcv_tasklet_handler(unsigned long data);

static void command_handler(u16 non_cmd);
static void non_command_handler(u16 non_cmd);

static DECLARE_TASKLET(fmt_send_tasklet, fmt_rcv_tasklet_handler, 0);
static DECLARE_TASKLET(raw_send_tasklet, raw_rcv_tasklet_handler, 0);
static DECLARE_TASKLET(fmt_res_ack_tasklet, res_ack_tasklet_handler,
Expand Down Expand Up @@ -1923,20 +1926,23 @@ static void command_handler(u16 cmd)
case INT_MASK_CMD_SMP_REP:
cmd_smp_rep_handler();
break;

case 0xff3f:
//Unknown command that randomly appears
//No known damage occurs here
dprintk(KERN_ERR "Unknown command.. %x ...attempting to drop\n", cmd);
non_command_handler(irq_mask);
non_command_handler(cmd);
break;

case 0xf:
//Unknown command that randomly appears
dprintk(KERN_ERR "Unknown command.. %x BAD THINGS HAPPEN...attempting to drop\n", cmd);
non_command_handler(irq_mask);
non_command_handler(cmd);
break;

default:
dprintk(KERN_ERR "Unknown command.. %x ...attempting to drop\n", cmd);
non_command_handler(irq_mask);
non_command_handler(cmd);
break;
}
}
Expand Down

0 comments on commit 0f1d445

Please sign in to comment.