summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/tuners/tuner-xc2028.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-18 07:00:25 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-18 07:00:25 -0200
commit8a118c204b8f52bd5b51f99be1d641360696bb21 (patch)
treec1469d45335537a3bda628327ff5028533a7f109 /linux/drivers/media/common/tuners/tuner-xc2028.c
parent9052d2a1095d9cf39e4f9d3fa8989beefbd2933e (diff)
downloadmediapointer-dvb-s2-8a118c204b8f52bd5b51f99be1d641360696bb21.tar.gz
mediapointer-dvb-s2-8a118c204b8f52bd5b51f99be1d641360696bb21.tar.bz2
tuner-xc2028: allow printing stack trace as debug on sleep code
From: Mauro Carvalho Chehab <mchehab@redhat.com> 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. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/common/tuners/tuner-xc2028.c')
-rw-r--r--linux/drivers/media/common/tuners/tuner-xc2028.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/common/tuners/tuner-xc2028.c b/linux/drivers/media/common/tuners/tuner-xc2028.c
index 9536e3d3b..bd010379b 100644
--- a/linux/drivers/media/common/tuners/tuner-xc2028.c
+++ b/linux/drivers/media/common/tuners/tuner-xc2028.c
@@ -1111,6 +1111,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);