From patchwork Sun Jan 29 12:40:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 9543955 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DD7A660415 for ; Sun, 29 Jan 2017 12:40:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC0A827E5A for ; Sun, 29 Jan 2017 12:40:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D10527F93; Sun, 29 Jan 2017 12:40:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E09727E5A for ; Sun, 29 Jan 2017 12:40:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751054AbdA2Mkv (ORCPT ); Sun, 29 Jan 2017 07:40:51 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:35737 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbdA2Mku (ORCPT ); Sun, 29 Jan 2017 07:40:50 -0500 Received: by mail-io0-f193.google.com with SMTP id m98so12111117iod.2 for ; Sun, 29 Jan 2017 04:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=oUxLp6ZmATIZIv55p9N3hflP5/bDm2+c5UK1qYUu2Z0=; b=ou1ja7p9Y9hkC0mx3Y2YfCalFDCRrOcD29ZOcO5XAQKrOkTykVcWIR3oUa4depoI8d kevhs6pXaTrDHg0x40We9P4wIK1rILh5n1JnkDZ8gvnTJxYyOD3vWkt8PHx/BfLWI6HJ v6G8t42odXEI7rTySSEe36MJ5ZyoOcZIf4hwue1iYEt47vVOecwIcfZTlAVZR3qhb3LH 4iaIqVlznF7AYhFWUhIQpIqY7cMNLQ54dbmvW6z3/1H2WKVRGltm5OgUAfSEypn26fxr pcfyK6nVroISuISm34NQhNOlUDEFMFg5f4NeqyWF9eZTlaDBEU8v42YV7QY+LSh3rgO4 LqlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oUxLp6ZmATIZIv55p9N3hflP5/bDm2+c5UK1qYUu2Z0=; b=QHGxGziT900UJgNRPcZpEIPsyBdEDjc/toFV811urfMXEYFlZjn20OgvKhKOuRX0Ee UWitPQqEo6FY1/ZoLUCJnxS95TQpR6PCv1OmvYnhQ6Docp9SRztfGwXr7FD21p4aQNO9 nd5Ak9e1v68YrvudmNp+R0BKL3/pj5gMxwkfyd2ssuqFMpLj4ZuyTDp0s0e2iGq6+1Jg HLK493t+RNKReD6mDQ78XvrvvQA/j+//DP3W0KzdK1K7nHVSH9qxfPWdkOdf+4tGZAcE W7JE/xrPiJj9ClFICemb/VSJr6gBzC4uIOCa4T/60xBxvFtiUrPaZASpSVePNfJCOEIr KxIA== X-Gm-Message-State: AIkVDXLyJ4T4euq5ngLfEHwLt8bHHxsvnPbG+ZTsQAh5PVhgqSc0cmzF+CEhLCIgzOu+4g== X-Received: by 10.107.40.149 with SMTP id o143mr9041336ioo.30.1485693622937; Sun, 29 Jan 2017 04:40:22 -0800 (PST) Received: from localhost.localdomain (c-73-228-150-94.hsd1.mn.comcast.net. [73.228.150.94]) by smtp.gmail.com with ESMTPSA id o138sm4695387itc.18.2017.01.29.04.40.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Jan 2017 04:40:21 -0800 (PST) From: Adam Ford To: tony@atomide.com, lee.jones@linaro.org, linux-omap@vger.kernel.org Cc: adam.ford@logicpd.com, Adam Ford Subject: [PATCH] mfd: twl4030-power: Fix pmic for boards that need vmmc1 on reboot Date: Sun, 29 Jan 2017 06:40:15 -0600 Message-Id: <1485693615-10090-1-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP At least two different omap3630/3730 boards booting from MMC1 fail to reboot if the "ti,twl4030-power-idle-osc-off" or "ti,twl4030-power-idle" compatible flags are set. This patch will keep the vmmc1 powered up during reboot allowing the bootloader to load. Signed-off-by: Adam Ford Acked-by: Tony Lindgren diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index 1beb722..e1e69a4 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c @@ -701,6 +701,7 @@ static struct twl4030_ins omap3_wrst_seq[] = { TWL_RESOURCE_RESET(RES_MAIN_REF), TWL_RESOURCE_GROUP_RESET(RES_GRP_ALL, RES_TYPE_R0, RES_TYPE2_R2), TWL_RESOURCE_RESET(RES_VUSB_3V1), + TWL_RESOURCE_RESET(RES_VMMC1), TWL_RESOURCE_GROUP_RESET(RES_GRP_ALL, RES_TYPE_R0, RES_TYPE2_R1), TWL_RESOURCE_GROUP_RESET(RES_GRP_RC, RES_TYPE_ALL, RES_TYPE2_R0), TWL_RESOURCE_ON(RES_RESET),