Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5847179ybi; Wed, 31 Jul 2019 04:19:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqykJ7xb3pTTShk+NbwsplI0qkLtIjqPV2fNQlDxCBGnvAUuMduaT3U9UPJusr8l6TjHVrrA X-Received: by 2002:a17:902:8ec3:: with SMTP id x3mr8632693plo.313.1564571947220; Wed, 31 Jul 2019 04:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564571947; cv=none; d=google.com; s=arc-20160816; b=04ZKVdST08hO1CSRUBUqWsfTDYEZWBune4I1kOiv8ZId7taOVhLQORDGRtPq21cQDl 0CiyoN6Hn2JqEDjxqP/GfYWTITSydme8QbUegkd0b00qiggvPpsADK2SeuhwMo7Vw9L9 Ya6SGzN/KuSd873gocPxFRoh7s8/bjwUqCxAdHunsoFWxnQADtyBYZ1Yz2t8+HoFzsqh VZdw9YHlshBem6zIczSC/tCs0U0gdvne6qx0e6nCyO7/IFKMs2KtgWWgwU3UVbja7r9x Zg8VZ3NTmLZw71LeSmBIlIZaVMlLOioqIdpQdlW53mbpJkuPU0hd3Sc0sF8DAMWiaS8I /SNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=qG0whHfhXOjtcfLzk188sCOar57eu2kC3PTAbz1gCBo=; b=kZ/ZwJ2H7vXVYZdE/rJffpu9mtHhMar3trqRN26pxiPBLiEO9FKalepDtDcxTgeg4c hre2AWk0qdXAQvmUfRxMK020MpVBTG9NSLfx44VnzxRYZva2zdL7NAdNU1uWk6RTVGMj kw1/AuPGK6F3UgZNP9DRuPMQVLYgD0pzFftj3TnoIbLB9UmO6GM6Iz98pLoA+dLP5WoA Rb5OPFfWjtsQn+LzYw8Tj8bfDBNFTzcf+M80EjZQtks35EWp5M0brm4pD8MEeBk8STVq GiX8j9VTJc0ibzL/jgwgUFEL/NGQjHYIwYtXp+KBXJVYNqbLde9BgNu7YcEk1nH1tnac Tg6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="OJw/xktc"; 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 bc7si31163621plb.55.2019.07.31.04.18.52; Wed, 31 Jul 2019 04:19:07 -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=@broadcom.com header.s=google header.b="OJw/xktc"; 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 S1727877AbfGaKUO (ORCPT + 99 others); Wed, 31 Jul 2019 06:20:14 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38553 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbfGaKUN (ORCPT ); Wed, 31 Jul 2019 06:20:13 -0400 Received: by mail-pl1-f196.google.com with SMTP id az7so30266939plb.5 for ; Wed, 31 Jul 2019 03:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=qG0whHfhXOjtcfLzk188sCOar57eu2kC3PTAbz1gCBo=; b=OJw/xktcfO+P4ZQakjW7xr5hrf9cUCU/WoE6ccO8ljF+2fnEBdH+PiLzw/mr+QN3ZM xcGe6PTn+eUF8ZHKDSEPxaMT2bvttHqJGAvz8OkjnCxA7ZXm9hXRTjgd93xa5RDfD7pn aJSJMLq2r8GboOskpZVxFDFt5UvuWnUYd6nms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qG0whHfhXOjtcfLzk188sCOar57eu2kC3PTAbz1gCBo=; b=WunWQCRE29XfYNkJYREDbxXE01WoV/R9TqIlyWgK9G+HHsO3Jolg0zXnC1XQE25pCK q+zJXRAaGw8lf+uhvEOeiuiGgojPFQ7gfEo4pWI6q/ceNwmN9/o3mVLVS1TG1vB/8iho fzcGW1Po3piDU2rUdMdJ1P6Y6r7XUBmtnV3gbqoqV8oPqzBiTCoWWqhzVi35G0x1Tpou jtvMF/yyyAVYnd0DeT6pICJ4ZlouInWv7FFH72t4dSiHK9vOcuOGGdxc3Fv86/F9yRWV ltBGSnZy6be4b0PipaEvjtuwMa07Svnf9vmn5hHI8qelvq92bpmwWk1vAAGzPDu8d8bo yMpw== X-Gm-Message-State: APjAAAUOblOBLVTs7O8AdmMW9JnsD3XTGcC06KYorEzCILQXrx38V8rV aB5yqDRF1NtNwIDcrSclb//hjcqko4s= X-Received: by 2002:a17:902:383:: with SMTP id d3mr35046302pld.176.1564568412688; Wed, 31 Jul 2019 03:20:12 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 3sm71161776pfg.186.2019.07.31.03.20.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 03:20:11 -0700 (PDT) From: Srinath Mannam To: Greg Kroah-Hartman , Mathias Nyman , Rob Herring , Kishon Vijay Abraham I , Mark Rutland Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Srinath Mannam Subject: [PATCH v2 0/4] Reset xHCI port PHY on disconnect Date: Wed, 31 Jul 2019 15:49:50 +0530 Message-Id: <1564568395-9980-1-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds a quirk in xHCI driver to reset PHY of xHCI port on its disconnect event. This patch set is based on Linux-5.2-rc4. Changes from v1: - Addressed Mathias's comments - Modified mapping of HC ports and their corresponding PHYs - Addressed Rob's comments - Removed usb-phy-port-reset DT property. - Added quirk in platform data using HCI compatible string. - Add phy ports in phy attr structure to have enabled ports bitmask. - Modified #phy-cells of sr-phy to pass phy ports bitmask. Srinath Mannam (4): phy: Add phy ports in attrs dt-bindings: phy: Modify Stingray USB PHY #phy-cells phy: sr-usb: Set phy ports dt-bindings: usb-xhci: Add platform specific compatible for Stingray xHCI drivers: xhci: Add quirk to reset xHCI port PHY .../devicetree/bindings/phy/brcm,stingray-usb-phy.txt | 14 ++++++++------ Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + drivers/phy/broadcom/phy-bcm-sr-usb.c | 9 ++++++++- drivers/usb/core/hcd.c | 6 ++++++ drivers/usb/core/phy.c | 19 +++++++++++++++++++ drivers/usb/core/phy.h | 1 + drivers/usb/host/xhci-plat.c | 10 ++++++++++ drivers/usb/host/xhci-plat.h | 1 + drivers/usb/host/xhci-ring.c | 9 ++++++--- drivers/usb/host/xhci.h | 1 + include/linux/phy/phy.h | 10 ++++++++++ include/linux/usb/hcd.h | 1 + 12 files changed, 72 insertions(+), 10 deletions(-) -- 2.7.4