From patchwork Mon Oct 24 16:46:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ahaslam@baylibre.com X-Patchwork-Id: 9392667 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 BBC1F6077A for ; Mon, 24 Oct 2016 16:54:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAC37291AA for ; Mon, 24 Oct 2016 16:54:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FADF291B3; Mon, 24 Oct 2016 16:54:35 +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=unavailable 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 5D363291AA for ; Mon, 24 Oct 2016 16:54:35 +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 1byiUj-0007tK-Q4; Mon, 24 Oct 2016 16:53:05 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1byiP1-00025f-AK for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2016 16:47:16 +0000 Received: by mail-wm0-x232.google.com with SMTP id f193so132314414wmg.0 for ; Mon, 24 Oct 2016 09:46:50 -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=LcH1kB7sifOTyHnmJea+SLPSw9wbHwSv4JwUctyiVkk=; b=QhW/zWgGVlWcoSiLI8xI+47reXk1XECYgyCkxUvIoTdWz/i55f+TThwVYLVSb9mOX7 yOpXLRUBHlOZwlbCIcg3SNcyxtjDt188D6waeeCGeNaXXYB5IjMs8lzRZybP+2cIWQ9V SW5lxkal3UEl5ch84tEWwj+0+Xu8jKx9R8Px8wXyhZNE/isahgBTlBfq5/CUBhhW+Qca /VioI2LDUA3kYPs1JT3RIoBd8GljWXc6IBD8rYnvCoP7WFlnGB/tt4kcFu3KTSoAP4fI kSJ9B3gcHnbN5vEVqJx1BMqIb//Uz9peFaxxAH8OAq8+q4CPCp+koM/l6XEezRAHRiVw daFQ== 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=LcH1kB7sifOTyHnmJea+SLPSw9wbHwSv4JwUctyiVkk=; b=aLdkvZbA9DRjqpmVgeJc1ogd3GkOseDc1MTwP0x2MNYiuSeL/HJ835JHcusvfsXr+s vo5uMvoZHbw7+iwA0UpDuBPFiACnpvMdZOpL2nTKpy1rXiCtWtb1B8O0wpyEFByO2gBy mzx4uPSpSlb9sIr6ja+Yw8ArHvLcfmsVqaggeystcTJiVxgRBDVT7yIWam3iU931+npf twyONr8w6OK+DE7/cBua0p5HaKVE0l+14828d73XGGHzmDMlJ69iTfwZTbX41+YI5BeW 1JjduLg5ewtsgEAFy5gjKu8Y761rZ2Tp/RunYvNwheSK3oAobBXs33pW/qo/2Q61v6mb Ez8Q== X-Gm-Message-State: AA6/9Rl/1YquUUrdc5b2bmsI+B1lcYgMWqseet6MkkX54JAjS4b2iV2AOCakFGTxVItO3W7V X-Received: by 10.28.64.213 with SMTP id n204mr15208799wma.64.1477327609394; Mon, 24 Oct 2016 09:46:49 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id o62sm15710148wmg.9.2016.10.24.09.46.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 09:46:48 -0700 (PDT) From: ahaslam@baylibre.com To: gregkh@linuxfoundation.org, johan@kernel.org, robh+dt@kernel.org, nsekhar@ti.com, stern@rowland.harvard.edu, khilman@baylibre.com, sshtylyov@ru.mvista.com, david@lechnology.com, manjunath.goudar@linaro.org, broonie@kernel.org, abailon@baylibre.com Subject: [PATCH/RFT v2 08/17] ARM: davinci: hawk: add full constraints for ohci plat boot Date: Mon, 24 Oct 2016 18:46:25 +0200 Message-Id: <20161024164634.4330-9-ahaslam@baylibre.com> X-Mailer: git-send-email 2.10.1.502.g6598894 In-Reply-To: <20161024164634.4330-1-ahaslam@baylibre.com> References: <20161024164634.4330-1-ahaslam@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161024_094711_756417_F0AFCD50 X-CRM114-Status: GOOD ( 11.46 ) 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-da830-evm.c | 3 +++ arch/arm/mach-davinci/board-omapl138-hawk.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index c62766e..b33fc6b 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -631,6 +632,8 @@ static __init void da830_evm_init(void) ret = da8xx_register_spi_bus(0, ARRAY_SIZE(da830evm_spi_info)); if (ret) pr_warn("%s: spi 0 registration failed: %d\n", __func__, ret); + + regulator_has_full_constraints(); } #ifdef CONFIG_SERIAL_8250_CONSOLE diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index c5cb8d9..c3ab7ea 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,8 @@ 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