|
From: | Gerd Hoffmann |
Subject: | [Qemu-devel] Re: [PATCH V10 01/27] acpi: split out pc smbus routines from acpi.c into pc_smbus.c |
Date: | Mon, 04 Jan 2010 15:52:46 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4 |
+void pc_smbus_init(PCSMBus *smb) +{ + smb->smbus = i2c_init_bus(NULL, "i2c"); +}
This function should take a additional "DeviceState *parent" argument and pass it down to i2c_init_bus() instead of NULL. Patch #21 (acpi_piix4: qdevfy) should pass the piix4-pm DeviceState to pc_smbus_init(). Then the smbus and all connected devices should be correctly hooked up in the device tree and visible in 'info qtree'.
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |