[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 3/7] hw/char/pl011: Introduce pl011_xmit() as GSource
From: |
Peter Maydell |
Subject: |
Re: [PATCH v6 3/7] hw/char/pl011: Introduce pl011_xmit() as GSource |
Date: |
Mon, 17 Feb 2025 14:25:15 +0000 |
On Sat, 8 Feb 2025 at 16:39, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> Extract pl011_xmit() from pl011_write_txdata(). Use the
> FIFO to pass the character to be transmitted.
>
> Implement it using the FEWatchFunc prototype, since we want
> to register it as GSource later. While the return value is
> not yet used, we return G_SOURCE_REMOVE meaning the GSource
> is removed from the main loop (because we only send one char).
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
[PATCH v6 6/7] hw/char/pl011: Drain TX FIFO when no backend connected, Philippe Mathieu-Daudé, 2025/02/08