Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp179395yba; Fri, 19 Apr 2019 23:43:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfmZOJRl4LL8jljWn9xoQRcaFlvbpveH1YKKNomM6Jz3JyZWBbLcE8cap++qVVTaodNeku X-Received: by 2002:a65:5cc1:: with SMTP id b1mr7783524pgt.275.1555742619932; Fri, 19 Apr 2019 23:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555742619; cv=none; d=google.com; s=arc-20160816; b=dO74AolAlM2gawaQ0ujrq5cKY/XAQAYh1Vc/XTVfce8Fsig1g+Bnjd0Yis07mlBFw/ hk/wXkPhWe42Cp5EToSZJI6ChFn2E2KllSkVOhwDLDDH9G17qU7LlQ/IpMi7JkbgvERS tL6bf/+OoNrU7RzEFu2qAGw0QnEkbCJ5VGFoHh/tNLY1qo1x6UDEwZ7ymIUIanwhUCCD jmOSvnnaDHuMNJB62lxxjCnf0iI6l8sfexKtDggL/ossa/ZUBPQUSsmrgVCxfZtGQwJV YUaNbmXJ2bIpeRbiDaJZKejs4ZRH2xaC5oX9o94giYRjtXBIY5LXj2Sqeakb0KimUbSM W5LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=TJbW/a9/Ywnlus6kCvh0C3nyYAQX96v8NG1Ztt6u4QA=; b=l9/+8fAQmE7ihbvNtUDwSQzyn/n23FHlncY1IMFDfb3g1WkyE+xZGMwyR57LpV0EuP zw9IEjWcSERwprGrcKebQ5Gt6EK/7zweD6CUh3DIuus6tdwu3kInvLIrbXvFuffamL9J BT52vlcbF/Q7KHNQkSLndgCwAfplySzX67b31vAgRhkBlc4TzeGJS3POxuAaJz04PM5C YH1n5AJ33OVEDcgHg3CrRO0zw7cf9VfJ1Ue+Kb1RDHw0Le+Tttxz2cooQ1DcWU0/KahE a7vMMFqidlN0D6ycuEHsEzeICdmD+PBsPNzCY6arSRTkh/xdgHXtDTbyDsSK5RdGGs7m iY9Q== 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 k69si6812353pgd.265.2019.04.19.23.43.24; Fri, 19 Apr 2019 23:43:39 -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 S1728009AbfDTGkl (ORCPT + 99 others); Sat, 20 Apr 2019 02:40:41 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39392 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727277AbfDTGkl (ORCPT ); Sat, 20 Apr 2019 02:40:41 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5A6E27DDC60837327736; Sat, 20 Apr 2019 14:40:34 +0800 (CST) Received: from vm100-107-113-134.huawei.com (100.107.113.134) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Sat, 20 Apr 2019 14:40:25 +0800 From: Yu Chen To: , , CC: , , , , , , , , , , , , , , Yu Chen , Felipe Balbi , Greg Kroah-Hartman Subject: [PATCH v6 03/13] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform Date: Sat, 20 Apr 2019 14:40:09 +0800 Message-ID: <20190420064019.57522-4-chenyu56@huawei.com> X-Mailer: git-send-email 2.15.0-rc2 In-Reply-To: <20190420064019.57522-1-chenyu56@huawei.com> References: <20190420064019.57522-1-chenyu56@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [100.107.113.134] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; 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