Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp241239ybb; Fri, 3 Apr 2020 01:42:09 -0700 (PDT) X-Google-Smtp-Source: APiQypK779dwaq31R896AffPPrIsQN3BLAnUnbb7LIew38Q8mW5Ff58XxozoYO11HEUfq4BNBo7v X-Received: by 2002:aca:eb4c:: with SMTP id j73mr2062552oih.145.1585903329021; Fri, 03 Apr 2020 01:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585903329; cv=none; d=google.com; s=arc-20160816; b=IXXfF9QLaZ3lh80cyM4BXGIItwx1ZbYwUOc/0pIDmn9UcXl18quNNs0hwwvmnkCL9M MRr0I7PrvoxGyT7cX5GwYgllMPKrLltAs8qJGqty+lEZpAILVHUsNgP+dDlrvIGA9Pj1 FLf24qyRFLw8MLy9F5OHAsK9Hp26pE3oaW9SKe73wxmFfhlzo+wNnv0xfwr6nLjKhDy+ Ee04dFinEqgupsdLMVA/ksYI3QoPc3tSj77gSj/6le7N4Rwb7WpePulonvBOIlFepGHP o6Hr8S9bWmoyGgW/T569qrgrmhy5mi/TZUfUoy7bP1+ojyuf8B/EGrJo+fsRxonlGBcR OImg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=pcPZXHP6kJuCOK+5sj4KXybMGy4D3NvpQrGs0CQsFM0=; b=ZhsjK8l+LdJAupJLOgjBxusHgvOamYg/rhpsP/rMIDRp60rrVhs010xgoUzdQ3gAed FFLjXP5zKtDRQyfyxu4CQf0GPSzoUsx1lQfDBZnqQT4TkR33dBJQqbGL7A2UX0fmDBFm PKkxAwYaEqLZRXECiHzXyBIxZ6uCl+6gK+F3HfqGJ3OUR32Cgdaz/Vac5DAUBYyvthJY PS76OMtC+F/CkETe+ZuKNuWffc6pM0qNffn4OASrAlHjJOGWEirn5XylMTKoKDOSI/vr 8jY/EU46KzOZMhfauXp5k8RCsXDKJ9g1kMS2ZOhyeLkQ8NbtPHGePgPau8r9cF3ngdXm EiXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Fhc+srxB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si3577038otl.260.2020.04.03.01.41.55; Fri, 03 Apr 2020 01:42:09 -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; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Fhc+srxB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390539AbgDCIka (ORCPT + 99 others); Fri, 3 Apr 2020 04:40:30 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:45856 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727868AbgDCIka (ORCPT ); Fri, 3 Apr 2020 04:40:30 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1585903229; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=pcPZXHP6kJuCOK+5sj4KXybMGy4D3NvpQrGs0CQsFM0=; b=Fhc+srxBi+csWr3WySzwoLHsCGed9Odt0MMaWrVxVTACCoCR3DMixCehpczINEQd2++0VHY/ ZCxhDViyADrH9Grwo55jdRxO9c06DnnmwceNqKUKF789x5icmKL2onrBmnK4C8bAlw4r2+1c IpmLShBhw7YVjeKEI7lq+DFTaKI= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e86f675.7f1f14f46d50-smtp-out-n04; Fri, 03 Apr 2020 08:40:21 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 37B75C433BA; Fri, 3 Apr 2020 08:40:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.111.194.152] (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgautam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 58944C433D2; Fri, 3 Apr 2020 08:40:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 58944C433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org Subject: Re: [PATCH 1/2] phy: qualcomm: add qcom dwc3 phy To: Ansuel Smith , Andy Gross Cc: Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20200403002608.946-1-ansuelsmth@gmail.com> From: Manu Gautam Message-ID: <75326e97-a6fb-3682-9973-22d46e48b58d@codeaurora.org> Date: Fri, 3 Apr 2020 14:10:13 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200403002608.946-1-ansuelsmth@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 4/3/2020 5:56 AM, Ansuel Smith wrote: > This has lost in the original push for the dwc3 qcom driver. > This is needed for ipq806x SoC as without this the usb ports > doesn't work at all. > > Signed-off-by: Andy Gross > Signed-off-by: Ansuel Smith > --- > drivers/phy/qualcomm/Kconfig | 12 + > drivers/phy/qualcomm/Makefile | 1 + > drivers/phy/qualcomm/phy-qcom-dwc3.c | 578 +++++++++++++++++++++++++++ > 3 files changed, 591 insertions(+) > create mode 100644 drivers/phy/qualcomm/phy-qcom-dwc3.c > > diff --git a/drivers/phy/qualcomm/Kconfig b/drivers/phy/qualcomm/Kconfig > index e46824da29f6..3d45a9156f85 100644 > --- a/drivers/phy/qualcomm/Kconfig > +++ b/drivers/phy/qualcomm/Kconfig > @@ -91,3 +91,15 @@ config PHY_QCOM_USB_HSIC > select GENERIC_PHY > help > Support for the USB HSIC ULPI compliant PHY on QCOM chipsets. > + > +config PHY_QCOM_DWC3 Please rename to PHY_QCOM_IPQ806X_USB > + tristate "QCOM DWC3 USB PHY support" > + depends on ARCH_QCOM > + depends on HAS_IOMEM > + depends on OF > + select GENERIC_PHY > + help > + This option enables support for the Synopsis PHYs present inside the > + Qualcomm USB3.0 DWC3 controller. This driver supports both HS and SS > + PHY controllers. Please mention that driver supports only IPQ806x, as it can't  be used for all QCOM phy and dwc3 controllers wrappers. > + > diff --git a/drivers/phy/qualcomm/Makefile b/drivers/phy/qualcomm/Makefile > index 283251d6a5d9..04c5a8da941a 100644 > --- a/drivers/phy/qualcomm/Makefile > +++ b/drivers/phy/qualcomm/Makefile > @@ -10,3 +10,4 @@ obj-$(CONFIG_PHY_QCOM_UFS_14NM) += phy-qcom-ufs-qmp-14nm.o > obj-$(CONFIG_PHY_QCOM_UFS_20NM) += phy-qcom-ufs-qmp-20nm.o > obj-$(CONFIG_PHY_QCOM_USB_HS) += phy-qcom-usb-hs.o > obj-$(CONFIG_PHY_QCOM_USB_HSIC) += phy-qcom-usb-hsic.o > +obj-$(CONFIG_PHY_QCOM_DWC3) += phy-qcom-dwc3.o > diff --git a/drivers/phy/qualcomm/phy-qcom-dwc3.c b/drivers/phy/qualcomm/phy-qcom-dwc3.c > new file mode 100644 > index 000000000000..f33da199ddde > --- /dev/null > +++ b/drivers/phy/qualcomm/phy-qcom-dwc3.c Rename to phy-qcom-ip806x-usb.c Please also add qcom_ipq806x_usb as prefix in the function names and structures etc. > @@ -0,0 +1,578 @@ > -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project