From patchwork Fri Oct 17 17:16:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38987 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 486BB202DB for ; Fri, 17 Oct 2014 17:20:06 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id p9sf724902lbv.4 for ; Fri, 17 Oct 2014 10:20:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=RhY44kTc9sbWdAlj9Rf3EF8JFSyZ5FqM+pAtDqlssz8=; b=IF/vwlXzkvOZkNuOfbNHq45IvAuZGYi0ecxErj+8sSVHuVt7YCBBQPz82LQg1oNSnN sHIVac1BL/4lheMCjVvMaN2z4HAtN6T4HPJinWapHu++9/MAfxJ6F0ude8MBaN0x7MiH 8PQ2ylj6pXk8UKiqE3QHwPROS8NnBh/yCY5F5L5ebB8SQ/3z18ynX+qYXYVKpwd7pz9T xNScgZNr5kt6btpgWau1Cnsr0DVGI6jOBv3/i5G5FWgRHgTAVbFmbfO/H3p0xURbGriV QRVtogrT90x98FqDyVVlFx8hQkkLHnPPuUIRpu3iQ5N8iy7sd/qmrO7lgDEsTghxaMZm 0B+A== X-Gm-Message-State: ALoCoQl16ZOIFi2Q55s51Q+mAecyPXwoWQzvQYusZbmsVz5TF4bCo/VxtOd/dvO9qaXzRddlJWjf X-Received: by 10.112.218.101 with SMTP id pf5mr1069814lbc.8.1413566405058; Fri, 17 Oct 2014 10:20:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.168 with SMTP id a8ls269243lab.55.gmail; Fri, 17 Oct 2014 10:20:04 -0700 (PDT) X-Received: by 10.152.2.100 with SMTP id 4mr10305347lat.6.1413566404915; Fri, 17 Oct 2014 10:20:04 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ku5si3035027lac.30.2014.10.17.10.20.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:20:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id gi9so1092268lab.35 for ; Fri, 17 Oct 2014 10:20:04 -0700 (PDT) X-Received: by 10.112.167.38 with SMTP id zl6mr10269545lbb.34.1413566404845; Fri, 17 Oct 2014 10:20:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp268419lbz; Fri, 17 Oct 2014 10:20:03 -0700 (PDT) X-Received: by 10.70.98.232 with SMTP id el8mr3067066pdb.164.1413566402096; Fri, 17 Oct 2014 10:20:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si1752052pdo.4.2014.10.17.10.20.01 for ; Fri, 17 Oct 2014 10:20:02 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753418AbaJQRRv (ORCPT + 3 others); Fri, 17 Oct 2014 13:17:51 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:55934 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752943AbaJQRRk (ORCPT ); Fri, 17 Oct 2014 13:17:40 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHUHp028971; Fri, 17 Oct 2014 12:17:30 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHU3T000648; Fri, 17 Oct 2014 12:17:30 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:17:30 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHTG5030622; Fri, 17 Oct 2014 12:17:30 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Heikki Krogerus , Felipe Balbi Subject: [PATCH 05/67] usb: dwc3: add ACPI support Date: Fri, 17 Oct 2014 12:16:12 -0500 Message-ID: <1413566234-13537-6-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413566234-13537-1-git-send-email-balbi@ti.com> References: <1413566234-13537-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Heikki Krogerus Adding ACPI ID used on newer Intel SoCs. Signed-off-by: Heikki Krogerus Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 1384300..4d4e854 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -967,12 +968,24 @@ static const struct of_device_id of_dwc3_match[] = { MODULE_DEVICE_TABLE(of, of_dwc3_match); #endif +#ifdef CONFIG_ACPI + +#define ACPI_ID_INTEL_BSW "808622B7" + +static const struct acpi_device_id dwc3_acpi_match[] = { + { ACPI_ID_INTEL_BSW, 0 }, + { }, +}; +MODULE_DEVICE_TABLE(acpi, dwc3_acpi_match); +#endif + static struct platform_driver dwc3_driver = { .probe = dwc3_probe, .remove = dwc3_remove, .driver = { .name = "dwc3", .of_match_table = of_match_ptr(of_dwc3_match), + .acpi_match_table = ACPI_PTR(dwc3_acpi_match), .pm = DWC3_PM_OPS, }, };