lkml.org 
[lkml]   [2018]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 2/2] leds: lm3601x: Introduce the lm3601x LED driver
From
Date
Pavel

On 05/14/2018 03:05 PM, Pavel Machek wrote:
> Hi!
>
>>> OK.
>>
>> OK I looked at the max776973 driver and well if the flash-max-microamp and
>> flash-max-timeout-us nodes are missing it sets a default value for each if the
>> node is not present.
>>
>> So should we remove this code from the Max77693 driver too and fail probe as being asked
>> in this driver?
>
> Well, modifying driver without access to the hardware is tricky
> :-(. If it does something stupid (like using other than minimum values
> for the flash-max-microamp/flash-max-timeout-us), it needs to be
> fixed.

Well we should be able to test the probe/parse dt node and reject the probe if the node is not
present. That can be done without HW the setup is done pretty early in the probe without even attempting to communicate
with the hardware.

Dan

>
> And maybe comment "don't copy this, its wrong" would be in order...
> > Best regards,
> Pavel
>


--
------------------
Dan Murphy

\
 
 \ /
  Last update: 2018-05-14 22:14    [W:0.429 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site