Re: [PATCH v7 2/2] media: platform: Add Aspeed Video Engine driver
From: Hans Verkuil
Date: Tue Dec 11 2018 - 11:45:09 EST
On 12/11/18 5:41 PM, Eddie James wrote:
<snip>
>> Running checkpatch.pl --strict over the patch gives me three 'CHECK' items
>> they you should also address:
>>
>> CHECK: struct mutex definition without comment
>> #312: FILE: drivers/media/platform/aspeed-video.c:222:
>> +ÂÂÂÂÂÂ struct mutex video_lock;
>>
>> CHECK: spinlock_t definition without comment
>> #315: FILE: drivers/media/platform/aspeed-video.c:225:
>> +ÂÂÂÂÂÂ spinlock_t lock;
>>
>> CHECK: usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt
>> #580: FILE: drivers/media/platform/aspeed-video.c:490:
>> +ÂÂÂÂÂÂ udelay(100);
>
> This one has to be udelay due to possibly being called in the interrupt handler...
Please add a comment for that.
>
>>
>> I think v8 can be the final version. It probably won't make 4.21, though.
>> If I'll get a v8 today, then there is a small chance it might still make it.
>> If not, then it'll be merged early in the 4.22 cycle.
>
> OK, no worries either way. Will send v8 in a few.
Looking forward to that.
Regards,
Hans
>
> Thanks for all the review!
> Eddie
>
>>
>> Regards,
>>
>> ÂÂÂÂHans
>>
>