public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Linux 3.4-rc2 register mapping and paging on I2C device.
@ 2012-04-30 17:31 dd diasemi
  2012-04-30 21:47 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: dd diasemi @ 2012-04-30 17:31 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel, Anthony Olech

Hello Mark,

I need to implement a I2C MFD driver that requires register page
switching. It is not supported by regmap currently and requires
additional effort to make it clean. What is the best (most clean) way
of implementing a driver with register page switching?

I have come up with few alternatives:
1. Write the driver without regmap, with separate I2C routines.
2. After a call to devm_regmap_init_i2c(), exchange regmap.bus.read,
regmap.bus.write and regmap.bus.gather_write with specific handlers
(supporting register page switching). Those handlers would call
original I2C bus handlers indirectly, by passing altered registers.
3. Update regmap API to enable support for register page switching.

Let me know what you think,

many thanks,

Krystian

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-04 12:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-30 17:31 Linux 3.4-rc2 register mapping and paging on I2C device dd diasemi
2012-04-30 21:47 ` Mark Brown
2012-05-04  9:35   ` dd diasemi
2012-05-04 10:33     ` Mark Brown
2012-05-04 11:40       ` dd diasemi
2012-05-04 12:14         ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox