qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] tosa: basic lcd support


From: andrzej zaborowski
Subject: Re: [Qemu-devel] [PATCH] tosa: basic lcd support
Date: Tue, 4 Nov 2008 10:14:33 +0100

2008/11/2 Dmitry Baryshkov <address@hidden>:
> On Sun, Nov 02, 2008 at 05:09:04PM +0100, andrzej zaborowski wrote:
>> 2008/11/2 Dmitry Baryshkov <address@hidden>:
>> > +static void tosa_tg_init(struct pxa2xx_state_s *cpu)
>> > +{
>> > +    struct i2c_bus *bus = pxa2xx_i2c_bus(cpu->i2c[0]);
>> > +    struct i2c_slave *dac = i2c_slave_init(bus, 0, sizeof(struct 
>> > tosa_dac_i2c));
>> > +    dac->send = tosa_dac_send;
>> > +    dac->event = tosa_dac_event;
>>
>> You should set also .recv to not leave the kernel a possibility to
>> crash qemu.  Other than this, looks okay, but does this code help
>> emulation in anyway?  I suppose the kernel wants to see some i2c
>> device present?
>
> The kernel expects to have the DAC in place. Otherwise I see barfs from
> it. So adding such simple i2c client is just a matter of preference.
> Anyway, please check this patch with .recv callback set:

Right, it expects a DAC.  What I mean is that this implementation can
equally well be a i2c framebuffer or a flux capacitor ;)  But I assume
you've tested that this already made the kernel happy.

Regards




reply via email to

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