]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 4295/2: Fix error-handling in pxaficp_ir.c (version 2)
authorGuennadi Liakhovetski <gl@dsa-ac.de>
Fri, 30 Mar 2007 07:49:55 +0000 (08:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Apr 2007 21:38:01 +0000 (22:38 +0100)
commit8659bdf5dd52b35ad14a6a11ccf75f3bcbb88a19
treef2a7baa89513ad8c988b23b647d8d9bc95b78fd7
parentabe62b7cb9028f0e2086c4448380af3b5cddd647
[ARM] 4295/2: Fix error-handling in pxaficp_ir.c (version 2)

This patch addresses the following issues with the pxa2xx FIr driver:

1. increment overrun error counter and not frame error counter on ICSR1_ROR bit set in ICSR1.
2. drop frames reported with the frame error from the IC.
3. when resetting the receiver and preparing it for the next DMA in pxa_irda_fir_irq() actually clear the Rx FIFO. See description in Table 11-2 in PXA270 Developer's Manual of the RXE bit.

Correction added in version 2: clearing the IC Rx FIFO also has to be done in pxa_irda_fir_dma_tx_irq()

Signed-off-by: G. Liakhovetski <gl@dsa-ac.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/net/irda/pxaficp_ir.c