Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1532588

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

From Florian Vaussard <florian.vaussard@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 0/2] Input: drv266x: Fix misuse of regmap_update_bits
Date 2016-11-29 18:30 +0100
Message-ID <sIUoa-311-39@gated-at.bofh.it> (permalink)
References <sITV8-2B3-15@gated-at.bofh.it> <sIUeu-2Xs-41@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] Input: drv266x: Fix misuse of regmap_update_bits Florian Vaussard <florian.vaussard@gmail.com> - 2016-11-29 18:00 +0100
  [PATCH 2/2] Input: drv2667: Fix misuse of regmap_update_bits Florian Vaussard <florian.vaussard@gmail.com> - 2016-11-29 18:10 +0100
    Re: [PATCH 2/2] Input: drv2667: Fix misuse of regmap_update_bits Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-11-30 02:40 +0100
  Re: [PATCH 0/2] Input: drv266x: Fix misuse of regmap_update_bits Dan Murphy <dmurphy@ti.com> - 2016-11-29 18:20 +0100
    Re: [PATCH 0/2] Input: drv266x: Fix misuse of regmap_update_bits Florian Vaussard <florian.vaussard@gmail.com> - 2016-11-29 18:30 +0100

csiph-web