Re: [PATCH 0/2] Input: drv266x: Fix misuse of regmap_update_bits

From: Florian Vaussard
Date: Tue Nov 29 2016 - 12:24:45 EST


Hello Dan,

Le 29. 11. 16 à 18:10, Dan Murphy a écrit :
> Florian
>
> On 11/29/2016 10:59 AM, Florian Vaussard wrote:
>> Hello,
>>
>> This series fixes similar misues of the regmap_update_bits() API found
>> inside the drv2665.c and drv2667.c drivers. More details can be found
>> in the message of each patch.
>>
>> Theses changes are not tested as I do not have the required hardware,
>> but the calls to regmap_update_bits() are clearly wrong in the current
>> code and the fix seems obvious. Any tests are warmly welcome.
>>
>> Best regards,
>> Florian
>>
>> Florian Vaussard (2):
>> Input: drv2665: Fix misuse of regmap_update_bits
>> Input: drv2667: Fix misuse of regmap_update_bits
>
> Thanks for the patches what about the drv260x.c?
>

>From what I can see, drv260x.c does not have such a bug. The calls to
regmap_update_bits(.., mask, value) in drv260x.c where value > 0 are using
DRV260X_LIB_SEL_MASK and DRV260X_STANDBY_MASK as masks. In both cases, the range
of 'value' is such that (mask & value) is not null (if 'value' is not null of
course). Thus no obvious problems here.

Best regards,
Florian