From: Sven Schuchmann <hidden> Date: 2021-02-03 08:35:38
The regulator for vled-supply is unused in the driver.
It is just assigned from DT and disabled in lp50xx_remove.
So the code can be removed from the driver.
Part 1 updates the documentation
Part 2 removes the code
Signed-off-by: Sven Schuchmann <redacted>
---
drivers/leds/leds-lp50xx.c | 14 --------------
1 file changed, 14 deletions(-)
From: Pavel Machek <hidden> Date: 2021-02-03 09:04:59
On Wed 2021-02-03 08:34:08, Sven Schuchmann wrote:
The regulator for vled-supply is unused in the driver.
It is just assigned from DT and disabled in lp50xx_remove.
So the code can be removed from the driver.
Dan, what is going on here? Do we need to also enable the regulator,
or is the removal correct thing to do?
Best regards,
Pavel
quoted hunk
Part 1 updates the documentation
Part 2 removes the code
Signed-off-by: Sven Schuchmann <redacted>
---
drivers/leds/leds-lp50xx.c | 14 --------------
1 file changed, 14 deletions(-)
From: Dan Murphy <hidden> Date: 2021-02-03 13:51:05
Pavel
On 2/3/21 3:02 AM, Pavel Machek wrote:
On Wed 2021-02-03 08:34:08, Sven Schuchmann wrote:
quoted
The regulator for vled-supply is unused in the driver.
It is just assigned from DT and disabled in lp50xx_remove.
So the code can be removed from the driver.
Dan, what is going on here? Do we need to also enable the regulator,
or is the removal correct thing to do?
I think it would be better to do an enable as opposed to removing the code.
This would be needed especially in applications that have to meet strict
power management requirements.
Users may want to disable or enable the regulator during suspend/resume.
Otherwise it would be considered always-on and the regulator does not
need to be populated.
Dan
From: Pavel Machek <hidden> Date: 2021-02-03 14:25:13
On Wed 2021-02-03 07:49:35, Dan Murphy wrote:
Pavel
On 2/3/21 3:02 AM, Pavel Machek wrote:
quoted
On Wed 2021-02-03 08:34:08, Sven Schuchmann wrote:
quoted
The regulator for vled-supply is unused in the driver.
It is just assigned from DT and disabled in lp50xx_remove.
So the code can be removed from the driver.
Dan, what is going on here? Do we need to also enable the regulator,
or is the removal correct thing to do?
I think it would be better to do an enable as opposed to removing the code.
This would be needed especially in applications that have to meet strict
power management requirements.
Users may want to disable or enable the regulator during suspend/resume.
Otherwise it would be considered always-on and the regulator does not need
to be populated.
From: Dan Murphy <hidden> Date: 2021-02-03 16:03:10
Pavel
On 2/3/21 8:23 AM, Pavel Machek wrote:
On Wed 2021-02-03 07:49:35, Dan Murphy wrote:
quoted
Pavel
On 2/3/21 3:02 AM, Pavel Machek wrote:
quoted
On Wed 2021-02-03 08:34:08, Sven Schuchmann wrote:
quoted
The regulator for vled-supply is unused in the driver.
It is just assigned from DT and disabled in lp50xx_remove.
So the code can be removed from the driver.
Dan, what is going on here? Do we need to also enable the regulator,
or is the removal correct thing to do?
I think it would be better to do an enable as opposed to removing the code.
This would be needed especially in applications that have to meet strict
power management requirements.
Users may want to disable or enable the regulator during suspend/resume.
Otherwise it would be considered always-on and the regulator does not need
to be populated.
Do you have set up where this is needed and you can test this? Will
you submit the fixes?
No I use an always on regulator in my setup. I have no managed supplies
exposed.
Dan
From: Sven Schuchmann <hidden> Date: 2021-02-03 16:27:39
Hello Dan, hello Pavel,
quoted
Do you have set up where this is needed and you can test this? Will
you submit the fixes?
No I use an always on regulator in my setup. I have no managed supplies
exposed.
I am also sorry I do not have a setup ready for testing this.
I think we should ignore this patch then?`
For now I am working on the enable pin in the driver.
The enablement seems it does not work. The order of I2C-Reset
and Enable is wrong and the pin is used before initialized.
But I do not have any patches ready.
Is the enable pin working on your side?
Best Regards,
Sven
From: Pavel Machek <hidden> Date: 2021-02-04 14:50:08
On Wed 2021-02-03 10:02:00, Dan Murphy wrote:
Pavel
On 2/3/21 8:23 AM, Pavel Machek wrote:
quoted
On Wed 2021-02-03 07:49:35, Dan Murphy wrote:
quoted
Pavel
On 2/3/21 3:02 AM, Pavel Machek wrote:
quoted
On Wed 2021-02-03 08:34:08, Sven Schuchmann wrote:
quoted
The regulator for vled-supply is unused in the driver.
It is just assigned from DT and disabled in lp50xx_remove.
So the code can be removed from the driver.
Dan, what is going on here? Do we need to also enable the regulator,
or is the removal correct thing to do?
I think it would be better to do an enable as opposed to removing the code.
This would be needed especially in applications that have to meet strict
power management requirements.
Users may want to disable or enable the regulator during suspend/resume.
Otherwise it would be considered always-on and the regulator does not need
to be populated.
Do you have set up where this is needed and you can test this? Will
you submit the fixes?
No I use an always on regulator in my setup. I have no managed supplies
exposed.