public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* 10-bit address support in i2c-omap and i2c-davinci
@ 2011-11-07  8:46 Jean Delvare
  2011-11-07 15:09 ` Kevin Hilman
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2011-11-07  8:46 UTC (permalink / raw)
  To: Ben Dooks
  Cc: Kevin Hilman, Tony Lindgren, Andy Green, Lucas De Marchi,
	Linux I2C

Both bus drivers i2c-omap and i2c-davinci apparently handle 10-bit addresses:

(i2c-omap.c)
	if (msg->flags & I2C_M_TEN)
		w |= OMAP_I2C_CON_XA;

(i2c-davinci.c)
	/* if the slave address is ten bit address, enable XA bit */
	if (msg->flags & I2C_M_TEN)
		flag |= DAVINCI_I2C_MDR_XA;

However neither driver declares functionality flag I2C_FUNC_10BIT_ADDR,
so chip drivers would normally refuse to bind to these buses. If 10-bit
address support is incomplete or broken then it should be removed
completely. If it works then these drivers should declare so by adding
I2C_FUNC_10BIT_ADDR to the functionality flags they return.

-- 
Jean Delvare

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

end of thread, other threads:[~2011-11-07 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07  8:46 10-bit address support in i2c-omap and i2c-davinci Jean Delvare
2011-11-07 15:09 ` Kevin Hilman
2011-11-07 16:59   ` Jean Delvare

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