The patch number 9913 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        v4l-dvb-maintai...@linuxtv.org

------

From: Mauro Carvalho Chehab  <mche...@redhat.com>
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.

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/common/tuners/tuner-xc2028.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -r 3cc7daa31234 -r 1a8465b99952 
linux/drivers/media/common/tuners/tuner-xc2028.c
--- a/linux/drivers/media/common/tuners/tuner-xc2028.c  Tue Dec 16 23:04:56 
2008 -0200
+++ b/linux/drivers/media/common/tuners/tuner-xc2028.c  Thu Dec 18 07:00:25 
2008 -0200
@@ -1111,6 +1111,10 @@ static int xc2028_sleep(struct dvb_front
                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);
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/1a8465b999520a0aa9415faefa50b3d4bae7234b

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to