mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julius Werner <jwerner@chromium.org>
To: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Vincent Palatin <vpalatin@chromium.org>,
	Benson Leung <bleung@chromium.org>,
	Julius Werner <jwerner@chromium.org>
Subject: [PATCH] usb: xhci-plat: Enable USB 2.0 hardware LPM support for platform xHCs
Date: Tue, 20 Aug 2013 16:21:49 -0700	[thread overview]
Message-ID: <1377040909-18428-1-git-send-email-jwerner@chromium.org> (raw)

The driver methods required for hardware LPM have only been added to the
PCI version of the XHCI driver, for no apparent reason. They seem to
work just as well with the platform driver, so let's add them to give
more devices the chance for additional power savings. Tested on the DWC3
xHC of an Exynos5420.

Signed-off-by: Julius Werner <jwerner@chromium.org>
---
 drivers/usb/host/xhci-plat.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 51e22bf..7f46b5d 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -80,6 +80,10 @@ static const struct hc_driver xhci_plat_xhci_driver = {
 	.hub_status_data =	xhci_hub_status_data,
 	.bus_suspend =		xhci_bus_suspend,
 	.bus_resume =		xhci_bus_resume,
+
+	/* LPM support */
+	.update_device =	xhci_update_device,
+	.set_usb2_hw_lpm =	xhci_set_usb2_hardware_lpm,
 };
 
 static int xhci_plat_probe(struct platform_device *pdev)
-- 
1.7.12.4


             reply	other threads:[~2013-08-20 23:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 23:21 Julius Werner [this message]
2013-08-21 18:40 ` Sarah Sharp
2013-08-21 21:43   ` Julius Werner
2013-08-22  0:45     ` Sarah Sharp
2013-08-22  2:12       ` Greg Kroah-Hartman
2013-08-22  4:22       ` Julius Werner
2013-08-22  5:11         ` Paul Zimmerman
2013-08-26 19:14           ` Sarah Sharp
2013-08-26 19:37             ` Paul Zimmerman
2013-08-26 19:53               ` Paul Zimmerman
2013-08-28 21:51               ` Sarah Sharp
2013-08-28 22:15                 ` Paul Zimmerman
2013-08-28 23:08                   ` Julius Werner
2013-08-29 17:18                     ` Sarah Sharp
2013-08-29 18:06                       ` Julius Werner
2013-08-29 18:40                         ` Paul Zimmerman
2013-11-06 20:33                           ` Julius Werner
2013-12-02 21:50                             ` Julius Werner
2013-08-29 17:42                   ` Sarah Sharp
2013-08-29 18:11                     ` Paul Zimmerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377040909-18428-1-git-send-email-jwerner@chromium.org \
    --to=jwerner@chromium.org \
    --cc=bleung@chromium.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sarah.a.sharp@linux.intel.com \
    --cc=vpalatin@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®