From patchwork Mon Jul 9 19:17:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 941595 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="TNigq4GV"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41PZvY2rckz9s1R for ; Tue, 10 Jul 2018 05:21:45 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 04F9BC21E5B; Mon, 9 Jul 2018 19:19:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 054DCC21E3A; Mon, 9 Jul 2018 19:18:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A640EC21E5B; Mon, 9 Jul 2018 19:18:01 +0000 (UTC) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by lists.denx.de (Postfix) with ESMTPS id 71BA0C21DB6 for ; Mon, 9 Jul 2018 19:17:57 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id l123-v6so14317054pfl.13 for ; Mon, 09 Jul 2018 12:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q6ydUW1oL4xsseYE0tG3dOA9PoT/Hlw2xlzTrLvIL3E=; b=TNigq4GV1spfC35Wercky2Yc6wwlbdyej0v/dtaV9LphQRSkpQbr6hL2eXtEP4RfEf YgxFgh1KsFvQaFUh3v1NqgU7cYoL6Dh9nNohoT/1ohVHIntBkHwIePCZ+lxgs1Oq6PAF 62e/a7Ndq4rRoRWM+oXH+a8bS1hZwMh9A4Wzg= 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:in-reply-to :references; bh=q6ydUW1oL4xsseYE0tG3dOA9PoT/Hlw2xlzTrLvIL3E=; b=NuM9v38afD4uF/8qYnXG8HFdXGJCGHaWhJdcN+SrT0IwQnNjcgaynsIW2rNE6oN/kK KOAyB/TLwDf10W/C5ylw4oRxShllfYCrqQScXwyzQbmxlxjF82bewZK+zglOpkpSnncO zz62oIfriYLPjwnYM5LDEjJlUcYykBslzNZ6aXJUrHodJMq/yaMsTau9lc+5nt4lV0RI gNocsYYHl6zsAhrFGUriUg7Bq39cyNcPG/748qQqtzQDUkS53/Ucy7gtu72bpiiu3tVI 1ddUqdJAg5hEiYUt/2h3GOhWUsS5GAYmqSs9aj2vafHH+XPF8PdjtfxXIOO3ur3Na7HE RzhQ== X-Gm-Message-State: APt69E1Y1yA3xBuq51KUCp3pd3tABbbFsDI4IRnl2UW543sVf/gMgXWr dB9S77S09AW6Hn7bEvcxxNjXIQ== X-Google-Smtp-Source: AAOMgpcYk70ovksM4AszNGEA0GBvyfXU+rOhf3QYDq0CB8mlwmorsM5o0GA6w7uGKzsGQBB9HBGb2g== X-Received: by 2002:a62:e813:: with SMTP id c19-v6mr22371475pfi.124.1531163876095; Mon, 09 Jul 2018 12:17:56 -0700 (PDT) Received: from localhost.localdomain ([115.97.190.51]) by smtp.gmail.com with ESMTPSA id z66-v6sm31385573pfi.150.2018.07.09.12.17.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 12:17:55 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Marek Vasut , Chen-Yu Tsai , Andre Przywara Date: Tue, 10 Jul 2018 00:47:05 +0530 Message-Id: <20180709191710.22446-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180709191710.22446-1-jagan@amarulasolutions.com> References: <20180709191710.22446-1-jagan@amarulasolutions.com> Cc: u-boot@lists.denx.de, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [U-Boot] [PATCH 3/8] phy: sun4i-usb: Call phy_passby even for PHY#0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" phy_passby is not calling for phy id 0 in legacy code, which has no information on why it restricted. Since Linux phy driver doesn't restrict like this, so call it directly with out any condition Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 2b3cf48025..01f585a283 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -300,8 +300,7 @@ static int sun4i_usb_phy_init(struct phy *phy) data->cfg->disc_thresh, PHY_DISCON_TH_LEN); } - if (usb_phy->id != 0) - sun4i_usb_phy_passby(phy, true); + sun4i_usb_phy_passby(phy, true); sun4i_usb_phy0_reroute(data, true);