qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] hw/misc/applesmc: Simplify DeviceReset handler


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] hw/misc/applesmc: Simplify DeviceReset handler
Date: Mon, 15 Apr 2024 16:48:03 +0200
User-agent: Mozilla Thunderbird

On 10/4/24 20:08, Philippe Mathieu-Daudé wrote:
Have applesmc_find_key() return a const pointer.
Since the returned buffers are not modified in
applesmc_io_data_write(), it is pointless to
delete and re-add the keys in the DeviceReset
handler. Add them once in DeviceRealize, and
discard them in the DeviceUnrealize handler.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
As discussed in
6fbcf565-f12c-4196-b6c8-559843c7a78c@linaro.org/">https://lore.kernel.org/qemu-devel/6fbcf565-f12c-4196-b6c8-559843c7a78c@linaro.org/
---
  hw/misc/applesmc.c | 36 +++++++++++++++++++++---------------
  1 file changed, 21 insertions(+), 15 deletions(-)

Queued, thanks.



reply via email to

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