Re: [PATCH] media: fsl-viu: Use the ioread/write32be() accessors

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

 



Fabio Estevam <festevam@xxxxxxxxx> writes:
> diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c
> index ff625301e777..3ce0decb1826 100644
> --- a/drivers/media/platform/fsl-viu.c
> +++ b/drivers/media/platform/fsl-viu.c
> @@ -434,9 +428,9 @@ inline int buffer_activate(struct viu_dev *dev, struct viu_buf *buf)
>  	if (!V4L2_FIELD_HAS_BOTH(buf->vb.field))
>  		reg_val.dma_inc = 0;
>  
> -	out_be32(&vr->dma_inc, reg_val.dma_inc);
> -	out_be32(&vr->picture_count, reg_val.picture_count);
> -	out_be32(&vr->field_base_addr, reg_val.field_base_addr);
> +	iowrite32be(reg_val.dma_inc, &vr->dma_inc);
> +	iowrite32be(reg_val.picture_count, &vr->picture_count);
> +	iowrite32be(reg_val.field_base_addr, &vr->picture_count);

That last conversion is wrong.

cheers



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux