Re: I2C slave mode for i2c-at91 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 18, 2017 at 09:43:07AM +0200, Wolfram Sang wrote:
> 
> > <halfknowledge> Isn't the at91 i2c hardware broken or unreliable such
> > that it's usually recommended to stick to i2c-gpio? If so maybe the same
> 
> I thought later versions have been fixed? (half knowledge, too)
> 
> > applies to client mode and someone should better extend i2c-gpio to
> > handle the slave API?
> 
> I wouldn't like that much. It means polling the GPIOs to scan the I2C
> bus for the communication of the master.

GPIOs changing its level can trigger an irq, so the hardware does the
job of polling for you.  This doesn't necessarily makes this a good
idea, but it's not as bad as it could be.

> That is timing-critical and does not like latency. Might even depend
> on the RT patchset ;)

If the bus is operated slow enough it could work.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux