Re: [PATCH v5 6/8] iio: gyro: bmg160: optimize i2c transfers in trigger handler

From: Jonathan Cameron
Date: Sat Aug 22 2015 - 13:29:36 EST


On 22/08/15 05:02, Wolfram Sang wrote:
>
>>>> The series[1] I am working on implements a i2c smbus block data
>>>> regmap
>>>> bus driver. Regmap should then automatically do a block read in
>>>> regmap_bulk_read.
>>>
>>> Hmm, so doesn't your series make Irina's series obsolete? It
>>> addresses
>>> the same problem only at a different layer (i2c core vs. regmap), or?
>>> It
>>> would mean that i2c client drivers which want to support byte, word,
>>> or
>>> block transfers should be converted to regmap. I assume most of the
>>> potential candidates are register based devices anyhow. Then, regmap
>>> would be the proper abstraction layer. Have I overlooked something?
>>>
>> This is the only driver converted to use regmap, because of SPI mode
>> support. The other drivers will still use Irina's changes.
>
> The question is if they should. Or rather be converted to regmap. It is
> an open question and I am seeking for further input.
>
There are a fairly large number of legacy drivers where this might apply.
Do we have any real idea of how many? I'm assuming Irina only made use
of it in ones that were of personal interest. A quick grep suggests
10's of drivers use the block call. I'm guessing quite a few would use
it if needed for a particular board.

Do we want to insist on a much larger change (conversion to regmap)
when if this in place, a simple single functional call change will do the
job?

Jonathan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/