Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp192060ybh; Wed, 11 Mar 2020 23:53:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuKtEb0HvXDJ1ytCmnzYqrL6NPCl5cdNL2umojdX2IJJjGuOeYJKAGhyGVz/LYIyugEQ1Y6 X-Received: by 2002:a05:6830:1c7:: with SMTP id r7mr5315964ota.129.1583996013999; Wed, 11 Mar 2020 23:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583996013; cv=none; d=google.com; s=arc-20160816; b=pEy7E31vl7Ql61cwMMvc4UtWjYovm8xG8as6xkAZbnuN4jiYz/+DZ2KMebfCH4Ez2I ZQ+lANUavs6OtaXMu2PutET+bqJBYt8OxI0hbAyvGBlo+Wfl9cHy4sRJtbjulp/98B97 0JKVEpH+ySi4/AZ98tqBiJN55JgtJQRwfzcib+rm2gjVs51ytBrw/m1zkZS/5k+3hr09 lDgmDyV4cGAuBIodSXlkcuzXmeBe1HafUXL7f58n6MNCqo/4Qh8L12bETxJyr3HD6fiS Ky2ucGe0oIrE+dXSv62BfMzAfd3Ke+gyRCLbkjmql6zPNTds7WIrVoVBZstvkoGrhn54 Bstw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=K/AmsGV7LUDr4BsaTsFXwX7ju70UH4Ld8vfQPaaQh44=; b=XWC7enxeFPB/DR8lSFvU8rUZsZrKhhSCJwKdfYXdxciq3Nk+9hDHzyYlKHYMPDiFaf 0pCOi/19wzGEsLged8NsEv6yaAehhkWL3AxrbAbyYJL3YlsG8AzlDb06PO9BNYo2XrTc erXrsjVFSSfvnwoU+SdPPfcYgyb5Svt/NM89SsrYcWRZnK9b9eQ/tZxMreDykpCWLtP+ 0oewi50GWRG8q8p0pbCPLvxdrbVYgHHnWfTvysQuDkOkI5mF+3EhJg1MtM7lWpyAsQTn yFOReVNJ1w58qgCMfcvUNsg95OWu//s1Bv4bj7ESGeermNXRdHmxt0UcoreP3sLVKkHm D/jA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t21si2357174otq.93.2020.03.11.23.53.20; Wed, 11 Mar 2020 23:53:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387957AbgCLGvr (ORCPT + 99 others); Thu, 12 Mar 2020 02:51:47 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:46725 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387831AbgCLGvr (ORCPT ); Thu, 12 Mar 2020 02:51:47 -0400 Received: by mail-ed1-f68.google.com with SMTP id ca19so6016072edb.13; Wed, 11 Mar 2020 23:51:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K/AmsGV7LUDr4BsaTsFXwX7ju70UH4Ld8vfQPaaQh44=; b=Lv3bb+4YG3uudt3hZAOhibk8NTUjT0ZsgUty/fw697C7snis1NKI+t/B2ptJPRACx8 zK2SQIo7CfePtfpz4ecw7q1EIOoBUap1dccho8RRyzctCDz03YAennV43Gs53SxnO+Qw 0snXFyGWaz5c9YKHTHubl9D/IDGozpgPD7KrfoOrnDyYt16h+mha1DxXoyVvF//gpZLQ CCxs5aw/ADmsAt3jiHphgAkBYaJz32SlK21Pe6EHPJBo1P6PJOBzkUAq7eo2TKw+bc18 SEpM27cZH2MVnIaXxpkPr/S5dHVFcf01gEkPy7W6oH1W/EXyub8TWeeBykClGG26n2c1 YHqg== X-Gm-Message-State: ANhLgQ3lWmqRqN3UefRO399PQ90MdUfJCEgXITT0tlArWOSUBuRkJ24J BQCr1pBLzFLbudsKbQfMQcMG8zX/I20= X-Received: by 2002:a17:906:5e42:: with SMTP id b2mr90324eju.266.1583995904234; Wed, 11 Mar 2020 23:51:44 -0700 (PDT) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com. [209.85.221.51]) by smtp.gmail.com with ESMTPSA id m6sm308257edv.27.2020.03.11.23.51.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Mar 2020 23:51:43 -0700 (PDT) Received: by mail-wr1-f51.google.com with SMTP id n15so5888177wrw.13; Wed, 11 Mar 2020 23:51:43 -0700 (PDT) X-Received: by 2002:adf:f2c7:: with SMTP id d7mr9282438wrp.104.1583995902900; Wed, 11 Mar 2020 23:51:42 -0700 (PDT) MIME-Version: 1.0 References: <20200309204326.27403-1-thirtythreeforty@gmail.com> <20200309204326.27403-3-thirtythreeforty@gmail.com> In-Reply-To: <20200309204326.27403-3-thirtythreeforty@gmail.com> From: Chen-Yu Tsai Date: Thu, 12 Mar 2020 14:51:31 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH 2/5] phy: sun4i-usb: add support for the USB PHY on suniv SoC To: George Hilliard Cc: Rob Herring , Mark Rutland , Icenowy Zheng , linux-usb , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 4:43 AM George Hilliard wrote: > > The suniv SoC has one USB OTG port connected to a MUSB controller. > > Add support for its USB PHY. > > Signed-off-by: Icenowy Zheng Not sure why Icenowy's SoB is here. If she was the original author, you are supposed to keep her name as the author. > Signed-off-by: George Hilliard > --- > drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c > index 856927382248..5fb0c42fe8fd 100644 > --- a/drivers/phy/allwinner/phy-sun4i-usb.c > +++ b/drivers/phy/allwinner/phy-sun4i-usb.c > @@ -98,6 +98,7 @@ > #define POLL_TIME msecs_to_jiffies(250) > > enum sun4i_usb_phy_type { > + suniv_f1c100s_phy, > sun4i_a10_phy, > sun6i_a31_phy, > sun8i_a33_phy, > @@ -859,6 +860,14 @@ static int sun4i_usb_phy_probe(struct platform_device *pdev) > return 0; > } > > +static const struct sun4i_usb_phy_cfg suniv_f1c100s_cfg = { > + .num_phys = 1, > + .type = suniv_f1c100s_phy, > + .disc_thresh = 3, > + .phyctl_offset = REG_PHYCTL_A10, > + .dedicated_clocks = true, > +}; > + > static const struct sun4i_usb_phy_cfg sun4i_a10_cfg = { > .num_phys = 3, > .type = sun4i_a10_phy, > @@ -973,6 +982,8 @@ static const struct sun4i_usb_phy_cfg sun50i_h6_cfg = { > }; > > static const struct of_device_id sun4i_usb_phy_of_match[] = { > + { .compatible = "allwinner,suniv-f1c100s-usb-phy", > + .data = &suniv_f1c100s_cfg }, > { .compatible = "allwinner,sun4i-a10-usb-phy", .data = &sun4i_a10_cfg }, Please use the same style (and ignore checkpatch.pl on this one). ChenYu > { .compatible = "allwinner,sun5i-a13-usb-phy", .data = &sun5i_a13_cfg }, > { .compatible = "allwinner,sun6i-a31-usb-phy", .data = &sun6i_a31_cfg }, > -- > 2.25.0 >