From patchwork Wed Aug 24 08:52:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 9297201 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D017E607EE for ; Wed, 24 Aug 2016 08:56:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1E5E28AE7 for ; Wed, 24 Aug 2016 08:56:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6D6E28EA3; Wed, 24 Aug 2016 08:56:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D99528AE7 for ; Wed, 24 Aug 2016 08:56:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753382AbcHXI4d (ORCPT ); Wed, 24 Aug 2016 04:56:33 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:14188 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753724AbcHXI41 (ORCPT ); Wed, 24 Aug 2016 04:56:27 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 24 Aug 2016 17:53:33 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id D84D444FC9; Wed, 24 Aug 2016 17:53:33 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id BC8A38002E; Wed, 24 Aug 2016 17:53:33 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id B59188002D; Wed, 24 Aug 2016 17:53:33 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id TAA04678; Wed, 24 Aug 2016 17:53:33 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="217999620" Received: from mail-hk2apc01lp0211.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.211]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 24 Aug 2016 17:53:32 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2kMbQHHgILLqYkFwrzeKj8YI9GT6Y5b7wTZpWdZL2XU=; b=H3ef0yW8qe1tjxwcumr4Jc6VLFSLomyznBHRIfJblhM6ubH4iS1IWWFESZBMcgenAxITxr/RPTU/ElgG0aa6TqGRwKKPUYatXy8qJxT0Obliupyp6pnfyftWdrp9DlnugUcBqwkwJg3ne9871cc7q0oPlyD7yvjluN0Kh9bv+Fk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by SG2PR06MB0556.apcprd06.prod.outlook.com (10.161.11.12) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15; Wed, 24 Aug 2016 08:53:30 +0000 From: Yoshihiro Shimoda To: , , , CC: , , Yoshihiro Shimoda Subject: [PATCH 2/4] usb: host: xhci: rcar: add a macro XHCI_PLAT_RENESAS_RCAR_PRIV Date: Wed, 24 Aug 2016 17:52:40 +0900 Message-ID: <1472028762-6640-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472028762-6640-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1472028762-6640-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0065.jpnprd01.prod.outlook.com (10.165.51.153) To SG2PR06MB0556.apcprd06.prod.outlook.com (10.161.11.12) X-MS-Office365-Filtering-Correlation-Id: be773065-d14e-41c0-b59e-08d3cbfc1f7d X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0556; 2:bRyrtrhU4y0WOm87gbMTn1DBCTokXk2xRF9RFBk4upHpY5XhI3DRMTXSyikUUParbo2vsV3KI5Kzcqlpxfqrub27gnrF28iox1ZSQb3CQ62m29/oTw0n91P+qx6fQuScHNQnhrOSdl7dnSCVkzDyWvFrI8eBEo9mNESzVC14lvFGPQYl9TLk3dZDSderbzUW; 3:9q+uEMnChRGaT0ajiLOYdMaVSi2RWL6KUkv8/O3BVfkfZ0kIXPAHYRfmHYynF5mAAMbtJlUaN8UJ7r4l84C4/kEtxjw2gvXQEleJ/r0GdFnJb/2BXOGeu3Adt6cTDQZy; 25:tJ/MjuT4Sk8wl4z5kveb4Sj2EX5nOrTi9P4+MFFmqY36y8j9R7kzAe9fWRIqu4tTGEn/SAzdR3J9Ajag73IlTe+X0ID3f/i7bh6mlUrzwiKQ/wyxvbmIdL7uqLbrMq54Nmegn8cOg5J1FGqEOXdYvCAcDfKhLdUtURsXdMkdO+iZCbzsUSs75fUzfTPLMDFMpHjAF2LrOeUmQ6IXvBxTccULGpN6n1xF355PuMmjH8luVggT5kBa1Ayo2YKRbwYrHmf1llEFNswm1L57UPbYZHanO4PjFm5EljFZBiYYPTl4z64/8nXfGHQnDz1seeYTqBeJscfhGTvfEUpnB4oz2ZqLzEcWaOM+F3EFtjzXWa0Wu5xTYBzAxTIr50/HYx9g3j6JpcowfTLL8qkU64+Nj7C1oP0ViyQt3hY25kAoyOM= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0556; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0556; 31:bNMaWWM+dvJ41RvNOUgsbZs7K+1LkpVPplQ/gLbh50/8uq2DWyG8Rqlulp1CY+2/ufCGMiPCdld0l+OzPaMgd2zZqL1Zro8upqU8pmTMdFgQb4/0wAHRoMT2gld6utpq8bGLTDqTdJ9ZbEZrxS0XS8mNnqSbSN8VatkUXm4QviMtALK58aUeJ/hqP5rhtiBeJu+NKDg2DxIWVb28IgQbEq64At3mxIoLxRCyflg4TBw=; 20:4bVsGB3DfrPW+Ydop9nlaAsVc5PRFZD1AUNX/ypTUS9kZhwgH6GZIpu3TUWepEFirBSZbr4WZsEBUWINKNNApeKqSwSmTLW9ztCR+Tu/7kn7gfKDWD7m0lkKQCsDyJ6uHE952wVwE7LW5lbu/y7IKtNaM/a8IZgP5Qk9QGQkBdQfOLK4pberaguzKEXNeybhe4cHCBW1PMZC4Va/lA8he9tFw/ku9THxyDJRyY1jV403cu9Uibt0i2aCHLE7F+IrOn10+7ujJwZ2gEr782BRHNsN1SZZsNsXElGY6rned0aoJI/+CZbF7TpblHLMHzsqkN8dMByjuVQh8UD0lfC153OZVkUYwN5ruH9dZV+SNxL5HpR4WKbCQXx2ObaP6OetvJFhVvZsVPpffM7rjSZJeQ8ig1wYqQeHom6spHR+JvdO6vVteXSgIfA1FybeSCX74o1GFH9vfxVFIPlkkSGU444fLxid0bTVe63K04Ec6Og6McxfL6BNltNrMQfpqQPq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:SG2PR06MB0556; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0556; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0556; 4:srJnc40AN891WwEcfqtozqr7FjrXIj2ZH5tvUv1hkkXAecwFAkAv56MoZ5eFczyGlgB1DmXjyLqrtUnEueXzkTMKHwLmE7Aldrd0Q6AhsmpRr2boCdSeyLkwK+G+gxQZsuHup+Y7bdb29A3Ppy1RtovUHWqwhCBAiAgKZhjO1chP3VYHH7ifrdheO2EiN5iWrADhXDZvn+/4rzzRufcot9PDCINr4Y1Z18OxDIPxk60d+aUZn0OhbhFcE6WVkbHw5Z5GHcIX2oQU10T9YiQxqem/krFqYxE+8zFAVPDeb/CnZhREtJRilEKhXp5bNIgzpS9vapHg1T7NnFfIA5WgM6kXKlQofDBrkNOmAMnPn1tiW7Jar2MXxJiBpYhE9p2XdO0XQDGWiqiRYrFBjZwlkQ== X-Forefront-PRVS: 0044C17179 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(4001430100002)(107886002)(66066001)(5003940100001)(189998001)(68736007)(2950100001)(76176999)(5660300001)(105586002)(106356001)(47776003)(4326007)(48376002)(42186005)(7736002)(19580395003)(19580405001)(305945005)(101416001)(7846002)(50466002)(50986999)(97736004)(229853001)(2906002)(5001770100001)(81166006)(8676002)(36756003)(92566002)(3846002)(33646002)(78352004)(6116002)(81156014)(586003)(77096005)(50226002); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0556; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:0; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB0556; 23:FWSHeOjlSXtaDXuh1Nbsoyw0Niw2vq/LF4soY03Y3?= =?us-ascii?Q?9Ytc3OQn9632ncm/YhDoeYLHVZXbDYyeNfyGfnlVNTsHIk3lh1RqHMGiE+Gw?= =?us-ascii?Q?7/JedcooKF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lWM32OmGRdLATLdZ/DhQDx2hjrADHWG2VraZsWFOmc/6mDLvCl9BWn1KTh9pQ/g SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0556; 20:bEOItQTuTNVuYggA0dj8aN8C8GK836vX9aaMXiK2kI/6Jg8Lc/HCCSHgiSyiTf26kNTY3a8QaYAmlfSUdv8rvnUVXmFpA+/5uKK1jjcNbCNm4rsnqUgNuwi7WTljGa9/RyySXvmWNlznyw7VnZqiLAZ/oA/jjqBMkMUh42YP0T4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2016 08:53:30.1684 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0556 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds a new macro "XHCI_PLAT_RENESAS_RCAR_PRIV" to make struct xhci_plat_priv data for R-Car SoCs easily. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/host/xhci-rcar.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/xhci-rcar.h b/drivers/usb/host/xhci-rcar.h index d2ffe20..78379e3 100644 --- a/drivers/usb/host/xhci-rcar.h +++ b/drivers/usb/host/xhci-rcar.h @@ -28,4 +28,12 @@ static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd) return 0; } #endif + +#define XHCI_PLAT_RENESAS_RCAR_PRIV(soc, firmware) \ +static const struct xhci_plat_priv xhci_plat_renesas_rcar_##soc = { \ + .firmware_name = firmware, \ + .init_quirk = xhci_rcar_init_quirk, \ + .plat_start = xhci_rcar_start, \ +} + #endif /* _XHCI_RCAR_H */