From patchwork Wed Jul 8 19:10:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Maheswaram X-Patchwork-Id: 11652279 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1769313B1 for ; Wed, 8 Jul 2020 19:17:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 085FE206E2 for ; Wed, 8 Jul 2020 19:17:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbgGHTRU (ORCPT ); Wed, 8 Jul 2020 15:17:20 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:32750 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbgGHTRG (ORCPT ); Wed, 8 Jul 2020 15:17:06 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 08 Jul 2020 12:11:03 -0700 Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 08 Jul 2020 12:11:01 -0700 Received: from c-sanm-linux.qualcomm.com ([10.206.25.31]) by ironmsg02-blr.qualcomm.com with ESMTP; 09 Jul 2020 00:40:31 +0530 Received: by c-sanm-linux.qualcomm.com (Postfix, from userid 2343233) id 58EE52BFB; Thu, 9 Jul 2020 00:40:30 +0530 (IST) From: Sandeep Maheswaram To: Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Felipe Balbi , Stephen Boyd , Doug Anderson , Matthias Kaehlcke Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manu Gautam , Sandeep Maheswaram Subject: [PATCH v2 0/3] usb: dwc3: Host wake up support from system suspend Date: Thu, 9 Jul 2020 00:40:14 +0530 Message-Id: <1594235417-23066-1-git-send-email-sanm@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Avoiding phy powerdown in host mode so that it can be wake up by devices. Set GENPD_FLAG_ACTIVE_WAKEUP flag to keep usb30_prim gdsc active when wakeup capable devices are connected to the host. Using PDC interrupts instead of GIC interrupst to support wakeup in xo shutdown case. Changes in v2: Dropped the patch in clock to set GENPD_FLAG_ACTIVE_WAKEUP flag and setting in usb dwc3 driver. Separated the core patch and glue driver patch. Made need_phy_for_wakeup flag part of dwc structure and hs_phy_flags as unsgined int. Adrressed the comment on device_init_wakeup call. Corrected offset for reading portsc register. Added pacth to support wakeup in xo shutdown case. Sandeep Maheswaram (3): usb: dwc3: core: Host wake up support from system suspend usb: dwc3: qcom: Configure wakeup interrupts and set genpd active wakeup flag arm64: dts: qcom: sc7180: Use pdc interrupts for USB instead of GIC interrupts arch/arm64/boot/dts/qcom/sc7180.dtsi | 8 ++-- drivers/usb/dwc3/core.c | 47 +++++++++++++++++++---- drivers/usb/dwc3/core.h | 2 + drivers/usb/dwc3/dwc3-qcom.c | 73 ++++++++++++++++++++++++++++-------- 4 files changed, 103 insertions(+), 27 deletions(-)