From patchwork Sat Jan 20 03:20:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10176249 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 8421B601C2 for ; Sat, 20 Jan 2018 03:24:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BACC26E1A for ; Sat, 20 Jan 2018 03:24:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7040628795; Sat, 20 Jan 2018 03:24:36 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 00D8728592 for ; Sat, 20 Jan 2018 03:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=naR6JaRsQwDc5OCQHTcWS9H1DgtGzXkefX821BJ2BUo=; b=YT7B57Oh1MX/yiLIoPhNpXJrOR tB4Edui+saUdi02dh6jrmuKc8RxQf4MixD/vtWNMBllPREDblrKEcUqs2wWicTdmIotZqmOkYAG1o lItRoAkoFYGTi9i3K48xwEcGbJNZ9+axVZwXCwbITdv2Our+//Zo7I3b2I42KNMqvxYJZ7WyxTZyr 8zr5XGIZKkS/5coNtPUggFN/i/Kf1qKErS7jh3SHrRzPBJLxkrtl2dlUYBrwg5oFxyIPeehRk0FWV 1/9QSxFX+WZtrqTSJQXlYi2/Davgan4/NNXcyqGY5RvFr/aTDymmshbA4yiSSkM8+drwXzK9UY849 IrUAuw3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ecjlg-00009m-FS; Sat, 20 Jan 2018 03:24:32 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ecjkN-0007H3-E1 for linux-arm-kernel@bombadil.infradead.org; Sat, 20 Jan 2018 03:23:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9CDy81CM4tFlkSiSAwHKJh05sn60GLQwJwxGItUoAWc=; b=b1haTWsiZKL1mrWCzLyOXj6HR +yImIVekyFu3Y0cQlLKSKdxPWxSqXe8yQZ/KcLxBZ9WhQAS0+qXC2dNNF9H8cdUTO33+HwurhGfV9 bdZ9/tzfJze7QjM3KX5s6rW8frLbvesFWR6hUb6kE/hvsxjgscWXO5g24lgRWdl5ebbjtTPjenXwQ dEsqmLX6Q+QwTfIYOzARLGXw6+nUbIHunHUzAijAFQOjEsG3PKUbCztZ2qHVqVOlruIwSPoxtCfO2 G3tDp9gZzRpa4I3XY6h9HAchKpZAflut9j09JVLFFg3xuFh714haMOjbpTvHhODfmpZc6OBjtb68d mzH1DAMoA==; Received: from vern.gendns.com ([206.190.152.46]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ecjkD-0002gA-1p for linux-arm-kernel@lists.infradead.org; Sat, 20 Jan 2018 03:23:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9CDy81CM4tFlkSiSAwHKJh05sn60GLQwJwxGItUoAWc=; b=wFqgrz+g2gpdnh6rrX+dMLBGg Gd3h67F1Khz7u/55txo8sYmDsYchYpxVmV0eZVuxQzMwyWiLhzqKEqe9Y4VZ6MKFnN9UIgueqZyUb AB0WrsAsBC507yZ4YtB+fh97OcAooCng2lc3BRNAQXHcWo0BT13Dl+yREHF9G6esE+AiHSmhKo3vk qL0rELiww/hdnElkzA3PGrFhsGfbj0tbUd9JmpQbQy14TDXf05A7Z7OLHsuqjwnp4ColtNWMt/k5P DW6wjBEeriK1uT5eJKVkNxJIQPrgy0PxVEp9E1t41+1/lLArlrvzPokL08vRt1A0FqkX1A92hsOxD xn2re8rNg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:44372 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ecji1-002FtH-9i; Fri, 19 Jan 2018 22:20:45 -0500 From: David Lechner To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/6] phy: da8xx-usb: Always check for syscon compatible Date: Fri, 19 Jan 2018 21:20:20 -0600 Message-Id: <1516418424-28686-3-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516418424-28686-1-git-send-email-david@lechnology.com> References: <1516418424-28686-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180120_032301_379972_506EA30E X-CRM114-Status: GOOD ( 10.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Lechner , Arnd Bergmann , Kevin Hilman , Adam Ford , Sekhar Nori , linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Bartosz Golaszewski , Lee Jones 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 This slightly changes the logic for getting the CFGCHIP syscon register. We now always call syscon_regmap_lookup_by_compatible() even when not using device tree. This is in preparation for some changes in how the CFGCHIP syscon regmap is registered on da8xx platforms. Signed-off-by: David Lechner --- drivers/phy/ti/phy-da8xx-usb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/phy/ti/phy-da8xx-usb.c b/drivers/phy/ti/phy-da8xx-usb.c index 1b82bff..d463587 100644 --- a/drivers/phy/ti/phy-da8xx-usb.c +++ b/drivers/phy/ti/phy-da8xx-usb.c @@ -152,10 +152,8 @@ static int da8xx_usb_phy_probe(struct platform_device *pdev) if (!d_phy) return -ENOMEM; - if (node) - d_phy->regmap = syscon_regmap_lookup_by_compatible( - "ti,da830-cfgchip"); - else + d_phy->regmap = syscon_regmap_lookup_by_compatible("ti,da830-cfgchip"); + if (IS_ERR(d_phy->regmap)) d_phy->regmap = syscon_regmap_lookup_by_pdevname("syscon"); if (IS_ERR(d_phy->regmap)) { dev_err(dev, "Failed to get syscon\n");