Re: [PATCH] hw/char/serial: Support serial_mm_init() with wakeup event.

2022-03-24 Thread Peter Maydell
On Thu, 24 Mar 2022 at 10:00, Dylan Jhong wrote: > > On Wed, Mar 23, 2022 at 05:37:10PM +0800, Peter Maydell wrote: > > On Wed, 23 Mar 2022 at 09:20, Dylan Jhong wrote: > > > > > > Although the "wakeup" parameter is declared in SerialState, > > > but there is no function actually setting it up. >

Re: [PATCH] hw/char/serial: Support serial_mm_init() with wakeup event.

2022-03-24 Thread Dylan Jhong
On Wed, Mar 23, 2022 at 05:37:10PM +0800, Peter Maydell wrote: > On Wed, 23 Mar 2022 at 09:20, Dylan Jhong wrote: > > > > Although the "wakeup" parameter is declared in SerialState, > > but there is no function actually setting it up. > > Support "wakeup" as parameter in serial_mm_init(). > > Thi

Re: [PATCH] hw/char/serial: Support serial_mm_init() with wakeup event.

2022-03-23 Thread Peter Maydell
On Wed, 23 Mar 2022 at 09:20, Dylan Jhong wrote: > > Although the "wakeup" parameter is declared in SerialState, > but there is no function actually setting it up. > Support "wakeup" as parameter in serial_mm_init(). This patch seems to provide a new argument which every caller passes the same va

[PATCH] hw/char/serial: Support serial_mm_init() with wakeup event.

2022-03-23 Thread Dylan Jhong
Although the "wakeup" parameter is declared in SerialState, but there is no function actually setting it up. Support "wakeup" as parameter in serial_mm_init(). We also add a new parameter "wakeup_reason" to let users specify their own wakeup event id. Signed-off-by: Dylan Jhong --- hw/arm/allwi