diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-18 04:00:25 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:39:15 -0500 |
commit | e278e746bc95dd1e7aa90eb5b858c309266797cd (patch) | |
tree | 78856a2d2cd325a44c92aab9295a031a3f6dbd69 /drivers/media/common | |
parent | efc52a94840198eb5ba68107812b879d34959dbb (diff) |
V4L/DVB (9913): tuner-xc2028: allow printing stack trace as debug on 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>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/tuner-xc2028.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c index 7b7e242cae16..1adce9ff52ce 100644 --- a/drivers/media/common/tuners/tuner-xc2028.c +++ b/drivers/media/common/tuners/tuner-xc2028.c | |||
@@ -1107,6 +1107,10 @@ static int xc2028_sleep(struct dvb_frontend *fe) | |||
1107 | return 0; | 1107 | return 0; |
1108 | 1108 | ||
1109 | tuner_dbg("Putting xc2028/3028 into poweroff mode.\n"); | 1109 | tuner_dbg("Putting xc2028/3028 into poweroff mode.\n"); |
1110 | if (debug > 1) { | ||
1111 | tuner_dbg("Printing sleep stack trace:\n"); | ||
1112 | dump_stack(); | ||
1113 | } | ||
1110 | 1114 | ||
1111 | mutex_lock(&priv->lock); | 1115 | mutex_lock(&priv->lock); |
1112 | 1116 | ||