Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp571927rwi; Thu, 13 Oct 2022 02:07:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wvSKQGktvnFKbwtWLeO4gK+NHqgvrZg/lN9ItN/g5+tqObpdjG6Btg47E+jvqHjsudKUj X-Received: by 2002:a17:90b:4f4a:b0:20c:64e2:2bf1 with SMTP id pj10-20020a17090b4f4a00b0020c64e22bf1mr10388652pjb.30.1665652025067; Thu, 13 Oct 2022 02:07:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665652025; cv=pass; d=google.com; s=arc-20160816; b=gw0nUP6RLOF2w4yluwj2BwWAOFf29oODb3198zjbCesN9ifMtTbS9TDxyQzJiUDkx8 eOwpD7HeFI8dgvHMNgFZ93VbfHl8w25cmz6MjPkVWaEzXOk8NeL/y5bDKPZRbU0hZHm3 I85UmsB1+Dt8qgcbCoeuuY0EbvfSxFu/SlLxxikuCfWSdIjAy6xvrHos5tdBaydJ077Q El9LJWLmg+wKbaxwB8NIMKQOrr+77ZsuTF84QgVsO5R5VklCdnTGw3Pp/FRSUzPWB9N9 1BlCp/pmNbw+j9HKtGDd4UOLXvpLxjLHdGs6CZ91U3i+8ZDljyZlCybHHfpWRW/zTiJm JbNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=h+wv9BWVpxAEeVBWGF8N5xlC4ECUzHofGlXe/WmnrJs=; b=vmdbjhqCj1Nqt0Rc0/9ICPxfnRQ01W9ojPSHnqOWYajdcYe9oiGpMfrOwNr78LlBfq zydWMnbhj+6iPgDE3XL0PplbMsn9WeyVlXaE8bcCGnqtwsiu9gA6kpqFxdk/53mjOFzE PJU2tYQQvaJm7jkDGzz8/zftikcfZieGZTdKRAxv4kqG1eTJd2EaqYO+uy2tMYF7nTt9 yPuxzFz4Pe/fs35e5fb2tZ0ln6JNxV2QQpJfb7dcwKA96U5xmawQIEkAFMuwQf6HFxmj v78uDVP2Ls9ZYL4XyJuN7NmHvY+UBddAIEK6bnEtRuIpH9CKlGD6may80rmROHS2gIg5 xlEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=LVp9SE8g; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a170902b40500b0018128753b2bsi16057870plr.437.2022.10.13.02.06.53; Thu, 13 Oct 2022 02:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=LVp9SE8g; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229846AbiJMIua (ORCPT + 99 others); Thu, 13 Oct 2022 04:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbiJMIu1 (ORCPT ); Thu, 13 Oct 2022 04:50:27 -0400 Received: from sender4-op-o18.zoho.com (sender4-op-o18.zoho.com [136.143.188.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AB7CD03A3; Thu, 13 Oct 2022 01:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665650999; cv=none; d=zohomail.com; s=zohoarc; b=mAXTfNQx4KK9U3hKLTy2Vu1XiBfkJTEQgI+t2gr+tHIZwjiSpe4WpePGfugU5vLm0UjfgYLh/SKAzQydZT/N7Q+ARKGxowo6xQkyQqMPwBsQjgueCM/UrelMUsCzNstnuSlNpnPSlLvj85maTN16f/ucdiqI8IUTCET2TlEyRM4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665650999; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=h+wv9BWVpxAEeVBWGF8N5xlC4ECUzHofGlXe/WmnrJs=; b=NUVJ6aPmn6fBNHnE3dW3SY0oM6InJa+Qx1d9G69TNW7K2WImfpRyXCQ3dnHdPPT7mLFwIaNj06VS49jmfG/6WjSEph0pmNtfV226t9Eic/MRKfOv4HGHzpTN7YnLLvIC4fp6T9t6JzcDpSX9a/tpfkzNxyZVBV4cluY+FLaYANY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1665650999; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=h+wv9BWVpxAEeVBWGF8N5xlC4ECUzHofGlXe/WmnrJs=; b=LVp9SE8gVJU1f+WjTS3Iw7cWc4QspHdlvHzXmf9Oxy3mwzclD9hQpgVAJO0UcDLd xUSytzEPrRsDSJEiGYdItiKU4uah204LZhup02JQBBQsAXQWycS/jKZMEfHL9btMKbR IeNrlMDLpJHFsiS/E9YRJ33+x3KnuIOAo+fFeDxY= Received: from edelgard.fodlan.icenowy.me (112.94.102.144 [112.94.102.144]) by mx.zohomail.com with SMTPS id 1665650997135403.57608440342176; Thu, 13 Oct 2022 01:49:57 -0700 (PDT) Message-ID: <439b685e3aada19021d94669f6f855f1fc81d08e.camel@icenowy.me> Subject: Re: [PATCH v2 04/10] phy: sun4i-usb: add support for the USB PHY on F1C100s SoC From: Icenowy Zheng To: Jernej =?gb2312?Q?=810=947krabec?= , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , Greg Kroah-Hartman , Andre Przywara Cc: soc@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org Date: Thu, 13 Oct 2022 16:49:51 +0800 In-Reply-To: <4218006.ejJDZkT8p0@kista> References: <20221012055602.1544944-1-uwu@icenowy.me> <20221012055602.1544944-5-uwu@icenowy.me> <4218006.ejJDZkT8p0@kista> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E5=9C=A8 2022-10-12=E6=98=9F=E6=9C=9F=E4=B8=89=E7=9A=84 23:21 +0200=EF=BC= =8CJernej =C5=A0krabec=E5=86=99=E9=81=93=EF=BC=9A > Hi Icenowy, >=20 > Dne sreda, 12. oktober 2022 ob 07:55:56 CEST je Icenowy Zheng > napisal(a): > > The F1C100s SoC has one USB OTG port connected to a MUSB > > controller. > >=20 > > Add support for its USB PHY. > >=20 > > Signed-off-by: Icenowy Zheng > > --- > > No changes since v1. > >=20 > > =C2=A0drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++++++++++ > > =C2=A01 file changed, 11 insertions(+) > >=20 > > diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c > > b/drivers/phy/allwinner/phy-sun4i-usb.c index > > 3a3831f6059a..2f94cb77637b > > 100644 > > --- a/drivers/phy/allwinner/phy-sun4i-usb.c > > +++ b/drivers/phy/allwinner/phy-sun4i-usb.c > > @@ -109,6 +109,7 @@ enum sun4i_usb_phy_type { > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sun8i_v3s_phy, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sun50i_a64_phy, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sun50i_h6_phy, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0suniv_f1c100s_phy, > > =C2=A0}; > >=20 > > =C2=A0struct sun4i_usb_phy_cfg { > > @@ -859,6 +860,14 @@ static int sun4i_usb_phy_probe(struct > > platform_device > > *pdev) return 0; > > =C2=A0} > >=20 > > +static const struct sun4i_usb_phy_cfg suniv_f1c100s_cfg =3D { > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.num_phys =3D 1, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.type =3D suniv_f1c100s_phy, >=20 > I think you should just use sun4i_a10_phy. It has no special > handling. I don't=20 > see a point adding new phy types if there is no special cases for it. Sounds reasonable, although I think we should finally drop .type and use only describing items. >=20 > Best regards, > Jernej >=20 > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.disc_thresh =3D 3, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.phyctl_offset =3D REG_PHYCT= L_A10, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.dedicated_clocks =3D true, > > +}; > > + > > =C2=A0static const struct sun4i_usb_phy_cfg sun4i_a10_cfg =3D { > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.num_phys =3D 3, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.type =3D sun4i_a10_phy= , > > @@ -988,6 +997,8 @@ static const struct of_device_id > > sun4i_usb_phy_of_match[] =3D { { .compatible =3D > > "allwinner,sun50i-a64-usb-phy", > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .data =3D &sun50= i_a64_cfg}, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0{ .compatible =3D "allw= inner,sun50i-h6-usb-phy", .data =3D=20 > &sun50i_h6_cfg }, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0{ .compatible =3D "allwinner= ,suniv-f1c100s-usb-phy", > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .data =3D &suniv_f1c1= 00s_cfg }, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0{ }, > > =C2=A0}; > > =C2=A0MODULE_DEVICE_TABLE(of, sun4i_usb_phy_of_match); > > -- > > 2.37.1 >=20 >=20 >=20