Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325424
b: refs/heads/master
c: d8b5ad6
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 19, 2012
1 parent 7dbc663 commit 9b70c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 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: 1403e797573bc9929d2a5f055dd7dba9184c47c9
refs/heads/master: d8b5ad68972f68d8ce55fb89d77381238fad35b2
22 changes: 3 additions & 19 deletions trunk/drivers/staging/comedi/drivers/daqboard2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,31 +542,18 @@ static int initialize_daqboard2000(struct comedi_device *dev,

/* Check to make sure the serial eeprom is present on the board */
secr = readl(devpriv->plx + 0x6c);
if (!(secr & DAQBOARD2000_EEPROM_PRESENT)) {
#ifdef DEBUG_EEPROM
dev_dbg(dev->class_dev, "no serial eeprom\n");
#endif
if (!(secr & DAQBOARD2000_EEPROM_PRESENT))
return -EIO;
}

for (retry = 0; retry < 3; retry++) {
#ifdef DEBUG_EEPROM
dev_dbg(dev->class_dev, "Programming EEPROM try %x\n", retry);
#endif

daqboard2000_resetLocalBus(dev);
daqboard2000_reloadPLX(dev);
daqboard2000_pulseProgPin(dev);
if (daqboard2000_pollCPLD(dev, DAQBOARD2000_CPLD_INIT)) {
for (i = 0; i < len; i++) {
if (cpld_array[i] == 0xff
&& cpld_array[i + 1] == 0x20) {
#ifdef DEBUG_EEPROM
dev_dbg(dev->class_dev,
"Preamble found at %d\n", i);
#endif
if (cpld_array[i] == 0xff &&
cpld_array[i + 1] == 0x20)
break;
}
}
for (; i < len; i += 2) {
int data =
Expand All @@ -575,9 +562,6 @@ static int initialize_daqboard2000(struct comedi_device *dev,
break;
}
if (i >= len) {
#ifdef DEBUG_EEPROM
dev_dbg(dev->class_dev, "Programmed\n");
#endif
daqboard2000_resetLocalBus(dev);
daqboard2000_reloadPLX(dev);
result = 0;
Expand Down

0 comments on commit 9b70c8d

Please sign in to comment.