Re: [PATCH v3] can: c_can: Speed up rx_poll function

2013-11-03 Thread Marc Kleine-Budde
On 11/03/2013 08:20 PM, Wolfgang Grandegger wrote: > On 11/01/2013 10:36 AM, Markus Pargmann wrote: >> This patch speeds up the rx_poll function by reducing the number of >> register reads. >> >> Replace the 32bit register read by a 16bit register read. Currently >> the 32bit register read is imple

Re: [PATCH v3] can: c_can: Speed up rx_poll function

2013-11-03 Thread Wolfgang Grandegger
On 11/01/2013 10:36 AM, Markus Pargmann wrote: > This patch speeds up the rx_poll function by reducing the number of > register reads. > > Replace the 32bit register read by a 16bit register read. Currently > the 32bit register read is implemented by using 2 16bit reads. This is > inefficient as w

[PATCH v3] can: c_can: Speed up rx_poll function

2013-11-01 Thread Markus Pargmann
This patch speeds up the rx_poll function by reducing the number of register reads. Replace the 32bit register read by a 16bit register read. Currently the 32bit register read is implemented by using 2 16bit reads. This is inefficient as we only use the lower 16bit in rx_poll. The for loop reads