From patchwork Fri May 24 11:22:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 17196 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21EE0238FC for ; Fri, 24 May 2013 11:23:28 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id m1sf5769115ves.11 for ; Fri, 24 May 2013 04:22:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=464PkctLUI05g86IIM587tccK5daLivaVaw9qYypgS0=; b=eIT5DTNO3UEFujBj1LiaEMlYjK4ZnDmMLi6ann8iqdJYTVn2J9JSBgc59O6lndBbVh pmsujfXWA3UF/1g/9z8Ok9R/V2aD4SkrKCF0b3vM5FPjdF1LdlVSqRmD3bz65A1DiJU2 MUhHzkKDBtYheHZcH6GbQn96+HztLrN1ulEGXbPOWHqztyGj/GiTKE2lOog9rN1pLnHh vpmE9iZ+9wlWAvMDndAMSaSekHvjpgQploJ3lygwGTc4CG2vk8VDtOIVpwFkHIzQLXKo wcH1tMICmOeffOfnDaxBf8GldqQ1nxZ4tjAd6EnIS7wPihWf+MAkNg1sVvvj8Rilq3MJ VgNg== X-Received: by 10.224.200.202 with SMTP id ex10mr8424055qab.8.1369394550657; Fri, 24 May 2013 04:22:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.164 with SMTP id n4ls1810038qeu.64.gmail; Fri, 24 May 2013 04:22:30 -0700 (PDT) X-Received: by 10.220.96.17 with SMTP id f17mr8097372vcn.58.1369394550539; Fri, 24 May 2013 04:22:30 -0700 (PDT) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [2607:f8b0:400c:c02::22c]) by mx.google.com with ESMTPS id p8si9154096vdv.83.2013.05.24.04.22.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 May 2013 04:22:30 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22c; Received: by mail-vb0-f44.google.com with SMTP id i3so1200776vbh.31 for ; Fri, 24 May 2013 04:22:30 -0700 (PDT) X-Received: by 10.58.225.228 with SMTP id rn4mr8137030vec.35.1369394550381; Fri, 24 May 2013 04:22:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp96382vcs; Fri, 24 May 2013 04:22:29 -0700 (PDT) X-Received: by 10.180.184.83 with SMTP id es19mr1027216wic.54.1369394549204; Fri, 24 May 2013 04:22:29 -0700 (PDT) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [2a00:1450:400c:c05::229]) by mx.google.com with ESMTPS id hq1si17849393wib.36.2013.05.24.04.22.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 May 2013 04:22:29 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::229 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c05::229; Received: by mail-wi0-f169.google.com with SMTP id hn14so425491wib.2 for ; Fri, 24 May 2013 04:22:28 -0700 (PDT) X-Received: by 10.180.206.205 with SMTP id lq13mr1069786wic.56.1369394548803; Fri, 24 May 2013 04:22:28 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPSA id ay7sm41613459wib.9.2013.05.24.04.22.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 May 2013 04:22:27 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, srinidhi.kasagar@stericsson.com, broonie@kernel.org, Lee Jones Subject: [PATCH] ARM: ux500: Provide supplies for AUX1, AUX2 and AUX3 Date: Fri, 24 May 2013 12:22:19 +0100 Message-Id: <1369394539-3713-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQncMXZmzuFqL0s5dzI6HZEWj7L0R9IW2FQWBQNz0wHkbIeANZirGtkBlVv7J1FwYlV7sn0y X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch fixes a bug introduced in the v3.10 merge window. The AB8500 External Regulator driver has recently landed upstream, which registers each of the 3 external regulators located on the AB8500. If these regulators are marked as 'always on', there is a potential for power-loss. If they're not and are seemingly unused the Regulator subsystem will attempt to disable them to save power. This causes an issue for AUX1, AUX2 and AUX3 as they obtain their power from EXT3. So we're specifying that here to prevent EXT3 from being powered down. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-regulators.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c index 33c353b..d6b7c85 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.c +++ b/arch/arm/mach-ux500/board-mop500-regulators.c @@ -374,6 +374,7 @@ static struct ab8500_regulator_reg_init ab8500_reg_init[] = { static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { /* supplies to the display/camera */ [AB8500_LDO_AUX1] = { + .supply_regulator = "ab8500-ext-supply3", .constraints = { .name = "V-DISPLAY", .min_uV = 2800000, @@ -387,6 +388,7 @@ static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { }, /* supplies to the on-board eMMC */ [AB8500_LDO_AUX2] = { + .supply_regulator = "ab8500-ext-supply3", .constraints = { .name = "V-eMMC1", .min_uV = 1100000, @@ -402,6 +404,7 @@ static struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { }, /* supply for VAUX3, supplies to SDcard slots */ [AB8500_LDO_AUX3] = { + .supply_regulator = "ab8500-ext-supply3", .constraints = { .name = "V-MMC-SD", .min_uV = 1100000,