mbox series

[v2,0/2] hw/rtc/m48t59: Simplify m48t59_init()

Message ID 20201015194647.477252-1-f4bug@amsat.org
Headers show
Series hw/rtc/m48t59: Simplify m48t59_init() | expand

Message

Philippe Mathieu-Daudé Oct. 15, 2020, 7:46 p.m. UTC
Since v1:
- Do not remove mem_base in patch 1 (Laurent)
- Pass MemoryRegion* (new patch)
- Run check-qtest

Philippe Mathieu-Daudé (2):
  hw/rtc/m48t59: Simplify m48t59_init() removing 'io_base' argument
  hw/rtc/m48t59: Simplify m48t59_init() passing MemoryRegion argument

 include/hw/rtc/m48t59.h |  5 ++---
 hw/ppc/ppc405_boards.c  |  2 +-
 hw/rtc/m48t59.c         | 14 +++-----------
 hw/sparc/sun4m.c        |  3 ++-
 hw/sparc64/sun4u.c      |  7 ++-----
 5 files changed, 10 insertions(+), 21 deletions(-)

-- 
2.26.2

Comments

Mark Cave-Ayland Oct. 16, 2020, 9:38 a.m. UTC | #1
On 15/10/2020 20:46, Philippe Mathieu-Daudé wrote:

> Since v1:

> - Do not remove mem_base in patch 1 (Laurent)

> - Pass MemoryRegion* (new patch)

> - Run check-qtest

> 

> Philippe Mathieu-Daudé (2):

>    hw/rtc/m48t59: Simplify m48t59_init() removing 'io_base' argument

>    hw/rtc/m48t59: Simplify m48t59_init() passing MemoryRegion argument

> 

>   include/hw/rtc/m48t59.h |  5 ++---

>   hw/ppc/ppc405_boards.c  |  2 +-

>   hw/rtc/m48t59.c         | 14 +++-----------

>   hw/sparc/sun4m.c        |  3 ++-

>   hw/sparc64/sun4u.c      |  7 ++-----

>   5 files changed, 10 insertions(+), 21 deletions(-)


This looks good, and from what you've done here it's only a little more work to 
remove m48t59_init() completely. Would you mind if I try this using these patches as 
a starting point? :)


ATB,

Mark.
Philippe Mathieu-Daudé Oct. 16, 2020, 9:49 a.m. UTC | #2
Le ven. 16 oct. 2020 11:39, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
a écrit :

> On 15/10/2020 20:46, Philippe Mathieu-Daudé wrote:

>

> > Since v1:

> > - Do not remove mem_base in patch 1 (Laurent)

> > - Pass MemoryRegion* (new patch)

> > - Run check-qtest

> >

> > Philippe Mathieu-Daudé (2):

> >    hw/rtc/m48t59: Simplify m48t59_init() removing 'io_base' argument

> >    hw/rtc/m48t59: Simplify m48t59_init() passing MemoryRegion argument

> >

> >   include/hw/rtc/m48t59.h |  5 ++---

> >   hw/ppc/ppc405_boards.c  |  2 +-

> >   hw/rtc/m48t59.c         | 14 +++-----------

> >   hw/sparc/sun4m.c        |  3 ++-

> >   hw/sparc64/sun4u.c      |  7 ++-----

> >   5 files changed, 10 insertions(+), 21 deletions(-)

>

> This looks good, and from what you've done here it's only a little more

> work to

> remove m48t59_init() completely. Would you mind if I try this using these

> patches as

> a starting point? :)

>


I had a look at your previous suggestion, but I have too many in flight
series waiting for 5.2, so sure go ahead!


>

> ATB,

>

> Mark.

>

>
<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 16 oct. 2020 11:39, Mark Cave-Ayland &lt;<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15/10/2020 20:46, Philippe Mathieu-Daudé wrote:<br>
<br>
&gt; Since v1:<br>
&gt; - Do not remove mem_base in patch 1 (Laurent)<br>
&gt; - Pass MemoryRegion* (new patch)<br>
&gt; - Run check-qtest<br>
&gt; <br>
&gt; Philippe Mathieu-Daudé (2):<br>
&gt;    hw/rtc/m48t59: Simplify m48t59_init() removing &#39;io_base&#39; argument<br>
&gt;    hw/rtc/m48t59: Simplify m48t59_init() passing MemoryRegion argument<br>
&gt; <br>
&gt;   include/hw/rtc/m48t59.h |  5 ++---<br>
&gt;   hw/ppc/ppc405_boards.c  |  2 +-<br>
&gt;   hw/rtc/m48t59.c         | 14 +++-----------<br>
&gt;   hw/sparc/sun4m.c        |  3 ++-<br>
&gt;   hw/sparc64/sun4u.c      |  7 ++-----<br>
&gt;   5 files changed, 10 insertions(+), 21 deletions(-)<br>
<br>
This looks good, and from what you&#39;ve done here it&#39;s only a little more work to <br>
remove m48t59_init() completely. Would you mind if I try this using these patches as <br>
a starting point? :)<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I had a look at your previous suggestion, but I have too many in flight series waiting for 5.2, so sure go ahead! </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
ATB,<br>
<br>
Mark.<br>
<br>
</blockquote></div></div></div>