Page MenuHomeFreeBSD

regulator: Disable unused regulator
ClosedPublic

Authored by manu on Mar 21 2018, 9:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 2:39 AM
Unknown Object (File)
Nov 14 2023, 12:22 PM
Unknown Object (File)
Nov 10 2023, 8:38 AM
Unknown Object (File)
Nov 9 2023, 3:47 PM
Unknown Object (File)
Oct 13 2023, 11:24 AM
Unknown Object (File)
Oct 9 2023, 7:32 AM
Unknown Object (File)
Oct 8 2023, 2:44 PM
Unknown Object (File)
Jul 28 2023, 10:53 PM
Subscribers

Details

Summary

bootloaders such as u-boot might enable regulators, or simply regulators could be enabled by default by the PMIC, even if we don't have a driver for the device or subsystem.
Disable unused regulators just before going to userland.
A tunable hw.regulator.disable_unused is added to not disable them in case this causes problems on some board but the default behavior is to disable everything unused. I prefer to break thinks now and fix them rather than never switch to the case were we disable regulators.

Test Plan

Tested on : Pine64-LTS (an idle board goes from ~0.33A to ~0.27A)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

It would pay to add a comment to explain what the function is for.

Add comment explaining what the function does.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 4 2018, 6:44 AM
This revision was automatically updated to reflect the committed changes.