[Qemu-devel] [PATCH] hw/watchdog/wdt_i6300esb : remove a unnecessary comment

Peng Hao posted 1 patch 7 years, 2 months ago
Test checkpatch passed
Test docker-quick@centos7 passed
Test docker-clang@ubuntu passed
Test docker-mingw@fedora passed
Test asan passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1544253511-82742-1-git-send-email-peng.hao2@zte.com.cn
hw/watchdog/wdt_i6300esb.c | 1 -
1 file changed, 1 deletion(-)
[Qemu-devel] [PATCH] hw/watchdog/wdt_i6300esb : remove a unnecessary comment
Posted by Peng Hao 7 years, 2 months ago
The registered memory region of i6300esb is not suitable for coalesced
mmio, because a write for the region may trigger an immediate action
and can't be delayed.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
 hw/watchdog/wdt_i6300esb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c
index 7b59469..1c6eddf 100644
--- a/hw/watchdog/wdt_i6300esb.c
+++ b/hw/watchdog/wdt_i6300esb.c
@@ -449,7 +449,6 @@ static void i6300esb_realize(PCIDevice *dev, Error **errp)
     memory_region_init_io(&d->io_mem, OBJECT(d), &i6300esb_ops, d,
                           "i6300esb", 0x10);
     pci_register_bar(&d->dev, 0, 0, &d->io_mem);
-    /* qemu_register_coalesced_mmio (addr, 0x10); ? */
 }
 
 static void i6300esb_exit(PCIDevice *dev)
-- 
1.8.3.1


Re: [Qemu-devel] [PATCH] hw/watchdog/wdt_i6300esb : remove a unnecessary comment
Posted by Paolo Bonzini 7 years, 2 months ago
On 08/12/18 08:18, Peng Hao wrote:
> The registered memory region of i6300esb is not suitable for coalesced
> mmio, because a write for the region may trigger an immediate action
> and can't be delayed.
> 
> Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
> ---
>  hw/watchdog/wdt_i6300esb.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c
> index 7b59469..1c6eddf 100644
> --- a/hw/watchdog/wdt_i6300esb.c
> +++ b/hw/watchdog/wdt_i6300esb.c
> @@ -449,7 +449,6 @@ static void i6300esb_realize(PCIDevice *dev, Error **errp)
>      memory_region_init_io(&d->io_mem, OBJECT(d), &i6300esb_ops, d,
>                            "i6300esb", 0x10);
>      pci_register_bar(&d->dev, 0, 0, &d->io_mem);
> -    /* qemu_register_coalesced_mmio (addr, 0x10); ? */
>  }
>  
>  static void i6300esb_exit(PCIDevice *dev)
> 

Queued, thanks.

Paolo