qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [Qemu-devel] [PATCH 3/3] arm/vexpress: Add proper display


From: Corey Minyard
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH 3/3] arm/vexpress: Add proper display connector emulation
Date: Mon, 19 Feb 2018 09:16:11 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 02/19/2018 08:10 AM, Linus Walleij wrote:
On Sat, Feb 17, 2018 at 7:28 PM, Philippe Mathieu-Daudé <address@hidden> wrote:
On 02/17/2018 11:00 AM, Linus Walleij wrote:
The assignment of the SiI9022 at address 0x39 and the EDID
DDC I2C at address 0x50 is not strictly correct: the DDC I2C
is there all the time but in the actual component it only
appears once activated inside the SiI9022, so ideally it should
be added and removed to the bus by the SiI9022. However for this
purpose it works fine to just have it around.
This seems easier to just do it now rather than postpone :)

In your patch #2:

static void sii9022_realize(DeviceState *dev, Error **errp)
{
     I2CBus *bus;

     bus = I2C_BUS(qdev_get_parent_bus(dev));
     i2c_create_slave(bus, TYPE_I2CDDC, 0x50);
}
I tried an approach like this but the I2C_BUS() macro was not
publicly visible in any header file and trying to pry it out just
brought along a lot of refactoring in the i2c core.c file that
scared me away...

Has someone else fixed it already?

I have a patch that does this.  Well, it's a small cleanup patch and another
patch, but it's really no that bad.  I'll send it.

-corey


Yours,
Linus Walleij





reply via email to

[Prev in Thread] Current Thread [Next in Thread]