From patchwork Wed May 28 11:22:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 4254591 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 15A159F336 for ; Wed, 28 May 2014 11:23:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1FDE520212 for ; Wed, 28 May 2014 11:23:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25270201FA for ; Wed, 28 May 2014 11:23:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752479AbaE1LXI (ORCPT ); Wed, 28 May 2014 07:23:08 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:64209 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752314AbaE1LXH (ORCPT ); Wed, 28 May 2014 07:23:07 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 28 May 2014 20:23:05 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 1B3D3487B7; Wed, 28 May 2014 20:23:05 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 133B0280A6; Wed, 28 May 2014 20:23:05 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 08CCC280A0; Wed, 28 May 2014 20:23:05 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id WAC30350; Wed, 28 May 2014 20:23:05 +0900 X-IronPort-AV: E=Sophos;i="4.98,927,1392130800"; d="scan'208";a="160800804" Received: from mail-sg1lp0087.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.87]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES128-SHA; 28 May 2014 20:23:03 +0900 Received: from [10.161.20.55] (211.11.155.147) by SINPR06MB331.apcprd06.prod.outlook.com (10.141.110.17) with Microsoft SMTP Server (TLS) id 15.0.949.11; Wed, 28 May 2014 11:23:02 +0000 Message-ID: <5385C712.8090405@renesas.com> Date: Wed, 28 May 2014 20:22:58 +0900 From: Yoshihiro Shimoda User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "mathias.nyman@intel.com" , Greg Kroah-Hartman , "linux-usb@vger.kernel.org" CC: SH-Linux , Magnus Damm , Geert Uytterhoeven , Grant Likely , Rob Herring , "devicetree@vger.kernel.org" Subject: [PATCH v2 1/3] usb: host: xhci-plat: add xhci_plat_start() X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: HKXPR02CA017.apcprd02.prod.outlook.com (10.141.129.12) To SINPR06MB331.apcprd06.prod.outlook.com (10.141.110.17) X-Forefront-PRVS: 0225B0D5BC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6049001)(6009001)(428001)(189002)(199002)(83506001)(102836001)(50986999)(19580405001)(83072002)(83322001)(79102001)(87266999)(87976001)(54356999)(65816999)(85852003)(65956001)(80022001)(101416001)(64706001)(20776003)(47776003)(19580395003)(77982001)(64126003)(21056001)(23756003)(33656002)(81342001)(76482001)(31966008)(46102001)(42186004)(4396001)(36756003)(74662001)(74502001)(99396002)(86362001)(92566001)(92726001)(81542001)(50466002); DIR:OUT; SFP:; SCL:1; SRVR:SINPR06MB331; H:[10.161.20.55]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yoshihiro.shimoda.uh@renesas.com; X-OriginatorOrg: renesas.com Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Some platforms (such as the Renesas R-Car) need to initialize some specific registers after xhci driver calls usb_add_hcd() and before the driver calls xhci_run(). So, this patch adds the xhci_plat_start() function. Acked-by: Geert Uytterhoeven Signed-off-by: Yoshihiro Shimoda --- drivers/usb/host/xhci-plat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 9b645ae..1389370 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -38,6 +38,11 @@ static int xhci_plat_setup(struct usb_hcd *hcd) return xhci_gen_setup(hcd, xhci_plat_quirks); } +static int xhci_plat_start(struct usb_hcd *hcd) +{ + return xhci_run(hcd); +} + static const struct hc_driver xhci_plat_xhci_driver = { .description = "xhci-hcd", .product_desc = "xHCI Host Controller", @@ -53,7 +58,7 @@ static const struct hc_driver xhci_plat_xhci_driver = { * basic lifecycle operations */ .reset = xhci_plat_setup, - .start = xhci_run, + .start = xhci_plat_start, .stop = xhci_stop, .shutdown = xhci_shutdown,