qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
@ 2015-09-11 10:30 Sai Pavan Boddu
  2015-09-13 20:36 ` Peter Crosthwaite
  0 siblings, 1 reply; 6+ messages in thread
From: Sai Pavan Boddu @ 2015-09-11 10:30 UTC (permalink / raw)
  To: qemu-devel, stefanha, crosthwaitepeter, peter.maydell
  Cc: alistai, edgari, Peter Crosthwaite

From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

This should be a shifted MASKED_WRITE like all other instances of
non-word aligned registers.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---
 hw/sd/sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
index 8fd75f7..fd354e3 100644
--- a/hw/sd/sdhci.c
+++ b/hw/sd/sdhci.c
@@ -1059,7 +1059,7 @@ sdhci_write(void *opaque, hwaddr offset, uint64_t val, unsigned size)
             value |= SDHC_CTRL2_SAMPLING_CLKSEL;
         }
         s->acmd12errsts = value;
-        s->hostctl2 = value >> 16;
+        MASKED_WRITE(s->hostctl2, mask >> 16, value >> 16);
         break;
     case SDHC_CLKCON:
         if (!(mask & 0xFF000000)) {
-- 
2.1.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
  2015-09-11 10:30 [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic Sai Pavan Boddu
@ 2015-09-13 20:36 ` Peter Crosthwaite
  2015-09-15 22:59   ` Alistair Francis
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Crosthwaite @ 2015-09-13 20:36 UTC (permalink / raw)
  To: Sai Pavan Boddu
  Cc: Peter Maydell, Stefan Hajnoczi, qemu-devel@nongnu.org Developers,
	Edgar Iglesias, Alistair Francis

On Fri, Sep 11, 2015 at 3:30 AM, Sai Pavan Boddu
<sai.pavan.boddu@xilinx.com> wrote:
> From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>
> This should be a shifted MASKED_WRITE like all other instances of
> non-word aligned registers.
>
> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>


As the sender, this requires your signed-off-by line (in addition to
any originals). git commit --amend -s should do it.

Your own RB might help as well (I can't do review as author).

Regards,
Peter

> ---
>  hw/sd/sdhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
> index 8fd75f7..fd354e3 100644
> --- a/hw/sd/sdhci.c
> +++ b/hw/sd/sdhci.c
> @@ -1059,7 +1059,7 @@ sdhci_write(void *opaque, hwaddr offset, uint64_t val, unsigned size)
>              value |= SDHC_CTRL2_SAMPLING_CLKSEL;
>          }
>          s->acmd12errsts = value;
> -        s->hostctl2 = value >> 16;
> +        MASKED_WRITE(s->hostctl2, mask >> 16, value >> 16);
>          break;
>      case SDHC_CLKCON:
>          if (!(mask & 0xFF000000)) {
> --
> 2.1.1
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
  2015-09-13 20:36 ` Peter Crosthwaite
@ 2015-09-15 22:59   ` Alistair Francis
  2015-10-08 15:51     ` Peter Crosthwaite
  0 siblings, 1 reply; 6+ messages in thread
From: Alistair Francis @ 2015-09-15 22:59 UTC (permalink / raw)
  To: Peter Crosthwaite
  Cc: Peter Maydell, Sai Pavan Boddu, Stefan Hajnoczi,
	qemu-devel@nongnu.org Developers, Edgar Iglesias,
	Alistair Francis

On Sun, Sep 13, 2015 at 1:36 PM, Peter Crosthwaite
<crosthwaitepeter@gmail.com> wrote:
> On Fri, Sep 11, 2015 at 3:30 AM, Sai Pavan Boddu
> <sai.pavan.boddu@xilinx.com> wrote:
>> From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>>
>> This should be a shifted MASKED_WRITE like all other instances of
>> non-word aligned registers.
>>
>> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

Looks good to me

Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>

Thanks,

Alistair

>
>
> As the sender, this requires your signed-off-by line (in addition to
> any originals). git commit --amend -s should do it.
>
> Your own RB might help as well (I can't do review as author).
>
> Regards,
> Peter
>
>> ---
>>  hw/sd/sdhci.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
>> index 8fd75f7..fd354e3 100644
>> --- a/hw/sd/sdhci.c
>> +++ b/hw/sd/sdhci.c
>> @@ -1059,7 +1059,7 @@ sdhci_write(void *opaque, hwaddr offset, uint64_t val, unsigned size)
>>              value |= SDHC_CTRL2_SAMPLING_CLKSEL;
>>          }
>>          s->acmd12errsts = value;
>> -        s->hostctl2 = value >> 16;
>> +        MASKED_WRITE(s->hostctl2, mask >> 16, value >> 16);
>>          break;
>>      case SDHC_CLKCON:
>>          if (!(mask & 0xFF000000)) {
>> --
>> 2.1.1
>>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
  2015-09-15 22:59   ` Alistair Francis
@ 2015-10-08 15:51     ` Peter Crosthwaite
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Crosthwaite @ 2015-10-08 15:51 UTC (permalink / raw)
  To: Alistair Francis
  Cc: Peter Maydell, Sai Pavan Boddu, Stefan Hajnoczi,
	qemu-devel@nongnu.org Developers, Edgar Iglesias,
	Alistair Francis

On Tue, Sep 15, 2015 at 3:59 PM, Alistair Francis <alistair23@gmail.com> wrote:
> On Sun, Sep 13, 2015 at 1:36 PM, Peter Crosthwaite
> <crosthwaitepeter@gmail.com> wrote:
>> On Fri, Sep 11, 2015 at 3:30 AM, Sai Pavan Boddu
>> <sai.pavan.boddu@xilinx.com> wrote:
>>> From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>>>
>>> This should be a shifted MASKED_WRITE like all other instances of
>>> non-word aligned registers.
>>>
>>> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>
> Looks good to me
>
> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
>
> Thanks,
>
> Alistair
>
>>
>>
>> As the sender, this requires your signed-off-by line (in addition to
>> any originals). git commit --amend -s should do it.
>>

Ping!

I think this is blocked by Pavan's missing SoB. Otherwise it should be ok.

Regards,
Peter

>> Your own RB might help as well (I can't do review as author).
>>
>> Regards,
>> Peter
>>
>>> ---
>>>  hw/sd/sdhci.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
>>> index 8fd75f7..fd354e3 100644
>>> --- a/hw/sd/sdhci.c
>>> +++ b/hw/sd/sdhci.c
>>> @@ -1059,7 +1059,7 @@ sdhci_write(void *opaque, hwaddr offset, uint64_t val, unsigned size)
>>>              value |= SDHC_CTRL2_SAMPLING_CLKSEL;
>>>          }
>>>          s->acmd12errsts = value;
>>> -        s->hostctl2 = value >> 16;
>>> +        MASKED_WRITE(s->hostctl2, mask >> 16, value >> 16);
>>>          break;
>>>      case SDHC_CLKCON:
>>>          if (!(mask & 0xFF000000)) {
>>> --
>>> 2.1.1
>>>
>>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
@ 2015-10-10  3:40 Sai Pavan Boddu
  0 siblings, 0 replies; 6+ messages in thread
From: Sai Pavan Boddu @ 2015-10-10  3:40 UTC (permalink / raw)
  To: Peter Crosthwaite, Alistair Francis
  Cc: Peter Maydell, Edgar Iglesias, Alistair Francis,
	qemu-devel@nongnu.org Developers, Stefan Hajnoczi

Hi Peter,

> -----Original Message-----
> From: Peter Crosthwaite [mailto:crosthwaitepeter@gmail.com]
> Sent: Thursday, October 08, 2015 9:22 PM
> To: Alistair Francis
> Cc: Sai Pavan Boddu; Peter Maydell; Stefan Hajnoczi; qemu-
> devel@nongnu.org Developers; Edgar Iglesias; Alistair Francis
> Subject: Re: [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
> 
> On Tue, Sep 15, 2015 at 3:59 PM, Alistair Francis <alistair23@gmail.com>
> wrote:
> > On Sun, Sep 13, 2015 at 1:36 PM, Peter Crosthwaite
> > <crosthwaitepeter@gmail.com> wrote:
> >> On Fri, Sep 11, 2015 at 3:30 AM, Sai Pavan Boddu
> >> <sai.pavan.boddu@xilinx.com> wrote:
> >>> From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> >>>
> >>> This should be a shifted MASKED_WRITE like all other instances of
> >>> non-word aligned registers.
> >>>
> >>> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> >
> > Looks good to me
> >
> > Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
> >
> > Thanks,
> >
> > Alistair
> >
> >>
> >>
> >> As the sender, this requires your signed-off-by line (in addition to
> >> any originals). git commit --amend -s should do it.
> >>
> 
> Ping!
> 
> I think this is blocked by Pavan's missing SoB. Otherwise it should be ok.
I will resend the again, Present im seeing some merge conflicts. Let me resolve those and send them soon.

Thanks,
Sai Pavan
> 
> Regards,
> Peter
> 
> >> Your own RB might help as well (I can't do review as author).
> >>
> >> Regards,
> >> Peter
> >>
> >>> ---
> >>>  hw/sd/sdhci.c | 2 +-
> >>>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
> >>> index 8fd75f7..fd354e3 100644
> >>> --- a/hw/sd/sdhci.c
> >>> +++ b/hw/sd/sdhci.c
> >>> @@ -1059,7 +1059,7 @@ sdhci_write(void *opaque, hwaddr offset,
> uint64_t val, unsigned size)
> >>>              value |= SDHC_CTRL2_SAMPLING_CLKSEL;
> >>>          }
> >>>          s->acmd12errsts = value;
> >>> -        s->hostctl2 = value >> 16;
> >>> +        MASKED_WRITE(s->hostctl2, mask >> 16, value >> 16);
> >>>          break;
> >>>      case SDHC_CLKCON:
> >>>          if (!(mask & 0xFF000000)) {
> >>> --
> >>> 2.1.1
> >>>
> >>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
@ 2015-10-31 15:06 Sai Pavan Boddu
  0 siblings, 0 replies; 6+ messages in thread
From: Sai Pavan Boddu @ 2015-10-31 15:06 UTC (permalink / raw)
  To: Peter Crosthwaite, Alistair Francis
  Cc: Peter Maydell, Edgar Iglesias, Alistair Francis,
	qemu-devel@nongnu.org Developers, Stefan Hajnoczi

Hi Peter,

I figured out that, this patch need few more patch to be pushed in first, to clearly apply. And I am planning to send the same.

Thanks,
SaI Pavan

> -----Original Message-----
> From: Peter Crosthwaite [mailto:crosthwaitepeter@gmail.com]
> Sent: Thursday, October 08, 2015 9:22 PM
> To: Alistair Francis
> Cc: Sai Pavan Boddu; Peter Maydell; Stefan Hajnoczi; qemu-
> devel@nongnu.org Developers; Edgar Iglesias; Alistair Francis
> Subject: Re: [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic.
> 
> On Tue, Sep 15, 2015 at 3:59 PM, Alistair Francis <alistair23@gmail.com>
> wrote:
> > On Sun, Sep 13, 2015 at 1:36 PM, Peter Crosthwaite
> > <crosthwaitepeter@gmail.com> wrote:
> >> On Fri, Sep 11, 2015 at 3:30 AM, Sai Pavan Boddu
> >> <sai.pavan.boddu@xilinx.com> wrote:
> >>> From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> >>>
> >>> This should be a shifted MASKED_WRITE like all other instances of
> >>> non-word aligned registers.
> >>>
> >>> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> >
> > Looks good to me
> >
> > Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
> >
> > Thanks,
> >
> > Alistair
> >
> >>
> >>
> >> As the sender, this requires your signed-off-by line (in addition to
> >> any originals). git commit --amend -s should do it.
> >>
> 
> Ping!
> 
> I think this is blocked by Pavan's missing SoB. Otherwise it should be ok.
> 
> Regards,
> Peter
> 
> >> Your own RB might help as well (I can't do review as author).
> >>
> >> Regards,
> >> Peter
> >>
> >>> ---
> >>>  hw/sd/sdhci.c | 2 +-
> >>>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
> >>> index 8fd75f7..fd354e3 100644
> >>> --- a/hw/sd/sdhci.c
> >>> +++ b/hw/sd/sdhci.c
> >>> @@ -1059,7 +1059,7 @@ sdhci_write(void *opaque, hwaddr offset,
> uint64_t val, unsigned size)
> >>>              value |= SDHC_CTRL2_SAMPLING_CLKSEL;
> >>>          }
> >>>          s->acmd12errsts = value;
> >>> -        s->hostctl2 = value >> 16;
> >>> +        MASKED_WRITE(s->hostctl2, mask >> 16, value >> 16);
> >>>          break;
> >>>      case SDHC_CLKCON:
> >>>          if (!(mask & 0xFF000000)) {
> >>> --
> >>> 2.1.1
> >>>
> >>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-31 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11 10:30 [Qemu-devel] [PATCH V1] sdhci: Fix hostctl2 write logic Sai Pavan Boddu
2015-09-13 20:36 ` Peter Crosthwaite
2015-09-15 22:59   ` Alistair Francis
2015-10-08 15:51     ` Peter Crosthwaite
  -- strict thread matches above, loose matches on Subject: below --
2015-10-10  3:40 Sai Pavan Boddu
2015-10-31 15:06 Sai Pavan Boddu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).