[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH v2] Fix obvious mistake in pxa2xx i2s driver
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] Re: [PATCH v2] Fix obvious mistake in pxa2xx i2s driver |
Date: |
Sun, 20 Feb 2011 20:29:03 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Sun, Feb 20, 2011 at 09:23:59PM +0200, Vasily Khoruzhick wrote:
> RST bit is (1 << 4) bit, not (1 << 3), fix condition
> that enables i2s if ENB is set and RST is not set.
>
> Signed-off-by: Vasily Khoruzhick <address@hidden>
> ---
> v2: simplify expression
>
> hw/pxa2xx.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied.
> diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c
> index d966846..6e41fc6 100644
> --- a/hw/pxa2xx.c
> +++ b/hw/pxa2xx.c
> @@ -1631,7 +1631,7 @@ static void pxa2xx_i2s_write(void *opaque,
> target_phys_addr_t addr,
> }
> if (value & (1 << 4)) /* EFWR */
> printf("%s: Attempt to use special function\n", __FUNCTION__);
> - s->enable = ((value ^ 4) & 5) == 5; /* ENB && !RST*/
> + s->enable = (value & 9) == 1; /* ENB && !RST*/
> pxa2xx_i2s_update(s);
> break;
> case SACR1:
> --
> 1.7.4
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net