On Wed, Jul 12, 2017 at 02:59:47PM +0530, Tirupathi Reddy wrote:Fixed this in the new patch version(V2).
regulator_disable_deferred: regulator_disable_work:This shows two things simultaneously holding rdev->mutex...
mutex_lock(&rdev->mutex); .....
rdev->deferred_disables++; mutex_lock(&rdev->mutex);
mutex_unlock(&rdev->mutex); .....
queue_delayed_work(...) count =rdev->deferred_disables;
..... rdev->deferred_disables = 0;