From 6bf258b54c3b4f9a2663c5ec8b4bf13e246a713b Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Mon, 10 Oct 2016 00:18:37 +0200 Subject: [PATCH] - initialize SKU ids - add debug code to check if firmware crashed --- frontends/mxl5xx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontends/mxl5xx.c b/frontends/mxl5xx.c index 452e82a..949e2b9 100644 --- a/frontends/mxl5xx.c +++ b/frontends/mxl5xx.c @@ -698,6 +698,10 @@ static int read_signal_strength(struct dvb_frontend *fe, u16 *strength) int stat; u32 regData = 0; +#if 0 + if (!firmware_is_alive(state)) + pr_info("FW dead!\n"); +#endif mutex_lock(&state->base->status_lock); HYDRA_DEMOD_STATUS_LOCK(state, state->demod); stat = read_register(state, (HYDRA_DMD_STATUS_INPUT_POWER_ADDR + @@ -1639,7 +1643,7 @@ static int load_fw(struct mxl *state, struct mxl5xx_cfg *cfg) static int validate_sku(struct mxl *state) { - u32 padMuxBond, prcmChipId, prcmSoCId; + u32 padMuxBond = 0, prcmChipId = 0, prcmSoCId = 0; int status; u32 type = state->base->type;