PM QoS interface provides a kernel interface for registering performance
expectations by drivers on parameters like latency, timeout and
throughput. Here we prevent PM from keeping the CPU in idle power
collapse mode by voting for PM QoS to minimum IR interrupt latency when
first interrupt is received and devoting it back to default value after
a time delay of 200ms from completion of last interrupt of a IR frame.
CRs-Fixed: 407531
Change-Id: Ib6bf8f3188dfaf03c408601aa3e560fc186492ae
Signed-off-by: Ravi Kumar V <kumarrav@codeaurora.org>
Add can_wakeup functionality flag so that host can wakeup from
IR event.
Change-Id: I5cfa95fc17f390271d315a38d14dcbccd49dda78
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
It's better to give platform code a chance to specify the allowed
protocols to use.
[mchehab@redhat.com: fix merge conflict with a patch that made
half of this change]
Signed-off-by: Du, Changbin <changbin.du@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Make it possible for gpio-ir-recv users to choose a map name.
Cc: Ravi Kumar V <kumarrav@codeaurora.org>
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
There are couple places where we check unsigned values for negative. I
changed ->gpin_nr to signed because in gpio_ir_recv_probe() we do:
if (pdata->gpio_nr < 0)
return -EINVAL;
I also change gval to a signed int in gpio_ir_recv_irq() because that's
the type that gpio_get_value_cansleep() returns and we test for negative
returns.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Trilok Soni <tsoni@codeaurora.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Adds GPIO based IR Receiver driver. It decodes signals using decoders
available in rc framework.
Signed-off-by: Ravi Kumar V <kumarrav@codeaurora.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>