Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2645999rdb; Mon, 25 Dec 2023 23:20:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbmWASWM6UxFmJ1eyb3KGrVKlkuJB+Rrk46wmTFXgBRJoPmMvOUb6bAiXmnVbKr/nxzgnO X-Received: by 2002:a17:902:d2cb:b0:1d4:2836:63dd with SMTP id n11-20020a170902d2cb00b001d4283663ddmr7012502plc.103.1703575228954; Mon, 25 Dec 2023 23:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703575228; cv=none; d=google.com; s=arc-20160816; b=Cu1EBl1bYuMUJ48rPTuouA2bad+RbwtgzZ0taVril5sVM6xnq0otMS6/J+3QCqHivR qiO0rKx5lnyd28CRfQ5ZPMrovYWfwLJix60709DI3c/8veCjwyY74/qK+cI8mMAdtjFG 5LhO0Cb4fzNSCXUSXkF/c/cv8JgD+exS04e67ggUppkUpTzOioK7cGUCJCPFXUnjec4h bhTAFXOVYSr+wWK9yY9r2LJkJWh/IwDt4aFh/drHXDZWPkVahiB9BV/HeOH3cG2uhXcz dmsKPVEaL2I0wTlDAy4dhBwDXcy9tz1l7UjPPzhM9ZfT4J4BnSEj++Ajyg6CgCBPPDHZ VCOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=gywcpbvFq4giP2vj7hMAbUeXdCN7KyEFaon8oL7guFQ=; fh=V19aTqzvs/5owWgMZLaFJjt2L7DvFXqXkhWpx89TYrI=; b=pB9aw3zoImoO6T3ZHfpxQfpzFO+CPs7PdYdzgzOgkGmrAOnhBnxloeOrJ5YPhF4L3a zbdKqio4oK2zskxlW4Oh7+Nq5JLQjJNrKJ2jS7h6qkK7BNVjvEamva/YBdCoYlDnEln1 zIsmbPT7nl8585heTC+U+BvnblW/ZYhnM8xO6gQGYXG9lNOTxujg1lmpZ+2Nioo/L4hB T/F2TOCamVvZp22sC+I3heiMEv0Vq/7tShzIt95Pi9VbhTSPMsz2L15CgDpfvohQi9pD aQuciC9yML928a+dCHVdaYsJ+0GIIzXjTZVxZb1lLRIiPdb4pu0e91m6H+EA9VUPgVfK RVxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=NUbaH8WP; spf=pass (google.com: domain of linux-kernel+bounces-11395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11395-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jw18-20020a170903279200b001d3d8ebf8a0si5275384plb.216.2023.12.25.23.20.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 23:20:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=NUbaH8WP; spf=pass (google.com: domain of linux-kernel+bounces-11395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11395-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E622281698 for ; Tue, 26 Dec 2023 07:20:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9E554C618; Tue, 26 Dec 2023 07:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="NUbaH8WP" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-m6035.netease.com (mail-m6035.netease.com [210.79.60.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36A384C3C4; Tue, 26 Dec 2023 07:20:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com DKIM-Signature: a=rsa-sha256; b=NUbaH8WPk7Gp/LNITR7TS7RPV6Zq7I7EWqJlbmY7yyofcqBSrLKaMG5A6uvIA40dLawouKfgAavs8GqJ3VYqXH6Cm7IrzkxkYw1mOLbkisX8cXVn8cCEqPzg8z5Y5htrBdQm/30sMN+ISjZJ+bTObheCAjPr+oYP5/A6QkOe6f0=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=gywcpbvFq4giP2vj7hMAbUeXdCN7KyEFaon8oL7guFQ=; h=date:mime-version:subject:message-id:from; Received: from localhost.localdomain (unknown [58.22.7.114]) by mail-m12773.qiye.163.com (Hmail) with ESMTPA id 1AFC32C0564; Tue, 26 Dec 2023 15:20:02 +0800 (CST) From: William Wu To: hminas@synopsys.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, william.wu@rock-chips.com, frank.wang@rock-chips.com, jianwei.zheng@rock-chips.com, yangbin@rock-chips.com Subject: [PATCH] usb: dwc2: Disable clock gating feature on Rockchip SoCs Date: Tue, 26 Dec 2023 15:19:59 +0800 Message-Id: <1703575199-23638-1-git-send-email-william.wu@rock-chips.com> X-Mailer: git-send-email 2.0.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGUJPSFZIGk9JQ0wdTB8dSk1VEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk1PSUxOVUpLS1VKQk tLWQY+ X-HM-Tid: 0a8ca4fea9f1b249kuuu1afc32c0564 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OT46Pzo*KDw2KxURMRQXTiI8 MT1PFB1VSlVKTEtITkxOSUtISklLVTMWGhIXVQwSFxcSGhZVDA47CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlOQ1VJSVVMVUpKT1lXWQgBWUFKTUtDNwY+ Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The DWC2 IP on the Rockchip SoCs doesn't support clock gating. When a clock gating is enabled, system hangs. Signed-off-by: William Wu --- drivers/usb/dwc2/params.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index fb03162..eb677c3 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -130,6 +130,7 @@ static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg) p->lpm_clock_gating = false; p->besl = false; p->hird_threshold_en = false; + p->no_clock_gating = true; } static void dwc2_set_ltq_params(struct dwc2_hsotg *hsotg) -- 2.0.0