svn commit: r337955 - stable/11
Kyle Evans
kevans at FreeBSD.org
Fri Aug 17 04:11:11 UTC 2018
Author: kevans
Date: Fri Aug 17 04:11:10 2018
New Revision: 337955
URL: https://svnweb.freebsd.org/changeset/base/337955
Log:
MFC r335173, r335195
r335173:
extres/regulator: Properly refcount gpio regulators
regnode::enable_cnt is generally used to refcount regulator nodes. For
GPIOs, the refcount was done on the gpio_entry since more than one regulator
can share a GPIO.
GPIO regulators were not taking part in the node refcount, since they had
their own mechanism. This caused some fallout after manu started disabling
everybody's unused regulators in r331989.
Refcount it.
r335195:
Revert r335173 at request of mmel@
This was the wrong solution to the problem; regulator_shutdown invokes
regnode_stop. regulator_stop is not a refcounting method, but it invokes
regnode_enable, which is.
mmel@ has a proposed patch/solution to instead provide regnode_fixed_stop
behavior that properly takes shared GPIO pins into account.
Modified:
Directory Properties:
stable/11/ (props changed)
More information about the svn-src-stable-11
mailing list