From patchwork Fri Oct 7 16:42:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 9367001 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 A13C960752 for ; Fri, 7 Oct 2016 16:45:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91E7F29745 for ; Fri, 7 Oct 2016 16:45:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8650A29777; Fri, 7 Oct 2016 16:45:19 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3480329745 for ; Fri, 7 Oct 2016 16:45:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bsYFd-0006of-0k; Fri, 07 Oct 2016 16:44:01 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bsYF2-0006VI-F9 for linux-arm-kernel@lists.infradead.org; Fri, 07 Oct 2016 16:43:26 +0000 Received: by mail-wm0-x22f.google.com with SMTP id f193so43171669wmg.0 for ; Fri, 07 Oct 2016 09:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NfdjrNAA/hkr1d0Unr5+lWNfBLBfuKZmgj20viJixXU=; b=GvYneZIAG3b9elcxfJDOwnPnlVmpI+1ITm4tUFBoiB05wToEZ0TJJc+K+ivDF9ojpN 1GgpJAxr8S1RfQHkQ7dTFJG5LIuiDvT1OXTps/kFdNr8BWK8x/2b+Ltnqo8YZIbFBh7v QDNF0aYxJthHopJ6+PuI1NfyWEw1hfCpwvefvkPZIyV1ACZ32goVlpfS470Ch0zOUlJ6 8bNQOaRspuJhOWonsYJtwlaXSghC0e5n5ziAgMPSrOOFNmsYf/n9Jd7/8v2MM4dc+NxL +V7JRlwIL/Pysc/DAmvb38q1PP+Dz/B8cHhgvcHRfyjzJMvVIsnF+Xm6QikXC6HYAa3u iVrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NfdjrNAA/hkr1d0Unr5+lWNfBLBfuKZmgj20viJixXU=; b=UJIIWzGM6hq+CkKIWUTtgm2F4DTPKbDzkoDwSpSfxp/0r4L6MdTsnOYnudHeUPSYcm BzVxcpNg9sJWzEjm/3bqKRX36ugdZ2WbmyavE3CM7oiMHIZBf1Ald1OXxzj0/ib7j50U fzqgZp8BWwovWXQPiMaEdWh2JrY5hezfkypbjOT85dE9qR0mw4aOgg218iprPOgYgV+g bzK9RldL5VXezs2JKDzNwknC6XZSoHPLFKY7MHpnLcWpT6A9LX9FldlBn0cIBPOrSzxI DOoGIYXm7WzL+CFjl7k08pJ0DoD2/SlHOVGg6TzHsr9hGYxE72SJRgclKqPcAamudgrP mCCQ== X-Gm-Message-State: AA6/9Rk6eAXa0EsjtsdJ+aWkWRKX+g2fDRZ+oPZPLWXz01O5nNxZDsyAkK/gTT8LybjKlBML X-Received: by 10.28.141.6 with SMTP id p6mr20272405wmd.110.1475858582657; Fri, 07 Oct 2016 09:43:02 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n5sm20353566wjv.35.2016.10.07.09.43.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 09:43:02 -0700 (PDT) From: ahaslam@baylibre.com To: gregkh@linuxfoundation.org, robh+dt@kernel.org, nsekhar@ti.com, stern@rowland.harvard.edu, khilman@baylibre.com, sshtylyov@ru.mvista.com, david@lechnology.com Subject: [PATCH/RFT 02/12] ARM: davinci: hawk: add full constraints for ohci plat boot Date: Fri, 7 Oct 2016 18:42:47 +0200 Message-Id: <1475858577-10366-3-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1475858577-10366-1-git-send-email-ahaslam@baylibre.com> References: <1475858577-10366-1-git-send-email-ahaslam@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161007_094324_789615_DD7184C2 X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Axel Haslam , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Axel Haslam The phy framework requests an optional "phy" regulator. If it does not find one, it returns -EPROBE_DEFER. In the case of non-DT based boot for the omap138-lcdk board, this would prevent the usb11 phy to probe correctly and ohci would not enumerate. By calling "regulator_has_full_constraints", An error would be returned instead of DEFER for the "optional" regulator, and the probe of the phy driver can continue normally without a regulator. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index c5cb8d9..1dc6112 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -328,6 +329,7 @@ static __init void omapl138_hawk_init(void) if (ret) pr_warn("%s: dsp/rproc registration failed: %d\n", __func__, ret); + regulator_has_full_constraints(); } #ifdef CONFIG_SERIAL_8250_CONSOLE