Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1583595ybp; Fri, 4 Oct 2019 17:53:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD0HAyBz/JBDITwMhMujzYkm6CY9Xw5f8L+Qc0WKt/lErjYftBpu48tnMYO3XNsNi+CEt5 X-Received: by 2002:a05:6402:17ad:: with SMTP id j13mr18211508edy.212.1570236838570; Fri, 04 Oct 2019 17:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570236838; cv=none; d=google.com; s=arc-20160816; b=vQ7/imh3thsIOhsok5A4IRoZnVCUyL2OsLHc7RORsnLK7lo1RmMXDE9EcUm0VSwjcr KA7W5aAO8za1RC1eMG7g7IsHmIGVohk7yNJNfsaGqlrU6HE3xVNZIB/DhT2DSHIh6Kl5 ph4iYJDtvBR29TxRugb18K4/rwayziXOMiVIvoCyEN556Z0H2IAq6y7y4jkZQSkYwD64 Vrj5no1KubCav2VnWOtrcID0vhM8cEEDuSRAqTcVlHvH14n/VzH/Pjou33ktU4Tr4ruR J3zxMrh+5yLv1sE8xGsBDKP7hePYCJID0BMhWp/rZDMRqRF2CkNRq9iNPMKLymvPTSvd RmLQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4kfrSx9pecxmKTopMM3H10hlWnjEzdS6486P99JMZic=; b=zlpGdX8DwowLr4bcZsIRTcxH5ySSRZIGqrBNu3/Md4dlQAYiYekgiQWVvaJoMZwULP J66f0lkMxDAP8zNjYSu+K/C5kYUtyBpEqGTJaiaOAEhMCP37UfxusVkug3bOsNZOb4in S5uHV7Gpf8aE4PRb5lUWNIQUfXgOx0vGSv4RzrDSUM3BUcmy/V9ACLku0Y4Hyn5R5qcW cp+Pdhb+kipDasgjrdpYVCbIfZ3B/DbMIwW5T4DNmIhrSlUXdA3BrCKmUTYKiqhwn4HQ cKh5kyZ3cZPcxK3qhOETnYSc7h9+QdCof1zJ79b1wBi3Cm6OP3H2qep5ahPO6qaSmoDd RncA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A9r4usZD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si4688198edb.420.2019.10.04.17.53.34; Fri, 04 Oct 2019 17:53:58 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A9r4usZD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbfJEAwG (ORCPT + 99 others); Fri, 4 Oct 2019 20:52:06 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46761 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbfJEAwG (ORCPT ); Fri, 4 Oct 2019 20:52:06 -0400 Received: by mail-qt1-f196.google.com with SMTP id u22so11032653qtq.13; Fri, 04 Oct 2019 17:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=4kfrSx9pecxmKTopMM3H10hlWnjEzdS6486P99JMZic=; b=A9r4usZDZI1XYmdWnzVDPjU28NFB618J3iWHmZTBuy82f9U3ecTW2gbZdbInrcGzjq fh5weVuLHOJQh3ffu4wX0tY03UT4iIYplzkz8+AdtxDomM4W9SXNj5GVzewfAaobZHII VMvttb3S/h9tbr/warC36/gJYESQvrSa9kA3qOn90t2DREceaqkikAiiGYnidiulC0TH 0j09D0Ta+TUUb1pwj1X9t+SiC4vMXpcgzdBSeb0MCpfoFpQ6GP83lrw3T9RWLiy6RCCZ lLnGsLenLxLGq5ul+nxXGy9KWX5XuE0YaYza/7kh9NXDBVjeuawDVIXPts7DnaOHK1nH ipSA== 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:content-transfer-encoding :in-reply-to:user-agent; bh=4kfrSx9pecxmKTopMM3H10hlWnjEzdS6486P99JMZic=; b=OI6+EKgMo4C+5qqi33zdwKHOtOrjHvg0imDWvLQN7OLfisKyQyYoWtRa9NbwM8Kqu1 qkgsptMGxHqFNIF9sKOTuwEmgMu2MdnsTCEVneXpYL/BtBkweiejNg9DCrAxmtUt6a7s 4nEkawuff3bSr9Fv4gDhgvCLyh/cLb8us+8DBy9vB9EVW3kTn8/Up7YZYaQ2Z+byqN+b 0phEVc2gy3nQbBj1/s5Ig3SJSmznQ2zruL46PukqAJfaQqu4PuCFA6aFDvmgNZjtqqD5 WzvCgSZIWSc+R9IQULCmKVgG5QjUZB9JIbqBGwWtk1G2j5Yfgaf0Nn5rMJI5mT6KA62I QahQ== X-Gm-Message-State: APjAAAVOKIvFJlChuy6zBkIUkttp/1S5o/rb7ozWUNh0IEkVC9sfxQqg PR3/9E/cSAfcNtLP6Hyt7yg= X-Received: by 2002:ad4:40c8:: with SMTP id x8mr16740235qvp.227.1570236725160; Fri, 04 Oct 2019 17:52:05 -0700 (PDT) Received: from vivek-desktop (ool-457857f8.dyn.optonline.net. [69.120.87.248]) by smtp.gmail.com with ESMTPSA id k2sm3492216qti.24.2019.10.04.17.52.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Oct 2019 17:52:04 -0700 (PDT) Date: Fri, 4 Oct 2019 20:52:00 -0400 From: Vivek Unune To: Heiko Stuebner Cc: Vicente Bergas , robh+dt@kernel.org, mark.rutland@arm.com, ezequiel@collabora.com, akash@openedev.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Felipe Balbi , Felipe Balbi , Roger Quadros Subject: Re: [PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box Message-ID: <20191005005200.GA11418@vivek-desktop> References: <20190929032230.24628-1-npcomplete13@gmail.com> <54c67ca8-8428-48ee-9a96-e1216ba02839@gmail.com> <20190929234615.GA5355@vivek-desktop> <2223294.9I8gkMH88G@phil> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2223294.9I8gkMH88G@phil> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 04, 2019 at 11:45:08PM +0200, Heiko Stuebner wrote: > Hi Vivek, > > Am Montag, 30. September 2019, 01:46:15 CEST schrieb Vivek Unune: > > On Sun, Sep 29, 2019 at 01:22:17PM +0200, Vicente Bergas wrote: > > > On Sunday, September 29, 2019 5:22:30 AM CEST, Vivek Unune wrote: > > > > Fix usb-c on X99 TV Box. Tested with armbian w/ kernel 5.3 > > > > > > > > Signed-off-by: Vivek Unune > > > > --- > > > > arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts | 4 ++-- > > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts > > > > b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts > > > > index 0d1f5f9a0de9..c133e8d64b2a 100644 > > > > --- a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts > > > > +++ b/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts > > > > @@ -644,7 +644,7 @@ > > > > status = "okay"; > > > > u2phy0_host: host-port { > > > > - phy-supply = <&vcc5v0_host>; > > > > + phy-supply = <&vcc5v0_typec>; > > > > status = "okay"; > > > > }; > > > > @@ -712,7 +712,7 @@ > > > > &usbdrd_dwc3_0 { > > > > status = "okay"; > > > > - dr_mode = "otg"; > > > > + dr_mode = "host"; > > > > }; > > > > &usbdrd3_1 { > > > > > > Hi Vivek, > > > > > > which is the relationship of your patch and this commit: > > > > > > e1d9149e8389f1690cdd4e4056766dd26488a0fe > > > arm64: dts: rockchip: Fix USB3 Type-C on rk3399-sapphire > > > > > > with respect to this other commit: > > > > > > c09b73cfac2a9317f1104169045c519c6021aa1d > > > usb: dwc3: don't set gadget->is_otg flag > > > > > > ? > > > > > > I did not test reverting e1d9149e since c09b73cf was applied. > > > > > > Regards, > > > Vicen?. > > > > > > > Hi Vicen?, > > > > Indeed, I was motivated by e1d9149e ("arm64: dts: rockchip: Fix USB3 > > Type-C on rk3399-sapphire"). X99 TV box showed exact same symptoms > > with usb-c port. After applying the fix, it worked. > > > > I was not aware of c09b73cf ("usb: dwc3: don't set gadget->is_otg > > flag") and it will be interesting to test it. This might render > > my fix unecessary. > > So I'll let this patch sit here for now. > Once you've done the testing, can you please respond with the > result (both positive and negative results please). > > Thanks > Heiko > > Hi Heiko, I tested the c09b73cf patch without modifying exsisting dts. I can confirm that that patch doesn't work for me. No usb-c devices were recognized. Vicen? - were you able to test it? As soon as I apply dts patch, usb-c devices are recognized. Thanks, Vivek