Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp117810yba; Thu, 25 Apr 2019 19:18:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhijTiuUb0LqenDBcFWrIAVff48UppongHRwCu+y8Di2DtmKFJP7ItepLcdTthkm8fwHgW X-Received: by 2002:a17:902:a9c7:: with SMTP id b7mr42529944plr.145.1556245133993; Thu, 25 Apr 2019 19:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556245133; cv=none; d=google.com; s=arc-20160816; b=BdktHAMuM80H5sKqlTLZRNGTwf2kCFL1qubcwVB1OuE68VpM1bq0P58zT2nz9RoS21 klhXNmVlGyjRtJ02V9czA9Xfv/VND5PQ7Yae34LrEueXB9yog1MpCAanWTObPTZfU0fr am154b9TriQkJ8rjk+FtI3YAl5tsEBUrphl0p3L+NF2oXaQq9rYuGeuDzBssXohxAbr/ 3QX07ND5f2x3aUa4yQFlsbFh/t5KhMmqndgRQ9A+rqFHYIRbE/qZxLaa5ASzUPCo91Ff JJeTbmWz3nt+N/nfJezSdn+G4Lk0pYVW54DYQOljL6x/lN0MtI5GaTCnjBoppIL20RoV uqhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Hk1r+IVwxSo0Cb3NtR3Z2pyp3YJEoBDs1OgkjX9P97Y=; b=cLTx1m0VzZwFCjpwRT09B90Ik020uGo8qfs9Xr5aInYG8e5P/7cbaT307e2+fc0hA4 P7dmkc48libzIqwpTARZnBjmS4TWMrH+ji1w/iLKPDD/Nz5DNOOO+5mXdiRpjvuk9a6a pBOwwJrSPIbnmffI4kO+6fIEWZf4rXKHWp6Jsl6YrzFyZfC93fVNR7Go9GviUTyFkkDA eN0Rl52EhFFgCskfhXST7wwpmhGQ4tB4f3+7WkL2KPSTCmivjs85DWc+vXVZ4tg5IkSK crwoSY4zgVZo3UpG8y/126DTSue/WLEqTuEkKFDecWnnghDuM0vLoXNXIKUaKeLG8P93 DZMw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si22166842pgw.263.2019.04.25.19.18.36; Thu, 25 Apr 2019 19:18:53 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729109AbfDYVhB (ORCPT + 99 others); Thu, 25 Apr 2019 17:37:01 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:35504 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbfDYVhB (ORCPT ); Thu, 25 Apr 2019 17:37:01 -0400 Received: by mail-ot1-f65.google.com with SMTP id m10so897746otp.2; Thu, 25 Apr 2019 14:37:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Hk1r+IVwxSo0Cb3NtR3Z2pyp3YJEoBDs1OgkjX9P97Y=; b=NfQTtb0pxahR9YnzcbrB4+YXrOVhA5p71qAti3dihytuOn/s+oSvlAiFZAQR0uvFqz VfT4OM8vlJoic6aKcfMCgXHQQWFuApli8bmrk/z+mjizwC0/EckawKof0J5cnlXnsYBR Zh4DDTXfoJAfmAY+vCMiZYVUVBTT+fnI3SejuJRU+Ot7qFolp84UCFc/a3GwthK+JSWv BUNsbk+YCc02h8eh39fzOh5fB+qYolMOjqFK+savxlVtLq+P7vm+C21DSVajSppQVb16 3J3HnWp801M/TS2Jkz/nf35FLrI2EJ7uR/6GHhuDWgflUSyBRZVbDipza2zV1woCbubJ yLgA== X-Gm-Message-State: APjAAAWHUnYjU5XZakoSdxMlSo/rrL+kibBgqe+x/WPXSkHalsPMaRXq yw68TXjlVlVv+8lnk/ue/g== X-Received: by 2002:a9d:6318:: with SMTP id q24mr12996657otk.95.1556228219180; Thu, 25 Apr 2019 14:36:59 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id l23sm1431441otr.81.2019.04.25.14.36.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 14:36:58 -0700 (PDT) Date: Thu, 25 Apr 2019 16:36:58 -0500 From: Rob Herring To: Yu Chen Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org, suzhuangluan@hisilicon.com, kongfei@hisilicon.com, liuyu712@hisilicon.com, wanghu17@hisilicon.com, butao@hisilicon.com, chenyao11@huawei.com, fangshengzhou@hisilicon.com, lipengcheng8@huawei.com, songxiaowei@hisilicon.com, xuyiping@hisilicon.com, xuyoujun4@huawei.com, yudongbin@hisilicon.com, zangleigang@hisilicon.com, Felipe Balbi , Greg Kroah-Hartman Subject: Re: [PATCH v6 03/13] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform Message-ID: <20190425213658.GB32028@bogus> References: <20190420064019.57522-1-chenyu56@huawei.com> <20190420064019.57522-4-chenyu56@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190420064019.57522-4-chenyu56@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 20, 2019 at 02:40:09PM +0800, Yu Chen wrote: > This patch adds support for the poweron and shutdown of dwc3 core > on Hisilicon Soc Platform. > > Cc: Felipe Balbi > Cc: Greg Kroah-Hartman > Cc: John Stultz > Signed-off-by: Yu Chen > --- > drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c > index 4c2771c5e727..0ed09d876542 100644 > --- a/drivers/usb/dwc3/dwc3-of-simple.c > +++ b/drivers/usb/dwc3/dwc3-of-simple.c > @@ -98,7 +98,8 @@ static int dwc3_of_simple_probe(struct platform_device *pdev) > * Some controllers need to toggle the usb3-otg reset before trying to > * initialize the PHY, otherwise the PHY times out. > */ > - if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) > + if (of_device_is_compatible(np, "rockchip,rk3399-dwc3") || > + of_device_is_compatible(np, "hisilicon,hi3660-dwc3")) > simple->need_reset = true; Fine, I guess, but really this flag should be moved to the match table so we aren't doing compatible matching twice. > > if (of_device_is_compatible(np, "amlogic,meson-axg-dwc3") || > @@ -243,6 +244,7 @@ static const struct of_device_id of_dwc3_simple_match[] = { > { .compatible = "amlogic,meson-axg-dwc3" }, > { .compatible = "amlogic,meson-gxl-dwc3" }, > { .compatible = "allwinner,sun50i-h6-dwc3" }, > + { .compatible = "hisilicon,hi3660-dwc3" }, > { /* Sentinel */ } > }; > MODULE_DEVICE_TABLE(of, of_dwc3_simple_match); > -- > 2.15.0-rc2 >