Re: [PATCH] [media_build] update v4.7_dma_attrs.patch

2017-09-01 Thread Hans Verkuil
On 01/09/17 09:41, Jasmin J. wrote:
> Hi!
> 
> To get media-build working again this is needs to be merged also.

I just applied this. I had to wait until the ktime accessor function
fixes were merged in the master tree and that got delayed a bit.

Thanks,

Hans

> 
> BR,
>Jasmin
> 
> 
> On 08/28/2017 06:08 PM, Daniel Scheller wrote:
>> From: Daniel Scheller 
>>
>> Fixes apply_patches wrt
>>
>>   commit 5b6f9abe5a49 ("media: vb2: add bidirectional flag in vb2_queue")
>>
>> Signed-off-by: Daniel Scheller 
>> Tested-by: Jasmin Jessich 
>> ---
>> Tested and verified by Jasmin on 3.13, 3.4 and 2.6.36, and by me on 4.4.
>>
>>  backports/v4.7_dma_attrs.patch | 8 
>>  1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/backports/v4.7_dma_attrs.patch b/backports/v4.7_dma_attrs.patch
>> index 28d8dbc..40a7e5b 100644
>> --- a/backports/v4.7_dma_attrs.patch
>> +++ b/backports/v4.7_dma_attrs.patch
>> @@ -294,18 +294,18 @@ index 9a144f2..c5e3113 100644
>>* doesn't fill in the @alloc_devs array.
>>  - * @dma_attrs: DMA attributes to use for the DMA.
>>  + * @dma_attrs: DMA attributes to use for the DMA. May be NULL.
>> -  * @fileio_read_once:  report EOF after reading the first 
>> buffer
>> -  * @fileio_write_immediately:  queue buffer after each write() call
>> -  * @allow_zero_bytesused:  allow bytesused == 0 to be passed to the driver
>> +  * @bidirectional: when this flag is set the DMA direction for the buffers 
>> of
>> +  * this queue will be overridden with DMA_BIDIRECTIONAL direction.
>> +  * This is useful in cases where the hardware (firmware) writes to
>>  @@ -494,7 +494,7 @@ struct vb2_queue {
>>  unsigned inttype;
>>  unsigned intio_modes;
>>  struct device   *dev;
>>  -   unsigned long   dma_attrs;
>>  +   const struct dma_attrs  *dma_attrs;
>> +unsignedbidirectional:1;
>>  unsignedfileio_read_once:1;
>>  unsignedfileio_write_immediately:1;
>> -unsignedallow_zero_bytesused:1;
>>  diff --git a/include/media/videobuf2-dma-contig.h 
>> b/include/media/videobuf2-dma-contig.h
>>  index 5604818..df2aabe 100644
>>  --- a/include/media/videobuf2-dma-contig.h
>>



Re: [PATCH] [media_build] update v4.7_dma_attrs.patch

2017-09-01 Thread Jasmin J.
Hi!

To get media-build working again this is needs to be merged also.

BR,
   Jasmin


On 08/28/2017 06:08 PM, Daniel Scheller wrote:
> From: Daniel Scheller 
> 
> Fixes apply_patches wrt
> 
>   commit 5b6f9abe5a49 ("media: vb2: add bidirectional flag in vb2_queue")
> 
> Signed-off-by: Daniel Scheller 
> Tested-by: Jasmin Jessich 
> ---
> Tested and verified by Jasmin on 3.13, 3.4 and 2.6.36, and by me on 4.4.
> 
>  backports/v4.7_dma_attrs.patch | 8 
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/backports/v4.7_dma_attrs.patch b/backports/v4.7_dma_attrs.patch
> index 28d8dbc..40a7e5b 100644
> --- a/backports/v4.7_dma_attrs.patch
> +++ b/backports/v4.7_dma_attrs.patch
> @@ -294,18 +294,18 @@ index 9a144f2..c5e3113 100644
>*  doesn't fill in the @alloc_devs array.
>  - * @dma_attrs:  DMA attributes to use for the DMA.
>  + * @dma_attrs:  DMA attributes to use for the DMA. May be NULL.
> -  * @fileio_read_once:   report EOF after reading the first 
> buffer
> -  * @fileio_write_immediately:   queue buffer after each write() call
> -  * @allow_zero_bytesused:   allow bytesused == 0 to be passed to the driver
> +  * @bidirectional: when this flag is set the DMA direction for the buffers 
> of
> +  *  this queue will be overridden with DMA_BIDIRECTIONAL direction.
> +  *  This is useful in cases where the hardware (firmware) writes to
>  @@ -494,7 +494,7 @@ struct vb2_queue {
>   unsigned inttype;
>   unsigned intio_modes;
>   struct device   *dev;
>  -unsigned long   dma_attrs;
>  +const struct dma_attrs  *dma_attrs;
> + unsignedbidirectional:1;
>   unsignedfileio_read_once:1;
>   unsignedfileio_write_immediately:1;
> - unsignedallow_zero_bytesused:1;
>  diff --git a/include/media/videobuf2-dma-contig.h 
> b/include/media/videobuf2-dma-contig.h
>  index 5604818..df2aabe 100644
>  --- a/include/media/videobuf2-dma-contig.h
>