From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50E79C433E5 for ; Wed, 8 Jul 2020 19:17:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37AB8207D0 for ; Wed, 8 Jul 2020 19:17:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726044AbgGHTRU (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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation