Re: [linux-sunxi] [PATCH v2] sunxi: Add support for consumer infrared devices

2014-04-29 Thread Александр Берсенев
The problem with timeouts is with the function ir_raw_event_store_with_filter which automerges samples of same type. When the packet ends, there is 21504us space(no pulse) in it and this function waits for more data to merge. New data arives only when next button pressed on ir remote. Function

Re: [linux-sunxi] [PATCH v2] sunxi: Add support for consumer infrared devices

2014-04-29 Thread Александр Берсенев
Thank you for comments, fixes will be in the next version of the patch. About: #ifdef CONFIG_ARCH_SUN5I #define IR_FIFO_SIZE(64)/* 64Bytes */ #else #define IR_FIFO_SIZE(16)/* 16Bytes */ #endif In sun5i datasheet at http://dl.linux-sunxi.org/A13/A13%20User%20Manual%20-%20v1.

Re: [linux-sunxi] [PATCH v2] sunxi: Add support for consumer infrared devices

2014-04-28 Thread Priit Laes
Ühel kenal päeval, E, 28.04.2014 kell 12:57, kirjutas Александр Берсенев: > This patch introduces Consumer IR(CIR) support for sunxi boards. > > > This is based on Alexsey Shestacov's work based on the original > driver > supplied by Allwinner. You need to also CC people/lists in charge of cer

[linux-sunxi] [PATCH v2] sunxi: Add support for consumer infrared devices

2014-04-28 Thread Александр Берсенев
This patch introduces Consumer IR(CIR) support for sunxi boards. This is based on Alexsey Shestacov's work based on the original driver supplied by Allwinner. --- Changes since version 1: - Fix timer memory leaks - Fix race condition when driver unloads while interrupt handler is active