Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753330AbcCZI3g (ORCPT ); Sat, 26 Mar 2016 04:29:36 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35283 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751780AbcCZI31 (ORCPT ); Sat, 26 Mar 2016 04:29:27 -0400 From: Ivaylo Dimitrov To: tony@atomide.com, lgirdwood@gmail.com, broonie@kernel.org Cc: sre@kernel.org, pali.rohar@gmail.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Ivaylo Dimitrov Subject: [PATCH 0/3] regulator: twl: Fix regulator mode support Date: Sat, 26 Mar 2016 10:28:12 +0200 Message-Id: <1458980895-10240-1-git-send-email-ivo.g.dimitrov.75@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1191 Lines: 27 On Nokia N900 regulators are left in the mode last set by the bootloader or by the stock kernel, depends on whether it is power-on or reboot from stock kernel to mainline. That leads to problem with devices connected to vmmc2 regulator - when the device is rebooted from stock kernel vmmc2 is left in "sleep" mode (REGULATOR_STATUS_STANDBY in terms of regulator framework) and as noone in mainline kernel switches vmmc2 regulator to normal (REGULATOR_STATUS_NORMAL) mode, devices supplied by it does not get enough power to operate normally. Fix that by providing the correct functionality for initial mode setting from the board DTS. Fix i2c access to powerbus while at it. I will send a follow-up patch for N900 board DTS that sets initial regulators mode once the $subject series is assumed to be ok. Ivaylo Dimitrov (3): regulator: twl: Make sure we have access to powerbus before trying to write to it regulator: twl: Provide of_map_mode for twl4030 regulator: twl: Regulator mode should not depend on regulator enabled state drivers/regulator/twl-regulator.c | 100 +++++++++++++++++++++++++++++++------- 1 file changed, 82 insertions(+), 18 deletions(-) -- 1.9.1