Repository navigation
i2c: designware: Add support for bus clear feature - #6071
Merged
Merged
Conversation
Contributor
Author
|
I can provoke the lockup using a VEML7700 by running: Reading pairs of bytes, as expected by the device, does not exhibit the problem: |
Newer versions of the DesignWare I2C block support the detection of stuck signals, and a mechanism to recover from them. Add the required software support to the driver. This change was prompted by the observation that reading a single byte from register 0 of a VEML7700 seems to cause it to issue an ACK too early, and the controller to complain about losing arbitration. There is a suspicion that this may be a more widespread problem, but at least this patch prevents the bus from locking up. See: raspberrypi#6057 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Contributor
Author
|
It's also worth noting that the same sequence also causes an error on Pi 4 (and presumably the other members of the BCM2835 family). For anyone interested, the early ACK makes the read portion of the second access appear as another write, i.e: |
Contributor
Author
|
The autobuilds have completed - running |
|
I tested this on a number of different slave devices and did not observe any regressions. |
Contributor
Author
|
Thanks - that's good to hear. |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Mar 27, 2024
See: raspberrypi/linux#6076 kernel: i2c: designware: Add support for bus clear feature See: raspberrypi/linux#6071 kernel: RTC PCF2131 support See: raspberrypi/linux#6070 kernel: allo-boss-dac mute output when changing parameters See: raspberrypi/linux#6074 kernel: dts: bcm2712: Add blpubkey nvram node See: raspberrypi/linux#6073 kernel: drivers: sdhci-brcmstb: work around mystery CQE CMD_IDLE_TIMER trampling See: raspberrypi/linux#6060 kernel: drm/vc4: Enable bg_fill if there are no planes enabled See: raspberrypi/linux#6066 kernel: ARM: dts: bcm2712: Add the missing L1/L2/L3 cache information See: raspberrypi/linux#6061
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Mar 27, 2024
See: raspberrypi/linux#6076 kernel: i2c: designware: Add support for bus clear feature See: raspberrypi/linux#6071 kernel: RTC PCF2131 support See: raspberrypi/linux#6070 kernel: allo-boss-dac mute output when changing parameters See: raspberrypi/linux#6074 kernel: dts: bcm2712: Add blpubkey nvram node See: raspberrypi/linux#6073 kernel: drivers: sdhci-brcmstb: work around mystery CQE CMD_IDLE_TIMER trampling See: raspberrypi/linux#6060 kernel: drm/vc4: Enable bg_fill if there are no planes enabled See: raspberrypi/linux#6066 kernel: ARM: dts: bcm2712: Add the missing L1/L2/L3 cache information See: raspberrypi/linux#6061
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Newer versions of the DesignWare I2C block support the detection of stuck signals, and a mechanism to recover from them. Add the required software support to the driver.
This change was prompted by the observation that reading a single byte from register 0 of a VEML7700 seems to cause it to issue an ACK too early, and the controller to complain about losing arbitration. There is a suspicion that this may be a more widespread problem, but at least this patch prevents the bus from locking up.
See: #6057