Re: rcar-i2c: always reads a byte

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

 



Michael Lawnick wrote:
> Hi,
>
> Ben Dooks schrieb:
>> I have noticed the following behaviour with the i2c-rcar driver
>> with the following single i2c_msg structure:
>>
>>     msg[0].addr = 0x12;
>>     msg[0].flags = I2C_M_RD;
>>     msg[0].len = 0;
>>     msg[0].buf = data;
>
> isn't this illegal?
> This should lead to 50% chance of blocked bus: After sending read-bit
> the slave ACK's and puts first data bit onto SDL. If it is '0',

NO device should change the data line during SCL rising or SCL HIGH
this would cause STOP/START confusion.

The data line should be driven at detection of SCL falling (or just
after normally.

> master
> won't be able to signal stop nor arbitrate the bus for other transaction
> until slave runs into internal timeout (*if* supported).

Master can signal STOP during SCL HIGH as normal.

> Only 9 SCL toggles will be able to free bus again.

If there is not a short or other fault on SCL being held low, drive as
much as you like wont make any difference.

> But maybe I'm missing something.

See above

> KR
> Michael

--
Paul Carpenter          | paul@xxxxxxxxxxxxxxxxxxxxxxxxxxx
<http://www.pcserviceselectronics.co.uk/>    PC Services
<http://www.pcserviceselectronics.co.uk/pi/>  Raspberry Pi Add-ons
<http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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