Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2014924rdb; Tue, 3 Oct 2023 07:56:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdNiv3Y1MuaNrmGFo4U4IhFemvG9NocSHX6k0xIesMQLPgyGyg4HhqqQxPinx68KHtGlum X-Received: by 2002:a17:90b:1e0b:b0:267:faba:705 with SMTP id pg11-20020a17090b1e0b00b00267faba0705mr11727762pjb.10.1696344999472; Tue, 03 Oct 2023 07:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696344999; cv=none; d=google.com; s=arc-20160816; b=IU/oKkprmUvT2VAxWMNmhLZ00gJEuOnPCpr9R7dH1fOmU17SKDZB27Ug180l0a9S7h H3HeHzOrUmftUatogeAe1kwBqp7+XYYmY0stIQKaEooEWPtNn3NbxmNLT/kiDkuRoVEI vfUf3uOLFvznF8emFVJj/CYiUK/UNbxtbFjjmkDq64jMeACRx0YBpuWAQMHNyCQF9ZYp Hrrly11M8IPTdabPQw8D2YL1mwaRc1WfAsFtAUvXpfTqgk5xUzViF7+O7MIA0Y6vKUjR SPUhqYwCsLhmsBEzh/95M2l2E+G/mSiEfAZ4hZeNOMkbUOb2AXRVc0uq6dMUxCInLHwE GpYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ssiq5+nUb5tk+njmXyusvMPmk3vvCvKa/6ALKcbA4us=; fh=5So8hef3IWWqhRZAEBAKzrFho3Z13iIUhwL2NnOdEIY=; b=NMhNFjBL8t9DquESh7YhBk6buGyC/lwmWbw2dbTh6oTNoWe28Ty4EaZdrs/eIdEmar NV/JZAXL9pNSReqMi3luy7553uoqjLWM/kKp3V5nKFQbvU/nvAPd6wYJ7n/9X8Pn/Ylx bbEGurMxAXsLPhq+ntLficae27Hm6X0gHEyCFk2zcpoPkumIcjA13GZCIbyBeHzxBaks 9x7uvru8avz1CfAuKyaPounr+pu7eNIHkCuY3Fn6DgEJk5aY9tarC64P72swDB7Mgfdb Bjj7LVdMPGNL+SUQh/a99rSD8dsFwbQJG2dwyW9nQfKtGO0zMZiGR0gyTHpKQaJy0Jy4 dVIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=soM7zb3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ch22-20020a17090af41600b00274681ee3adsi1595557pjb.8.2023.10.03.07.56.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:56:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=soM7zb3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 690EC808D2BB; Tue, 3 Oct 2023 07:56:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240581AbjJCOz7 (ORCPT + 99 others); Tue, 3 Oct 2023 10:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240292AbjJCOzx (ORCPT ); Tue, 3 Oct 2023 10:55:53 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B8AF19AE for ; Tue, 3 Oct 2023 07:54:55 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-59bebd5bdadso12539697b3.0 for ; Tue, 03 Oct 2023 07:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696344894; x=1696949694; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ssiq5+nUb5tk+njmXyusvMPmk3vvCvKa/6ALKcbA4us=; b=soM7zb3NrsuXZ8ePr4b8N7VXIOHEjshwQHVckcEX+IIzy0Zxer5OEUACmECvviNzNf 1qBgtkQmkSQ1hAiC5dpMzMenwtcupQPGywtWU6UbJXlyeOosQ9Bulol/ZeSpHvog77re giFarXHIeQObEc7HYto4saN7kRDM0sJyLcBhyUbKX6anI11mgK33fk2WegLj520kFors lcIjz8uXj2lyYMoi0JftNyTS/za5FMcJ3YFSBk0stOsBI9umzXTn82/61Ct36IrfBozj foSA1osRyZfTKcJudaOP8gFgu6sNG/sYziOeQedzz6BOiwe3rv7HH1Pni9Tphr6H49/c OJ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696344894; x=1696949694; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ssiq5+nUb5tk+njmXyusvMPmk3vvCvKa/6ALKcbA4us=; b=Zu74fujTZ2e/R9rZ/B69tZrznsvhERUx2gzvKdcgonqeiRXsl2K9XkIyZ5sgZPLbYO KSfkYTvIK4n0yVEa9Ya4Oz4hvRAgGF/HqEUJm2hnU1UghNQO3CLodEI47p6M3VnzKkMh P7zN8xJySgpe502rLLWi8ytJKPmKK0ocAAzLN0ZVJ/Pm6gOUR4bfl3sKjTrI8ldNUzPg +O6D/pHiiODTeJTpNFi3+oKGx3gGh6JWZ/ZYpIwTDch8nqeMaVSWG3s8hb6nUZ6KnN15 1jAmZisQ8lTULB3kbgpZRpYLSLaBRmjMMNrdxIQPyMwVuAC3zN9/eXZoiin/ujn5zkAe d7fg== X-Gm-Message-State: AOJu0YzQLkG3rr4AQ4q/7DIcwMQ4ipToeH1WOHidT/DbpUd+XBwETJAt WHWgdG6Tc45Otxo8nmIKr7WPnzHWyXT+MwmNYSBwng== X-Received: by 2002:a81:65d6:0:b0:589:f41c:bc63 with SMTP id z205-20020a8165d6000000b00589f41cbc63mr13912123ywb.39.1696344894263; Tue, 03 Oct 2023 07:54:54 -0700 (PDT) MIME-Version: 1.0 References: <20230929084209.3033093-1-quic_ipkumar@quicinc.com> <20230929084209.3033093-3-quic_ipkumar@quicinc.com> <412492d1-fcc9-481c-9d28-b208a644ba1d@linaro.org> <7975c638-29cf-45ce-9d76-b8a93d750eb7@quicinc.com> In-Reply-To: <7975c638-29cf-45ce-9d76-b8a93d750eb7@quicinc.com> From: Dmitry Baryshkov Date: Tue, 3 Oct 2023 17:54:42 +0300 Message-ID: Subject: Re: [PATCH 2/8] phy: qcom: Introduce Super-Speed USB UNIPHY driver To: Praveenkumar I Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de, geert+renesas@glider.be, arnd@arndb.de, neil.armstrong@linaro.org, nfraprado@collabora.com, u-kumar1@ti.com, peng.fan@nxp.com, quic_wcheng@quicinc.com, quic_varada@quicinc.com, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, quic_kathirav@quicinc.com, quic_nsekar@quicinc.com, quic_srichara@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:56:29 -0700 (PDT) On Tue, 3 Oct 2023 at 17:22, Praveenkumar I wrote: > > > > On 9/30/2023 10:48 PM, Dmitry Baryshkov wrote: > > On 29/09/2023 11:42, Praveenkumar I wrote: > >> Adds Qualcomm 22ull Super-Speed USB UNIPHY driver support which > >> is present in Qualcomm IPQ5332 SoC. This PHY is interfaced with > >> SNPS DWC3 USB and SNPS DWC PCIe. Either one of the interface > >> can use the it and selection is done via mux present in TCSR > >> register. This driver selects the PHY for DWC3 USB and handles > >> the reset, clocks and regulator. > >> > >> Signed-off-by: Praveenkumar I > >> --- > >> drivers/phy/qualcomm/Kconfig | 11 + > >> drivers/phy/qualcomm/Makefile | 1 + > >> drivers/phy/qualcomm/phy-qcom-uniphy-usb.c | 322 +++++++++++++++++++++ > >> 3 files changed, 334 insertions(+) > >> create mode 100644 drivers/phy/qualcomm/phy-qcom-uniphy-usb.c > >> > >> diff --git a/drivers/phy/qualcomm/Kconfig b/drivers/phy/qualcomm/Kconfig > >> index d891058b7c39..7257c8455c53 100644 > >> --- a/drivers/phy/qualcomm/Kconfig > >> +++ b/drivers/phy/qualcomm/Kconfig > >> @@ -154,6 +154,17 @@ config PHY_QCOM_M31_USB > >> management. This driver is required even for peripheral only or > >> host only mode configurations. > >> +config PHY_QCOM_UNIPHY_USB > >> + tristate "Qualcomm USB Super-Speed UNIPHY driver" > > > > Can we please have more specific driver name? As I wrote earlier, > > there are two other (different) kinds of Qualcomm UNI PHY devices: > > - DSI / HDMI UNIPHY on apq8064 / msm8974 / msm8960 (?) > > - USB QMP UNI PHY drivers > > > > Adding a driver called UNIPHY, which is not related to those two kinds > > sounds pretty confusing to me. > This UNIPHY is different from above mentioned ones. This a custom > version for 22nm on Qualcomm IPQ5332. > Can we name the driver as phy-qcom-uniphy-usb-ss-22ull.c / > phy-qcom-usb-ss-22ull.c ? usb-ss-22ull sounds better. Or maybe usb-ipq-ss > > > >> + depends on USB && (ARCH_QCOM || COMPILE_TEST) > >> + select GENERIC_PHY > >> + help > >> + Enable this to support the Qualcomm USB Super-Speed UNIPHY > >> transceiver > >> + with DWC3 USB core. It handles PHY initialization, clock > >> + management required after resetting the hardware and power > >> + management. This driver is required even for peripheral only or > >> + host only mode configurations. > >> + > >> config PHY_QCOM_USB_HS > >> tristate "Qualcomm USB HS PHY module" > >> depends on USB_ULPI_BUS > >> diff --git a/drivers/phy/qualcomm/Makefile > >> b/drivers/phy/qualcomm/Makefile > >> index ffd609ac6233..c3e0112a7a70 100644 > >> --- a/drivers/phy/qualcomm/Makefile > >> +++ b/drivers/phy/qualcomm/Makefile > >> @@ -17,6 +17,7 @@ obj-$(CONFIG_PHY_QCOM_QMP_USB_LEGACY) += > >> phy-qcom-qmp-usb-legacy.o > >> obj-$(CONFIG_PHY_QCOM_QUSB2) += phy-qcom-qusb2.o > >> obj-$(CONFIG_PHY_QCOM_SNPS_EUSB2) += phy-qcom-snps-eusb2.o > >> obj-$(CONFIG_PHY_QCOM_EUSB2_REPEATER) += phy-qcom-eusb2-repeater.o > >> +obj-$(CONFIG_PHY_QCOM_UNIPHY_USB) += phy-qcom-uniphy-usb.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_USB_HS_28NM) += phy-qcom-usb-hs-28nm.o > >> diff --git a/drivers/phy/qualcomm/phy-qcom-uniphy-usb.c > >> b/drivers/phy/qualcomm/phy-qcom-uniphy-usb.c > >> new file mode 100644 > >> index 000000000000..fdfc9c225995 > >> --- /dev/null > >> +++ b/drivers/phy/qualcomm/phy-qcom-uniphy-usb.c > > > > So, is it a USB PHY or UNI PHY (where I would expect that it handles > > USB and PCIe?) > It is a USB PHY and the PHY name is UNIPHY. Added the usb in the file > name to differentiate it. > > -- With best wishes Dmitry