hw/i2c: support multiple masters
commit37fa5ca42623ef08ac99c8d927b6a3af0c76dc7b
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 30 Jun 2022 07:21:14 +0000 (30 09:21 +0200)
committerCédric Le Goater <clg@kaod.org>
Thu, 30 Jun 2022 07:21:14 +0000 (30 09:21 +0200)
tree153279675f9be4b055c20cb54d0b3416b893fa5f
parent0c0f1bee6a24cf36a019aefa26d849480a31c746
hw/i2c: support multiple masters

Allow slaves to master the bus by registering a bottom halve. If the bus
is busy, the bottom half is queued up. When a slave has succesfully
mastered the bus, the bottom half is scheduled.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
[ clg : - fixed typos in commit log ]
Message-Id: <20220601210831.67259-4-its@irrelevant.dk>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220630045133.32251-5-me@pjd.dev>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/i2c/core.c
include/hw/i2c/i2c.h