From patchwork Mon May 19 10:07:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 4200751 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6290ABEEAB for ; Mon, 19 May 2014 10:08:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F29A20211 for ; Mon, 19 May 2014 10:08:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4D30201BF for ; Mon, 19 May 2014 10:08:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753499AbaESKIB (ORCPT ); Mon, 19 May 2014 06:08:01 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:48626 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753047AbaESKIA (ORCPT ); Mon, 19 May 2014 06:08:00 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 19 May 2014 19:07:58 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id F19C1401C5; Mon, 19 May 2014 19:07:58 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id F2F38180A1; Mon, 19 May 2014 19:07:58 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id EDCCE180A0; Mon, 19 May 2014 19:07:58 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id VAD14761; Mon, 19 May 2014 19:07:58 +0900 X-IronPort-AV: E=Sophos;i="4.98,866,1392130800"; d="scan'208";a="161111825" Received: from mail-hk1lp0118.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.118]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES128-SHA; 19 May 2014 19:07:57 +0900 Received: from [10.161.20.55] (211.11.155.147) by SINPR06MB332.apcprd06.prod.outlook.com (10.141.110.18) with Microsoft SMTP Server (TLS) id 15.0.944.11; Mon, 19 May 2014 10:07:56 +0000 Message-ID: <5379D7F8.5060604@renesas.com> Date: Mon, 19 May 2014 19:07:52 +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: , 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 1/3] usb: host: xhci-plat: add xhci_plat_start() X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: SINPR06CA015.apcprd06.prod.outlook.com (10.141.109.45) To SINPR06MB332.apcprd06.prod.outlook.com (10.141.110.18) X-Forefront-PRVS: 021670B4D2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(6049001)(428001)(189002)(199002)(20776003)(47776003)(4396001)(81542001)(79102001)(36756003)(65956001)(64706001)(66066001)(80316001)(99396002)(83506001)(92566001)(31966008)(92726001)(74502001)(80022001)(74662001)(19580395003)(19580405001)(85852003)(54356999)(87266999)(21056001)(33656001)(77982001)(59896001)(86362001)(65816999)(87976001)(50986999)(101416001)(102836001)(83322001)(64126003)(42186004)(81342001)(83072002)(76482001)(23756003)(50466002)(46102001); DIR:OUT; SFP:; SCL:1; SRVR:SINPR06MB332; 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. Signed-off-by: Yoshihiro Shimoda Acked-by: Geert Uytterhoeven --- 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 0f5f4c8..561d07e 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -37,6 +37,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", @@ -52,7 +57,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,