Skip to content

Commit

Permalink
usb: host: ehci-msm: Add support for ACPI probing
Browse files Browse the repository at this point in the history
Allow the EHCI MSM driver to probe against an ACPI enumerated
device with ID QCOM8040.

Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jack Pham authored and Greg Kroah-Hartman committed Jan 25, 2016
1 parent c4398ef commit f13f0e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/usb/host/ehci-msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/usb/msm_hsusb_hw.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>
#include <linux/acpi.h>

#include "ehci.h"

Expand Down Expand Up @@ -202,6 +203,12 @@ static const struct dev_pm_ops ehci_msm_dev_pm_ops = {
.resume = ehci_msm_pm_resume,
};

static const struct acpi_device_id msm_ehci_acpi_ids[] = {
{ "QCOM8040", 0 },
{ }
};
MODULE_DEVICE_TABLE(acpi, msm_ehci_acpi_ids);

static const struct of_device_id msm_ehci_dt_match[] = {
{ .compatible = "qcom,ehci-host", },
{}
Expand All @@ -215,6 +222,7 @@ static struct platform_driver ehci_msm_driver = {
.name = "msm_hsusb_host",
.pm = &ehci_msm_dev_pm_ops,
.of_match_table = msm_ehci_dt_match,
.acpi_match_table = ACPI_PTR(msm_ehci_acpi_ids),
},
};

Expand Down

0 comments on commit f13f0e6

Please sign in to comment.