From patchwork Fri Jan 14 21:50:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Walls X-Patchwork-Id: 480531 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0ELp6RI003056 for ; Fri, 14 Jan 2011 21:51:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752822Ab1ANVvF (ORCPT ); Fri, 14 Jan 2011 16:51:05 -0500 Received: from proofpoint-cluster.metrocast.net ([65.175.128.136]:49783 "EHLO proofpoint-cluster.metrocast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752786Ab1ANVvD (ORCPT ); Fri, 14 Jan 2011 16:51:03 -0500 Received: from [192.168.1.2] (d-216-36-28-191.cpe.metrocast.net [216.36.28.191]) (authenticated bits=0) by pear.metrocast.net (8.13.8/8.13.8) with ESMTP id p0ELoe9e030320; Fri, 14 Jan 2011 21:50:40 GMT Subject: [PATCH] ir-kbd-i2c: Add debug to examine received data in get_key_haup_common() From: Andy Walls To: Jarod Wilson Cc: Janne Grunau , linux-media@vger.kernel.org, Jean Delvare Date: Fri, 14 Jan 2011 16:50:44 -0500 Message-ID: <1295041844.2459.15.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15, 1.0.148, 0.0.0000 definitions=2011-01-07_07:2011-01-07, 2011-01-07, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-1012030000 definitions=main-1101070029 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 14 Jan 2011 21:51:07 +0000 (UTC) diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index c87b6bc..b27fc43 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c @@ -76,6 +76,11 @@ static int get_key_haup_common(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw, if (size != i2c_master_recv(ir->c, buf, size)) return -EIO; + if (debug >= 2) + print_hex_dump_bytes(MODULE_NAME + ": get_key_haup_common: received bytes: ", + DUMP_PREFIX_NONE, buf, size); + /* split rc5 data block ... */ start = (buf[offset] >> 7) & 1; range = (buf[offset] >> 6) & 1;