From patchwork Fri Mar 26 10:23:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Petrosyan X-Patchwork-Id: 12166223 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=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 1BFE7C433E1 for ; Fri, 26 Mar 2021 10:24:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E751F61A4F for ; Fri, 26 Mar 2021 10:24:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbhCZKYQ (ORCPT ); Fri, 26 Mar 2021 06:24:16 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:43702 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbhCZKYG (ORCPT ); Fri, 26 Mar 2021 06:24:06 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 063324051F; Fri, 26 Mar 2021 10:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1616754245; bh=N4KEt8HGG20uNNGgCs8skksTbVHBkSJz3itIK2LJ8Nk=; h=Date:From:Subject:To:Cc:From; b=RaxD2xjM98oICRA6wGsDryoq+CwLUl9l52ySYTLP7JxFTJBqziLvrRCm0820kwIX8 D6ybcANHScvZY59EijvXWJO70drm+tADVa9mY0wbHAslpGuxNDH8w/c11Mwu386hPs ZC6IHzs4/kpV9Py1CCOe/Ly8U7Kk9H/aiyhRu2a/0SuGrA0ubrkFc9I7r2tIhnTnHM eO4LOAnGVcIrmvX37aF/csF97P7OII1WL7H2xXXRq5EA0vvZ/T0yYnXC8IWoCAq8el orlucgKsmZn6d0Nwcbp/ZAqO0AHRrfmFWk/tBbvVR2BpIfOxl+1qXqPa6pKSw9tgmp RnAbEgooAqqjw== Received: from razpc-HP (razpc-hp.internal.synopsys.com [10.116.126.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPSA id 359EFA005C; Fri, 26 Mar 2021 10:24:00 +0000 (UTC) Received: by razpc-HP (sSMTP sendmail emulation); Fri, 26 Mar 2021 14:23:58 +0400 Date: Fri, 26 Mar 2021 14:23:58 +0400 X-SNPS-Relay: synopsys.com From: Artur Petrosyan Subject: [PATCH 0/3] usb: dwc2: Fix power saving general issues. To: Felipe Balbi , Greg Kroah-Hartman , Artur Petrosyan , Minas Harutyunyan , linux-usb@vger.kernel.org, Douglas Anderson Cc: John Youn , Minas Harutyunyan , Artur Petrosyan , Paul Zimmerman , , #@synopsys.com, 4.18@synopsys.com, , #@synopsys.com, 5.2@synopsys.com, Felipe Balbi , Kever Yang Message-Id: <20210326102400.359EFA005C@mailhost.synopsys.com> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patch set is part of multiple series and is continuation of the "usb: dwc2: Fix and improve power saving modes" patch set. (Patch set link: https://marc.info/?l=linux-usb&m=160379622403975&w=2). The patches that were included in the "usb: dwc2: Fix and improve power saving modes" which was submitted earlier was too large and needed to be split up into smaller patch sets. So this is the first series in the whole power saving mode fixes. Each remaining patch set have dependency on previous set and will be submitted after each of them are integrated. The series includes the following patch sets with multiple patches by below order. 1. usb: dwc2: Fix power saving general issues. 2. usb: dwc2: Fix Partial Power down issues. 3. usb: dwc2: Add clock gating support. 4. usb: dwc2: Fix Hibernation issues Changes since V1: - Added Fixes tag and stable kernel in below patches to point to the commits the fixes are addressing 1. "usb: dwc2: Prevent core suspend when port connection flag is 0" 2. "usb: dwc2: Fix HPRT0.PrtSusp bit setting for HiKey 960 board." - Updated the changelog of "usb: dwc2: Add default param to control power optimization." patch. Artur Petrosyan (3): usb: dwc2: Add default param to control power optimization. usb: dwc2: Fix HPRT0.PrtSusp bit setting for HiKey 960 board. usb: dwc2: Prevent core suspend when port connection flag is 0 drivers/usb/dwc2/core.h | 3 +++ drivers/usb/dwc2/debugfs.c | 2 ++ drivers/usb/dwc2/hcd.c | 5 +++-- drivers/usb/dwc2/params.c | 17 ++++++++++++----- 4 files changed, 20 insertions(+), 7 deletions(-)