Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2021657img; Wed, 27 Feb 2019 09:09:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IZW8itbMDjRsB+DQ25sAHS3mBe7FF7viEj/F9UglC+7apSVOyoBHjctRt01n3Fn8H5PqAbe X-Received: by 2002:aa7:8059:: with SMTP id y25mr2648737pfm.74.1551287393958; Wed, 27 Feb 2019 09:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287393; cv=none; d=google.com; s=arc-20160816; b=0tPIsq3cG2DXr0zBy7C7AQf+lMY01drmWO298tucl18kFavZDK2Pysd/RPXgN/otwu KE3NFgC5XrwqJ5XQ1aQeqNSDLV5rscWkfARr7rmg1h3DZrChCp8ozvFaCw8SD6m6beCr uPrAZKI4YO0tACKftRpchqFuT4xdL7UUNyGgGq4Mu9TUkGIZm9K8C4MyoYS648cvKZWZ +qZG00SEis64YZqLha2Bpl+OFjOJD/aKpS8gFhpfePe1ww0pREwR51PIQBmWtUOIcejv iA3dMsxerlMlzP24nbAb/XZwmsKq6W6Tlt2xVIlOF/SpxphFTEpzu8c4kJUZTwU6uR1c zs8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=G6QbPtYAjXGQVyQjxCRDb5DzLYZHyOIsoCwdT99rSNk=; b=Ki753mcYvg63Gt9TeVZ6OnGJnFtRZksBDtUoXsvZIx/oRvn6hsdTwssfzNjzfwArVE gLhfONIMrokQOMJqSbl+G2q+0Cgaf/lL8LYvaQfumVuu41hKLL/Uoy0Mz8klIsT3HQJc l/58BSIa8GCgQ38CM3lY7mB54nkXhF3nBIs6yFyhHp03mGFKNz6/g8IND2AB7kzbDRIv iRA7OLPVNVMMApq3blH8S/AVYWeBWJ1D8vda5K1bjfMwWsLBzJLnU7nGrUymJGCVixyK V6konbdS9IEQJnb5Qq2WEa8LQNy4vPFsA4Qain+HUEQRImNls54lZ3pBCmBJ/UIclhca ozoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="QjG6/wk7"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 130si16251666pfy.262.2019.02.27.09.09.39; Wed, 27 Feb 2019 09:09:53 -0800 (PST) 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=@broadcom.com header.s=google header.b="QjG6/wk7"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730714AbfB0RIm (ORCPT + 99 others); Wed, 27 Feb 2019 12:08:42 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38316 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730095AbfB0RIl (ORCPT ); Wed, 27 Feb 2019 12:08:41 -0500 Received: by mail-wr1-f68.google.com with SMTP id g12so6745055wrm.5 for ; Wed, 27 Feb 2019 09:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G6QbPtYAjXGQVyQjxCRDb5DzLYZHyOIsoCwdT99rSNk=; b=QjG6/wk72IWmBUVY2abv0awph2rM9Gg1OTRWhvrkpUwPZTK8Bjre+CvMSfxmjxVRjE ewc9zURhcCJBV7BNfabaRNvKvWii6VGps6h1W4pCMeaBcR5h3uT5MGV6LsM5ZFgMkq8A 9C7ZlwtHYT7gV3Dc5JYQY6+qawneuBewW7/Eg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G6QbPtYAjXGQVyQjxCRDb5DzLYZHyOIsoCwdT99rSNk=; b=tgawH4J8KvQLuqeVJRD8nq3YmuNGAPQ2/MshFkReEqJmC+TXK07ZnnGbZJfsRESX30 5H3pdaxfnx/En2ZoASP+kdLyo6fXLxP2nA23D18RbRqybUJxxQN/rH4ahgGs3JzRlRRV lwhuF/XpD5uVvJhUOjx8PhdY4E4rmJPZq8rGrlY9/XXJxYaLUFS7xjF9J9ynIbo+b4k0 RyFOFuv0cQ5vtEzgapNdgeeVYWwl57SUYWDlhKurX5fDqjjM0oW931NSwG2vn+bYz4yL qfL+9Cy1c77y3GAcmgtcwZm8qesNM3YEAhDknN6RgdjxbPcIKvcBd4VPd79+gTJXCpbU gGvQ== X-Gm-Message-State: APjAAAWpbZZw++tkmjbW4POCjGuRrzphjSVWONoawt8CO+aAY1wxZQgT K3ZK2otQmP3X1WCEOVtW2W7WalsqjsW6S2ungZepNA== X-Received: by 2002:adf:9ecc:: with SMTP id b12mr3190735wrf.83.1551287319188; Wed, 27 Feb 2019 09:08:39 -0800 (PST) MIME-Version: 1.0 References: <1549347534-11320-1-git-send-email-srinath.mannam@broadcom.com> <1549347534-11320-2-git-send-email-srinath.mannam@broadcom.com> <20190225213807.GA18852@bogus> In-Reply-To: From: Srinath Mannam Date: Wed, 27 Feb 2019 22:38:27 +0530 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: usb-xhci: Add usb-phy-port-reset property To: Rob Herring Cc: Greg Kroah-Hartman , Mathias Nyman , Mark Rutland , Linux USB List , devicetree@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thanks for the information. Please find my comments below. Regards, Srinath. On Tue, Feb 26, 2019 at 11:33 PM Rob Herring wrote: > > On Mon, Feb 25, 2019 at 10:57 PM Srinath Mannam > wrote: > > > > Hi Rob, > > Thanks for the review, Please see my comments below in line. > > > > Regards, > > Srinath. > > On Tue, Feb 26, 2019 at 3:08 AM Rob Herring wrote: > > > > > > On Tue, Feb 05, 2019 at 11:48:53AM +0530, Srinath Mannam wrote: > > > > Add usb-phy-port-reset optional property to set quirk in xhci platform > > > > driver which forces USB port PHY reset on port disconnect event. > > > > > > > > Signed-off-by: Srinath Mannam > > > > Reviewed-by: Ray Jui > > > > --- > > > > Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt > > > > index fea8b15..ecbdb15 100644 > > > > --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt > > > > +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt > > > > @@ -40,6 +40,7 @@ Optional properties: > > > > - usb3-lpm-capable: determines if platform is USB3 LPM capable > > > > - quirk-broken-port-ped: set if the controller has broken port disable mechanism > > > > - imod-interval-ns: default interrupt moderation interval is 5000ns > > > > + - usb-phy-port-reset: set this to do USB PORT PHY reset while disconnect > > > > - phys : see usb-hcd.txt in the current directory > > > > > > This should be implied by the HCI or phy compatible string (depending > > > on who exactly needs the quirky behavior). > > Stingray USB HS PHY connected to xHCI port has an issue, if full speed > > devices connected to this port then > > after all High Speed devices connected to this port are detected at > > full speed instead of high speed. > > So that we need to do PHY (which is connected to port) reset on xHCI > > port disconnect event. > > That is the reason we required to add quirk in xHCI. > > So, by looking at the xhci host and phy compatible strings (or maybe > just the phy) you can determine whether you need to reset the port or > not. All the information you need is in DT already. xHCI controller in our SOC has three ports each port has one PHY(SS/HS) connected to it. HS PHY has to reset on its corresponding port disconnect event. port disconnect event is captured in xHCI host framework so, quirk has to be registered in xHCI framework only. But we are using "generic-xhci" generic compatible string for our xHCI controller. As per your advice, we will add new compatible string in xhci-plat.c driver for our xHCI controller and will add quirk part of that. Thank you. > > Rob