Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261516
b: refs/heads/master
c: 9c6e182
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 7c37db8 commit 816df7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 147e110bb69a5eaee83bab133d7f7cc4ee050808
refs/heads/master: 9c6e18280091ee2cf78bfb33a1770b5b59c8afae
10 changes: 10 additions & 0 deletions trunk/drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ static int GetDeviceCapabilities(struct drxk_state *state)
u16 sioPdrOhwCfg = 0;
u32 sioTopJtagidLo = 0;
int status;
const char *spin = "";

dprintk(1, "\n");

Expand Down Expand Up @@ -954,12 +955,15 @@ static int GetDeviceCapabilities(struct drxk_state *state)
switch ((sioTopJtagidLo >> 29) & 0xF) {
case 0:
state->m_deviceSpin = DRXK_SPIN_A1;
spin = "A1";
break;
case 2:
state->m_deviceSpin = DRXK_SPIN_A2;
spin = "A2";
break;
case 3:
state->m_deviceSpin = DRXK_SPIN_A3;
spin = "A3";
break;
default:
state->m_deviceSpin = DRXK_SPIN_UNKNOWN;
Expand Down Expand Up @@ -1079,6 +1083,12 @@ static int GetDeviceCapabilities(struct drxk_state *state)
goto error2;
}

printk(KERN_INFO
"drxk: detected a drx-39%02xk, spin %s, xtal %d.%03d MHz\n",
((sioTopJtagidLo >> 12) & 0xFF), spin,
state->m_oscClockFreq / 1000,
state->m_oscClockFreq % 1000);

error:
if (status < 0)
printk(KERN_ERR "drxk: Error %d on %s\n", status, __func__);
Expand Down

0 comments on commit 816df7d

Please sign in to comment.