Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2097324ybd; Mon, 24 Jun 2019 00:22:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaUjkT9S0neYhLbkFOrIVnmBT47t1w1WtxJYFfoX0dCk1TywPZJz12i9CNxLQ58VOb83oZ X-Received: by 2002:a65:524b:: with SMTP id q11mr30613096pgp.384.1561360935989; Mon, 24 Jun 2019 00:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561360935; cv=none; d=google.com; s=arc-20160816; b=nRVkPDXa5iqP5BnElJrqYEVcdBlV1iwOSlfbSVRb37F0FJJQXXPJ7PenOHzA2MhcPy pchCgMchIo3kCUGXYZGHK4IKzeN+hRlykfz+SE1yQzLCbznRMdAiYHSF0kdDm6p+Ahtb JWwOvuPlVYkMebrtHVmryCNHO/85iGABlLpc+j3EjCtJMzZ9LQBdR+UABNUZBaLSCqV7 ERyL9SarTshEDWt7QCP6xX0AD4CagK85UKH+RzSkZ73DZHK0/Qk+oavFI7BeoXokae1O KW6zQOG+OYEBQLaQCg6ZBD/CJfagEunhjhhyJUnwA2TusrnL/Fswf66+Ey6hiGrzUWAs SaLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Jmx81nKkq8EqomWWCpBqwzhxRqM8w+iPQICjG/4F4pw=; b=A3STTlIJyOJ10Ewt6sS/kleToCLu3jBPFmJl9jtYxbVoxxgC3lUqNwRix+Dx6pNWEP ddlWzpAKgURkFxXYe9fKdSjuygRH1gGsbURxThHbnExiTHseSlyvi4+8NkPX8vcdDSLD 7/q3+DVNKshxV326LbAG1dIL4UOSJuhbZomlW9UyLB2QTtzGizfUnKKjs5D8rWequo/0 fk30CFrrOdwrwZCgbP6K+7KhIoQLrgRCZVF98ga6qJDZERhizGSCkNPNO/jKIzbkBD9f Fvs0L0AUUh66YIMJbfFes2oDkAdIF2RfeQK9STIBtLTK9U1NNXLr+oOGThDqTi/lySJp 0YMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b40si9800241plb.426.2019.06.24.00.22.00; Mon, 24 Jun 2019 00:22:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727861AbfFXHVB (ORCPT + 99 others); Mon, 24 Jun 2019 03:21:01 -0400 Received: from inva020.nxp.com ([92.121.34.13]:55488 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727703AbfFXHU2 (ORCPT ); Mon, 24 Jun 2019 03:20:28 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9248E1A056C; Mon, 24 Jun 2019 09:20:26 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 579C51A056D; Mon, 24 Jun 2019 09:20:21 +0200 (CEST) Received: from mega.ap.freescale.net (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 014374031F; Mon, 24 Jun 2019 15:20:14 +0800 (SGT) From: Yinbo Zhu To: Alan Stern , Greg Kroah-Hartman Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Ramneek Mehresh , Nikhil Badola , Ran Wang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 1/5] usb: fsl: Set USB_EN bit to select ULPI phy Date: Mon, 24 Jun 2019 15:22:15 +0800 Message-Id: <20190624072219.15258-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikhil Badola Set USB_EN bit to select ULPI phy for USB controller version 2.5 Signed-off-by: Nikhil Badola Signed-off-by: Yinbo Zhu --- Change in v2: replace Yinbo.Zhu with Yinbo Zhu. Change in v3: Code base already has patch[5/6], so remove it. Change in v4: Incorrect indentation of the continuation line. drivers/usb/host/ehci-fsl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index e3d0c1c25160..38674b7aa51e 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -122,6 +122,12 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev) tmp |= 0x4; iowrite32be(tmp, hcd->regs + FSL_SOC_USB_CTRL); } + + /* Set USB_EN bit to select ULPI phy for USB controller version 2.5 */ + if (pdata->controller_ver == FSL_USB_VER_2_5 && + pdata->phy_mode == FSL_USB2_PHY_ULPI) + iowrite32be(USB_CTRL_USB_EN, hcd->regs + FSL_SOC_USB_CTRL); + /* * Enable UTMI phy and program PTS field in UTMI mode before asserting * controller reset for USB Controller version 2.5 -- 2.17.1