[media] nuvoton-cir: fix wake from suspend
authorJarod Wilson <jarod@redhat.com>
Tue, 1 Mar 2011 15:38:02 +0000 (12:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 2 Mar 2011 17:12:24 +0000 (14:12 -0300)
commit3198ed161c9be9bbd15bb2e9c22561248cac6e6a
treef830f4d5733136eace1e919eb8a3cfcc1066437e
parente3bfeabbf5ba5da7f6cc5d53a83cb7765220c619
[media] nuvoton-cir: fix wake from suspend

The CIR Wake FIFO is 67 bytes long, but the stock remote appears to only
populate 65 of them. Limit comparison to 65 bytes, and wake from suspend
works a whole lot better (it wasn't working at all for most folks).

Fix based on comparison with the old lirc_wb677 driver from Nuvoton,
debugging and testing done by Dave Treacy by way of the lirc mailing
list.

Reported-by: Dave Treacy <davetreacy@gmail.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h