b/drivers/input/mouse/cypress_ps2.c
@@ -27,7 +27,7 @@
#include "cypress_ps2.h"
-#undef CYTP_DEBUG_VERBOSE /* define this and DEBUG for more verbose dump */
+#define CYTP_DEBUG_VERBOSE /* define this and DEBUG for more verbose dump */
static void cypress_set_packet_size(struct psmouse *psmouse, unsigned int n)
{
@@ -583,8 +583,12 @@ static psmouse_ret_t cypress_validate_byte(struct
psmouse *psmouse)
unsigned char *packet = psmouse->packet;
struct cytp_data *cytp = psmouse->private;
- if (index < 0 || index > cytp->pkt_size)
+ if (index < 0 || index > cytp->pkt_size) {
+ psmouse_warn(psmouse,
+ "lp1693440: index = %d, pkt_size = %d\n",
+ index, cytp->pkt_size);
return PSMOUSE_BAD_DATA;
+ }
if (index == 0 && (packet[0] & 0xfc) == 0) {