From patchwork Wed Aug 24 08:52:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 9297203 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 B8166607EE for ; Wed, 24 Aug 2016 08:56:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A994028AE7 for ; Wed, 24 Aug 2016 08:56:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E63D28EA3; Wed, 24 Aug 2016 08:56:36 +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 4611128AE7 for ; Wed, 24 Aug 2016 08:56:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752038AbcHXI4f (ORCPT ); Wed, 24 Aug 2016 04:56:35 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:11633 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753884AbcHXI41 (ORCPT ); Wed, 24 Aug 2016 04:56:27 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie4.idc.renesas.com with ESMTP; 24 Aug 2016 17:53:35 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 0AEDB6277A; Wed, 24 Aug 2016 17:53:35 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id E248F1806F; Wed, 24 Aug 2016 17:53:34 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id DD3021800A; Wed, 24 Aug 2016 17:53:34 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id TAT29616; Wed, 24 Aug 2016 17:53:34 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="218519800" Received: from mail-hk2apc01lp0216.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.216]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 24 Aug 2016 17:53:34 +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=G/wW4Lq7ZOwkelAD5Prgc1dwgdNqASZMqtZYTSeYsro=; b=hR9TiLbsoBMx1wKHq5uXkflwTWKRqsiR/kVtL+FqFITAYiiNVP31MTRKTGxLKY3iFJa0Jl2Avz/S7lWZHmQZB4Wq8GemRrvcOoz3FViORFJm5x/m6s5kXHwXEUzCMAn2u7Sav/6+Y0y0zK/PbV95nuScm+qVSAliFoJbNxhHM8A= 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:31 +0000 From: Yoshihiro Shimoda To: , , , CC: , , Yoshihiro Shimoda Subject: [PATCH 3/4] usb: host: xhci: plat: use XHCI_PLAT_RENESAS_RCAR_PRIV macro for R-Car Date: Wed, 24 Aug 2016 17:52:41 +0900 Message-ID: <1472028762-6640-4-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: 462084dc-585e-43f7-8fa9-08d3cbfc2021 X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0556; 2:MAum5SZQPNX4DlnzBUWZSRLBfDJZJq7JsJDiPui1Ah4uruwgXSyZyqX5+NROL8PvnkI5/9Q5wO6IfdjBoSGgUKz2nSWJOx7s+JPSfkK4bV/kvQBKi1VFy8YRT3DDE1HN93i8OCJdPRdFYOg5AgFH9s9CNhMM9i0vApTvaqj0hUSUf3GJNsbirkkHqpzs1dpg; 3:biP6H54DwFqHiNiGohD9GF1plxcDYhhKGhjBHGkzaTnNFx4Tbkm9YmBZJPPWKiwRPjgu4pgIsaNw3yDG7ohdGsQOuOhd2GyFjT2kA1SmSMq8iMzbGnriL28cmhOIeja7; 25:gJZBrPDYNiGCCKc3K3K4NU6SihweYZZHD3NguUU9SkPgy8/WxLs3injx4NLnzcvf7w4vnXOSBAyhouTIR21/QnMYF1LwSwrPF9eIitEiea/0uj44HzUaU0+XhVDbnW9POUOMqWVNID3ulFhs/9pp/6FVy4xfxwybhOoNz0Xu/d9Td3n22YyGKJnR3ga3l01GLJPvHtlMvtAeP27xrP9wDJsM5+NfmN0jHw0YypRifJKf//IVZCaPmAxGeaF5B2MzDuWVcp5VQzNhIxxRUgl+TBrQFMEiJoJ0wq7dJfv7p0oIRQWmabgsOrvkPn+2N2r9uvsTjINJgRMgezXSVDEnpiqeJq3UlsUbP8jXXzepcr+DrxAo6XebyjL2jtLgnTlqn8JEw6NTSXpHI5V2is75XHe9ZqltEPKmHh1AFsX3zr8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0556; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0556; 31:+UGEwl/S0uUwEcuCKSGwE+cpCoxmvRYcPbvVDCZbfNgInGWLUHEmHZ3DcISikG02u5v1/egJHfYuT2YWc/gHzZphrLa8FlRh6jnitelTrjM89d6ci8ZigX+bkEW/IivIR4lgmTzo+MrzgKvR9Raqt4mZKX+gtQuQZSPN60TBZ6qpNogXlNZKGXUQMoJWqGyA/a7XkqVyjHE5KHt7CVpzhp38+lz3EB8a78Q1noXzIXE=; 20:KTqlzDZ+NjSCoA/64AXs0z2u0Hu+MhrmjkXXwPPl6cyyNREDkR3AjdbJcXoCApXtKooRPzr329WOkgQ9HIFHeTg1rqsDtQr3HH0uzViG1eTeElZLXUiyQrrJl5DaU6TtiFcqYF2rgSWTmuFHhh0HkAIliSbwHgoy+03BxT4rNP/7AczgjGRoE4KYUndk/kuscFAPJacR6xg4O7TCyFe08qywMU/L5A8/XIBcTxuP8hHjTa/u/xNmfNLys6PPIqO2gU69AOtg7xBvOW+O3bMx8f46IvGNjKf9kf+3wVygPT5mNSvPpqjeAj3sz62c4o8xSDHeMFVnd3Aswrv+riI4W5KTEsyx7utyCgrtDOCVU+zQsoTlzsZf5CovmsLeEOSkgFlRk5rU6h3e+6jFCHmh2cZvFbrsqmUwehmhSBHhyufySSY2iCT68XGgCAsDFhMjmXe7/6tLv5fhs/ZsFJqUaDpU/VPn4U45ButvBFoIvARtku3hb3IT8XhXixk4QGBf 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:1VnMbrUGgBQi0k8rN2WZQC0HcxqSP6i04ypeL3kfeQtcbsZLuVOhXU7scD/QSXRjhmNuX8WuUqfRL7JY5y9/Tg6g2IX7stbxJvBuQvxd1B9uIvfKLKEFN3d9OPF7UoQmzonDOGFLu34j6Z47zRtxOMu8q8JDEJXnIMKReX8HWCGHZ1cBReeQBOhyvXfIpFu5IzkiqZHYIojHaPqXmHDLNGk7byePbQ9tWB4UlYQTtaBsNX/8OIkpmfIt5HxjlTWjdFWobSY3YHBnKf4gwO1xeIYNm22te8MwjM7eVaXGWMyKKj3aOXMvilptghx8zA/fjzi63Fcy6prH4wScLW06gTT6Ou8/xw86ITiP4YR5mCBHH3t9p6/ttNWlVsK2DOs3Hr6EncToTGlpyB1bqGwvwg== 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:LT7wvvhiKd8fZKykDQt1KdOMrq55TjtxTxMcx1nic?= =?us-ascii?Q?UMb7CY5oZGewwWEnim1R/pTF8wpP3SWDwh9H/XNCTUHVnPEugZBP301kKZSD?= =?us-ascii?Q?B1nGQ6ejv5fXIMaSFKXFvP/m3FDyN/b2r2kKppDC3ox8tvcYW3B8Au93Olmh?= =?us-ascii?Q?nvvxvtsC2YhRezo2wN+aRlGqdUqRMJum2XjFc7iz+MOR5Td8EkGCokuYeSHM?= =?us-ascii?Q?i2i5Z86Y4b28gZAADunxH5NaAcZadQqm+3eL0ST6n7fW/raVnDIrcgtQnITj?= =?us-ascii?Q?frqsD95dGGBfHm5Or+ajzFObOnsYZ35EyUoVhPZSkI7l2Wp6ljCswRZ9A4De?= =?us-ascii?Q?A6KMaRcXYPRmk9QgVWcRCHMw2UrYoSZinmwFtU+oEyNSrnqJDxzxIxQmhn07?= =?us-ascii?Q?9KBhxewffRXcSg8mCGBmnzLVmbZgBuKW8Y+qbjaR/Ity/TBUIcSEgvddYqTM?= =?us-ascii?Q?HcMAmEocEEsi3XKoWzKbfv594MAYg2rgGf2QV7pGZyraduRXcxEorURGmqzc?= =?us-ascii?Q?ODu00tIK5sH7PXq64QNYwJk4Qq408lPU3z1wFANXLlEJVvCEaG6llpXa008u?= =?us-ascii?Q?Q8tIer/c0yj8Oqkb91KnhTLsL9QIphvHANypmkflQfwQJrm532U1gRyl3xf8?= =?us-ascii?Q?JC1nKTcipQesq5n8TmeD/WHAvsBJObvNEh/Kmrulws2O5tEr49+v88EXG2TO?= =?us-ascii?Q?1c2CkpBKtaPRvGZhTl1Zs3dsaRG3SDTHGkJaMQrBoooGwjczkd3mOtNgL+vX?= =?us-ascii?Q?RS+fru8+e5xgFRlTTndzv2/3aci22Vu0YZzFOGaUDlJbOMaxn76oodtb49hn?= =?us-ascii?Q?5UQQkJuA36s8b6bbB1xMV62ca+38Ck8qTHoRV/5erOUG7Iu1j5Q4UdliyEpH?= =?us-ascii?Q?0MvGcW895chJcGYZrnThPty3OADtODwa6kr2qIK+TcMNJ+yA68215IcDzKRU?= =?us-ascii?Q?Su7ZIjhAUpT5RjmRss9gvDp/VuYcpfavD66/zbYwTva10Ma6pcU9AT1fZcQA?= =?us-ascii?Q?dR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48vJACWJybZzJ0pu9zp4ioVXip4kfyTIkH1YyBZdF8GW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0556; 20:Em7U+2uiflmVi0bPJI+Evnu9yINbMN73snTafQJiK7veMUHPC0Ok/dX/TAOylIAXJ2bLfglx9N02o5+fQoplwe6bV/jRWab5H6CsLukZ8UTRvaHPib0dnuBCBv3Oe7bIqXrf8N/iTYdlM6rKU4YTuJBF0CLtSSkv3sxRBJrZmH8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2016 08:53:31.2443 (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 uses XHCI_PLAT_RENESAS_RCAR_PRIV macro to make the xhci_plat_priv data. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/host/xhci-plat.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index ed56bf9..c1a6b5a 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -88,17 +88,8 @@ static const struct xhci_plat_priv xhci_plat_marvell_armada = { .init_quirk = xhci_mvebu_mbus_init_quirk, }; -static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen2 = { - .firmware_name = XHCI_RCAR_FIRMWARE_NAME_V1, - .init_quirk = xhci_rcar_init_quirk, - .plat_start = xhci_rcar_start, -}; - -static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen3 = { - .firmware_name = XHCI_RCAR_FIRMWARE_NAME_V2, - .init_quirk = xhci_rcar_init_quirk, - .plat_start = xhci_rcar_start, -}; +XHCI_PLAT_RENESAS_RCAR_PRIV(gen2, XHCI_RCAR_FIRMWARE_NAME_V1); +XHCI_PLAT_RENESAS_RCAR_PRIV(gen3, XHCI_RCAR_FIRMWARE_NAME_V2); static const struct of_device_id usb_xhci_of_match[] = { {