Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4190186pxf; Tue, 23 Mar 2021 05:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbVuscfokNUNlGnw3AiWaa5/O9UFCEp8cDDOKfn3Ge0htAKTuoQUZ5DMh/BGSFI3da1V9q X-Received: by 2002:a17:906:cd05:: with SMTP id oz5mr4657805ejb.345.1616501538320; Tue, 23 Mar 2021 05:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616501538; cv=none; d=google.com; s=arc-20160816; b=ugd2d/zfDlOlfTSF0KQFqPguzZeae5AZwxjbVNzfPi8seOeXkYjoQVe2u//QatXC66 FikP9IvLbLzRZLE0PYo3yitLaTXitndBTyLE/fS94h5rriwW/wE2vF76UNPszdrDhqRE buSIbtpEPOXm4mWtnmnV6AKgis7RO9CIR8XKglvUbniiWsYzfSZ5JyXKlODyHZJa3GBu RXpyniI+CmSHhJ5Fuc400og1NTI/fqz0u0jhKLGiV1JNBMXc/TI2zSlF64BJ5FD5CzXt P84AjOhqaaJ2B8ldasFZTG7lskdXi6msis55Ft44FRWY3jS7p8JLUdbOELapBFg2QEjt vZ2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=owGVILq73gebah1wXCPnQ5Y76ntcURqaHZm370b2RX0=; b=Ssepfp0HUlgsGdHh6Eq5rB71CBO1OM6vCJKXPiEfp25m1cXKjYOLHwXmTwH5nD03k1 biG/M96eI0Ony3d+WoGS2tA5R2DFWiORbMmKKFiQCcaV6K/9Fx2jRcx3eFFJ4wNzwEbz 9bYqu14geogrRJkLrnJAx3N62QN9xEHBHq5TgVkYXSsjgNlwHrcoZ0P0amQlBCP8+ry5 jdAznnOdQxGLXndt4jfWIU1E7EwM5OklLkexyUAHkoZN/gTP8r6e0uBPOt0LPtJsT0+h lq6H39j2S46/S40379As5xYA1nZ+uRvPxV0Evdvk6La7CVCUl6K/j5tPrdV2IcCtrzjz YNsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yoZpw+w3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq7si13579477ejc.300.2021.03.23.05.11.54; Tue, 23 Mar 2021 05:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yoZpw+w3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbhCWMJh (ORCPT + 99 others); Tue, 23 Mar 2021 08:09:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbhCWMJF (ORCPT ); Tue, 23 Mar 2021 08:09:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E39C261974; Tue, 23 Mar 2021 12:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616501344; bh=Z0GUuCwYtJE2IfROw879wG5LQDJyC8bAIhRxjCk4ySE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yoZpw+w30p1X4TXfFM8HDAqFwNb92YcB6rOt45QPr70NWjCRkQ5qUahii0W9848Ja wcNqOILUSmiU+F0XDrJOUfNh08d0RMu3O7RDI3m3NM0KwEbX9lD48YOeD7GN1veXZ5 p/a7WIhyG2ncQChCfs4D2Zotg6j37VtgaG3fpoUE= Date: Tue, 23 Mar 2021 13:09:02 +0100 From: Greg Kroah-Hartman To: Sandeep Maheswaram Cc: Andy Gross , Bjorn Andersson , Rob Herring , Felipe Balbi , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manu Gautam Subject: Re: [PATCH v5 2/4] usb: dwc3: host: Add suspend_quirk for dwc3 host Message-ID: References: <1616434280-32635-1-git-send-email-sanm@codeaurora.org> <1616434280-32635-3-git-send-email-sanm@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1616434280-32635-3-git-send-email-sanm@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 11:01:18PM +0530, Sandeep Maheswaram wrote: > Adding suspend quirk function for dwc3 host which will be called > during xhci suspend. What does xhci have to do with this? And where is the user of this quirk function in this series? > Setting hs_phy_mode, ss_phy_mode , phy_power_off flags and phy mode > during host suspend. > > Signed-off-by: Sandeep Maheswaram > --- > drivers/usb/dwc3/core.h | 3 +++ > drivers/usb/dwc3/host.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 61 insertions(+) > > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h > index ce6bd84..f05546c 100644 > --- a/drivers/usb/dwc3/core.h > +++ b/drivers/usb/dwc3/core.h > @@ -1113,6 +1113,9 @@ struct dwc3 { > > bool phys_ready; > > + unsigned int hs_phy_mode; > + bool phy_power_off; > + > struct ulpi *ulpi; > bool ulpi_ready; > > diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c > index f29a264..3db042c 100644 > --- a/drivers/usb/dwc3/host.c > +++ b/drivers/usb/dwc3/host.c > @@ -11,6 +11,13 @@ > #include > > #include "core.h" > +#include "../host/xhci.h" > +#include "../host/xhci-plat.h" Hah, really? > +int xhci_dwc3_suspend_quirk(struct usb_hcd *hcd); Didn't checkpatch complain about this? Put function prototypes in .h files please, this isn't the 1980's... thanks, greg k-h