summaryrefslogtreecommitdiff
path: root/scripts/rust_is_available_test.py
diff options
context:
space:
mode:
authorAlexis Bouzigues <BouziguesAlexis@JohnDeere.com>2026-05-29 09:28:14 -0500
committerWolfram Sang <wsa+renesas@sang-engineering.com>2026-05-30 15:56:07 +0200
commit1d774589f924056b8403e271fdecaf9a803a50fc (patch)
treee3c4046812d76509a5c53dcfd8b4005860440dd8 /scripts/rust_is_available_test.py
parente2aecff95bc6d59030332959a18f8c9f654961be (diff)
i2c: virtio: mark device ready before registering the adapter
virtio_i2c_probe() synchronously probes child i2c drivers on the bus, but peripherals may use the bus at probe for tasks like reading a chip id. The vhost-user-i2c backend stalls at such probes unless DRIVER_OK is already set before the virtqueue is first kicked. Set DRIVER_OK explicitly before i2c_add_adapter(), as done for the same reason in commit f5866db64f34 ("virtio_console: enable VQs early") and commit 71e4b8bf0482 ("virtio_rpmsg: set DRIVER_OK before using device"). Signed-off-by: Alexis Bouzigues <BouziguesAlexis@JohnDeere.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts/rust_is_available_test.py')
0 files changed, 0 insertions, 0 deletions