public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* Tegra I2C slave address patches
@ 2011-05-12 18:15 Stephen Warren
       [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04986AA399-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Warren @ 2011-05-12 18:15 UTC (permalink / raw)
  To: Wei Ni,
	marc.dietrich-wkdnK3oF/XPYtB+G+YtuwQgYPMzSbZxj@public.gmane.org
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Wei,

I'm trying to consolidate the two Tegra I2C slave mode patches we posted
to the mailing lists:

Yours: http://www.spinics.net/lists/linux-i2c/msg05437.html
Mine: http://www.spinics.net/lists/linux-i2c/msg05464.html

I had some questions:

1) Why does your patch enable I2C_SL_CNFG_NACK. According to the Tegra
documentation, this prevents the slave I2C controller from ACKing any
transfers. Doesn't this prevent the slave functionality from working at
all?

2) Your patch sets up the slave_addr registers based on platform data.
However, I don't see any code in i2c-tegra.c to actually act as a slave
device. Hence, it seems pointless to configure the slave address.

Are those two things bug workarounds or something?

I know that Marc said he'd like to see the slave address configuration
code merged, since the AC100 uses it. However, I'm having a hard time
seeing how it'll make any difference to the driver right now; it seems
if/when slave mode is actually implemented, the slave_addr setup should
be part of that patch.

Thanks for any feedback.

-- 
nvpublic

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

end of thread, other threads:[~2011-05-13  7:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 18:15 Tegra I2C slave address patches Stephen Warren
     [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04986AA399-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-05-12 19:09   ` Marc Dietrich
     [not found]     ` <201105122109.21735.marvin24-Mmb7MZpHnFY@public.gmane.org>
2011-05-12 19:17       ` Stephen Warren
     [not found]         ` <74CDBE0F657A3D45AFBB94109FB122FF04986AA3D3-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-05-13  4:28           ` Wei Ni
     [not found]             ` <6B4D417B830BC44B8026029FD256F7F1C2CB3DD50D-Q4EWCATADntDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-05-13  5:39               ` Marc Dietrich
     [not found]                 ` <20110513073915.5eb1fe18-XzodD4Jd363P0Z7Jsv878P8+0UxHXcjY@public.gmane.org>
2011-05-13  7:30                   ` Wei Ni

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