OSDN Git Service

hw/i2c: flatten pca954x mux device
authorPatrick Venture <venture@google.com>
Wed, 2 Feb 2022 16:45:33 +0000 (08:45 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 2 Mar 2022 19:27:36 +0000 (19:27 +0000)
commitd8bdf9797248eb48ac3c8bc970f60e19984546bd
tree9109dae4469d88031b66268d1c6e5f5f231e0399
parentbad187dfcb0834dd67d1bfa40a305a08f0d5641a
hw/i2c: flatten pca954x mux device

Previously this device created N subdevices which each owned an i2c bus.
Now this device simply owns the N i2c busses directly.

Tested: Verified devices behind mux are still accessible via qmp and i2c
from within an arm32 SoC.

Reviewed-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Patrick Venture <venture@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220202164533.1283668-1-venture@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/i2c_mux_pca954x.c