Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3716322pxk; Mon, 7 Sep 2020 23:52:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/neq3ISOtH0cTW8rNd6X4uqotgbekpxH0OSwyCLpDi1bomiG8K2hMqCkcfGIXADyI8HbJ X-Received: by 2002:aa7:d959:: with SMTP id l25mr24653780eds.383.1599547974140; Mon, 07 Sep 2020 23:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599547974; cv=none; d=google.com; s=arc-20160816; b=ciJugxJQi9MUoiKoARowk/IKbXY18geh/tin3uRBoJvh6iyatlO6IqH667kU+//4RD e99abQSDfWSx4Sku5HnslTfvpEdsTMrof5VRfA8Xvg/GpOb9skVDZoltr68LAWMlWHrY wISbyuumgdJuGkx+K7WmuEfKJxn5XLPtLqWEzE8PNm+Yb0gYjGnTcI/4+G8BljkoYRx1 PsrnDI4rotj9HBkz/MB3Qe7Z22RtE+WnfNYndNWuoLE2plIZCtTHgNekxkOR9cf9ka8/ URzl9YooZYRqWKtjb/1PH+gkMyluY+PDkv0KrgubwwFt1t6av8Y9L4EHflgDNxzKuBP6 sAAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yC2MNy0x/m3XqaBiaAin+Ks4oK5/9YCEZRPL29PtVz0=; b=g+8LsOgxmCy1VW5RBMV5X7M+xGsx9LQrGQOP5aaTaxNVW9prohrKUhbDV1mw6ZN626 HsWlCY0IkXeaezfW7fYHQtnhxZWi9M/PbeiRmpuBm8GQSFy5dCXB/D33icrfXEPs+qJB DZ03yB09gmpPsE8qzNhiN+oBJTzWiTWDfKGv4g9QfTgUkro1tcSseS9RCgQkkkt3DEBR MTggifeaEq6w1t33p6P4D6JGh2X16LXG/wuP4WgUCgzr9eeM4Zi9wE0wz4QbQPMGzAUd 8gVrA9+ddPaf39WZG2wZlmU7W/qPqW6pp+E9ktJGK7FQHHa93UlTFZbhykoefbGcfduS 9LZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KpaSWzry; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si11116929edv.590.2020.09.07.23.52.31; Mon, 07 Sep 2020 23:52:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KpaSWzry; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729104AbgIHGt3 (ORCPT + 99 others); Tue, 8 Sep 2020 02:49:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:60980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728501AbgIHGtY (ORCPT ); Tue, 8 Sep 2020 02:49:24 -0400 Received: from coco.lan (ip5f5ad5ce.dynamic.kabel-deutschland.de [95.90.213.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B45092065E; Tue, 8 Sep 2020 06:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599547763; bh=1mKSHi4avXLKOb4x4GPVRosfO4em7UMRCY8U1TVyBWM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KpaSWzryFcdclEShzr9+OabQGQ7I+B9F8b0J7t5+LDwo7wB81tVPqtvDerbNlM1Ye MVi6x28bMN4alQ56udfHPcCOKWoqsF1ehMUrZ09nh0X4pfLd0hEv1vJHt9OVodv83R U7SL2QkHs1/qXEaPsudsAkopFxWSsQzPPhwqRwK8= Date: Tue, 8 Sep 2020 08:49:15 +0200 From: Mauro Carvalho Chehab To: Felipe Balbi Cc: Yu Chen , Thinh Nguyen , Greg Kroah-Hartman , 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, Andy Shevchenko , Binghui Wang Subject: Re: [PATCH v6 04/13] usb: dwc3: Add splitdisable quirk for Hisilicon Kirin Soc Message-ID: <20200908084915.5a8c18fc@coco.lan> In-Reply-To: <87r1rcn6j9.fsf@kernel.org> References: <20190420064019.57522-1-chenyu56@huawei.com> <20190420064019.57522-5-chenyu56@huawei.com> <20200907150631.70e1bce0@coco.lan> <874ko9of80.fsf@kernel.org> <20200907165000.7c42a6da@coco.lan> <87r1rcn6j9.fsf@kernel.org> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 08 Sep 2020 09:09:46 +0300 Felipe Balbi escreveu: > >> Why does it affect only Hikey kirin? > > > > As John Stultz didn't re-submit this one (and looking at the DT > > between Kirin 960 and 970 from the original Kernel 4.9 official > > drivers), I suspect that only Kirin 970 requires this quirk. > > > > It could well be due to some Dwc3 revision, but it could also be due > > to some differences at the USB part of the SoC, as there are a > > the reason I ask is that if it's caused by dwc3 revision, then we don't > need the extra dt property, we can rely on a revision check. If it's > something that can't be detected in runtime, then we need a property. Yeah, if it would be possible to auto-detect, that would be better. Yet, hard to say if it would be possible to do that, without access to the Dwc3 docs, and without different hardware for testing it. > > few other things different between hikey 960 and 970: it has a > > different PHY driver, and there are also some differences at the > > USB HUB which is connected into it. > > > > On both devices, the USB physical ports are actually connected > > into a HUB. In the case of Hikey 970, the hub seems to be a > > TI TUSB8041 4-Port Hub: > > > > $ lsusb > > Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub > > Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > > Bus 001 Device 004: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive > > Bus 001 Device 003: ID 413c:301a Dell Computer Corp. Dell MS116 Optical Mouse > > Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub > > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > > > >> What's the dwc3 revision on > >> that SoC (grep SNPSID /sys/kernel/debugfs/*dwc3/regdump)? > > > > GSNPSID = 0x33313130 > > This isn't even listed as a known revision in dwc3/core.h. Thinh, could > the issue being described here caused by a known Erratum with this > particular revision? Maybe. Again, hard to tell without any documentation from Synopsys. Maybe some of the Synopsys folks at USB MK can shed a light. Thanks, Mauro