Skip to content

Commit

Permalink
V4L/DVB (9913): tuner-xc2028: allow printing stack trace as debug on …
Browse files Browse the repository at this point in the history
…sleep code

tuner-xc3028 can be put to sleep to save power. However, if not properly
recovered from sleep, the device won't work. It is noticed that some
devices doesn't recover properly, so let's add a dump_stack() as a debug
option, to allow us to track when this happens.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Dec 30, 2008
1 parent efc52a9 commit e278e74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/common/tuners/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,10 @@ static int xc2028_sleep(struct dvb_frontend *fe)
return 0;

tuner_dbg("Putting xc2028/3028 into poweroff mode.\n");
if (debug > 1) {
tuner_dbg("Printing sleep stack trace:\n");
dump_stack();
}

mutex_lock(&priv->lock);

Expand Down

0 comments on commit e278e74

Please sign in to comment.