From patchwork Wed Oct 7 11:38:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 7344531 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3DF9BBEEA4 for ; Wed, 7 Oct 2015 11:39:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C40A206AD for ; Wed, 7 Oct 2015 11:39:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 60E1F205EF for ; Wed, 7 Oct 2015 11:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753676AbbJGLjS (ORCPT ); Wed, 7 Oct 2015 07:39:18 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:14784 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753648AbbJGLjO (ORCPT ); Wed, 7 Oct 2015 07:39:14 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 07 Oct 2015 20:39:13 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id C8AB14EFAF; Wed, 7 Oct 2015 20:39:13 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id A435C480A3; Wed, 7 Oct 2015 20:39:13 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 86917480A5; Wed, 7 Oct 2015 20:39:13 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id WAH13995; Wed, 7 Oct 2015 20:39:13 +0900 X-IronPort-AV: E=Sophos;i="5.17,648,1437404400"; d="scan'";a="195945247" Received: from mail-hk2apc01lp0208.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.208]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 07 Oct 2015 20:39:12 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost (211.11.155.144) by SIXPR06MB0922.apcprd06.prod.outlook.com (10.162.173.157) with Microsoft SMTP Server (TLS) id 15.1.286.20; Wed, 7 Oct 2015 11:39:11 +0000 From: Yoshihiro Shimoda To: , , , , , , CC: , , Yoshihiro Shimoda Subject: [PATCH v2 1/6] usb: host: xhci: add a platform-private pointer field Date: Wed, 7 Oct 2015 20:38:53 +0900 Message-ID: <1444217938-4668-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1444217938-4668-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1444217938-4668-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0017.jpnprd01.prod.outlook.com (25.161.74.155) To SIXPR06MB0922.apcprd06.prod.outlook.com (25.162.173.157) X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0922; 2:ApVgQbsijaFEYctNlifRY6ur+5ITc6/DMus0KF0O+rik24a+G/k/bDy5Wpa/O4NImdWiU1Hv6LBovqFN231qSTacx/USnCS4+z00NtHur9DtC2F+NM50y8TcCcskTVVttP86i0s+KG3lpSpfCx25zfasbyrnKsaMlsRdRIRcW8A=; 3:fgrPXD87ArZFkJylqYSIry7nARKNKVZWA85wEAqnVDuXkgbR4DJiCfD9KVaGimcqUvoIEju69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fFXpYprdg+F6GJJzjpsil03PtnLCbQL6/JQ4cfnrupdsT1SKs2kz1hNlMVkK4Qal/PEw+Ub9Wt+Cu3diNXk1JkSTDrt70vUmKXXHtaitMrhw3o7hYEnOsXY4C9dm37ZljIc0iYsA/bM/TvSLzG9/RDh6bRGNIZ7L6QBf1Jk47Kt+KUVy7BWnC+Gd2NLipzs7Epiro3L+VRR1L8Wcyniw8MjNpvzRng1W5ivf+xvezkpb2IGChzf4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(3002001); SRVR:SIXPR06MB0922; BCL:0; PCL:0; RULEID:; SRVR:SIXPR06MB0922; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(6009001)(199003)(189002)(76506005)(97736004)(107886002)(36756003)(47776003)(5007970100001)(229853001)(19580405001)(42186005)(5008740100001)(189998001)(81156007)(92566002)(77096005)(5001770100001)(122386002)(106356001)(2950100001)(87976001)(5004730100002)(5001960100002)(50226001)(50986999)(33646002)(76176999)(40100003)(46102003)(64706001)(19580395003)(5003940100001)(66066001)(48376002)(101416001)(105586002)(50466002)(42382002)(78352002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB0922; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:0; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SIXPR06MB0922; 23:hupJExkw+UyAJDJkbF2HInz4/gbCDz+2BA4LuLY9Q?= =?us-ascii?Q?pHtVQbYcPEd4C0ttW0AWx+ENJJGKn/RvHb3XtrxBmwXq0Z2KqiKH5q4OHrPe?= =?us-ascii?Q?BTvxWzg6fYwsXnFiwodkg4nu+q4T3ePFRFbwk9Uc0S7aU8fJ6+qBGKv2ihA/?= =?us-ascii?Q?RqkLV+BCiloNYChgPnbVy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YIo1++f6Je3ezXtB1MG9aDhYfxPr2akjH8HNOna4vMwFunLtT9l74CVl?= =?us-ascii?Q?99IquPjRj942HZRvTlWL9sO+yP5gRpo?= X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0922; 5:lY96u+k0H+gUel9CJsMXlW3JPF7i2CqARiUAMZ8jaINBT/Vs0EVH3h0j6aB0WE8+5BW6e26m8ywEn6h/GRYpHDd/1q4wCZzyW9WOhZT7u51jK+zNdIi1B85yuuA0rx46ACIng0lzZL72xJFbjoEJew==; 24:i2FwL7wzAxd/PKsQK+sTqihFj7kVJjZRwB/GRQdVmKJxum2sHNbU90bNF6AldjLigwU6B3RwMqGxEfWMIvALZRWJTcca+fZGmV8xYVdoAJc=; 20:/YJbZuLKcseWDqh3mTwUyzPcthKldBxb4D8K2PjI2w/CggtF4tYZ7o2B7T9YVsCO56JH6MGS4sITMMv/OUgb3zOWTmiB/oHl6wZ1kV24kBzATBne0jER1gCZJ8dQA4Go9x/GUHW1IvcFGhh/hElSdj7iuNTHYaJXOAULdHGQDho= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2015 11:39:11.1788 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0922 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=AXB_X_OUTLOOKPROT_ENVSDR, BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds an xhci->priv field for storing the of_device_id.data pointer. This will simplify the code to match platform specific variables (e.g. platform type and firmware name). Signed-off-by: Yoshihiro Shimoda --- drivers/usb/host/xhci.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 51093df..da227ba 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -1653,6 +1653,9 @@ struct xhci_hcd { u32 port_status_u0; /* Compliance Mode Timer Triggered every 2 seconds */ #define COMP_MODE_RCVRY_MSECS 2000 + + /* Store of_device_id.data pointer as xhci-plat private data */ + const void *priv; }; /* Platform specific overrides to generic XHCI hc_driver ops */