Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333845
b: refs/heads/master
c: 034351f
h: refs/heads/master
i:
  333843: bac2e44
v: v3
  • Loading branch information
Rémi Cardona authored and Mauro Carvalho Chehab committed Oct 7, 2012
1 parent b28cc6e commit b9ccf67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: c2c1b4156a447f113ef4d167decce29399c2667c
refs/heads/master: 034351ff6372c1a880ed4c5d333e430e9c83d467
12 changes: 9 additions & 3 deletions trunk/drivers/media/dvb-frontends/ds3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "ds3000.h"

static int debug;
static int force_fw_upload;

#define dprintk(args...) \
do { \
Expand Down Expand Up @@ -392,11 +393,13 @@ static int ds3000_firmware_ondemand(struct dvb_frontend *fe)

dprintk("%s()\n", __func__);

if (ds3000_readreg(state, 0xb2) <= 0)
ret = ds3000_readreg(state, 0xb2);
if (ret < 0)
return ret;

if (state->skip_fw_load)
return 0;
if (state->skip_fw_load || !force_fw_upload)
return 0; /* Firmware already uploaded, skipping */

/* Load firmware */
/* request the firmware, this will block until someone uploads it */
printk(KERN_INFO "%s: Waiting for firmware upload (%s)...\n", __func__,
Expand Down Expand Up @@ -1306,6 +1309,9 @@ static struct dvb_frontend_ops ds3000_ops = {
module_param(debug, int, 0644);
MODULE_PARM_DESC(debug, "Activates frontend debugging (default:0)");

module_param(force_fw_upload, int, 0644);
MODULE_PARM_DESC(force_fw_upload, "Force firmware upload (default:0)");

MODULE_DESCRIPTION("DVB Frontend module for Montage Technology "
"DS3000/TS2020 hardware");
MODULE_AUTHOR("Konstantin Dimitrov");
Expand Down

0 comments on commit b9ccf67

Please sign in to comment.