Message ID | 1502276124-27816-1-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Geert Uytterhoeven |
Headers | show
Return-Path: <linux-renesas-soc-owner@kernel.org> 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 1B247601EB for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 9 Aug 2017 10:58:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2155A289C9 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 9 Aug 2017 10:58:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14D6328A35; Wed, 9 Aug 2017 10:58:42 +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 09A81289C9 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 9 Aug 2017 10:58:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752125AbdHIK6j (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Wed, 9 Aug 2017 06:58:39 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:7393 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751872AbdHIK6h (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Wed, 9 Aug 2017 06:58:37 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 09 Aug 2017 19:58:35 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id D65A44DBD7; Wed, 9 Aug 2017 19:58:35 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.41,347,1498489200"; d="scan'208";a="252982531" Received: from mail-ty1jpn01lp0177.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.177]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 09 Aug 2017 19:58:35 +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=Awj88iQXvZnS0FtJEVsH1vQzIbzvNryRcEX2G42+rKA=; b=IOelp/XY2wlowZ1DtZbLc0wk+ytlgQVhy7+8C/7UNTQomgDYlrxVdjqtVf/dUg9JIu5rUpCOYROKQmqYzHAKbgtZgaIsdAGKLHv4sjXdYsprwfIghG45Y2XkbfpoocesbSL4NiCvXPCbQarD1nV6DFnfaXabwC+j7FOkJG+urUM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.138) by TY1PR06MB0990.apcprd06.prod.outlook.com (10.164.99.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16; Wed, 9 Aug 2017 10:58:33 +0000 From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> To: balbi@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Subject: [PATCH] usb: renesas_usbhs: gadget: fix spin_lock_init() for &uep->lock Date: Wed, 9 Aug 2017 19:55:24 +0900 Message-Id: <1502276124-27816-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: SG2PR06CA0107.apcprd06.prod.outlook.com (10.170.138.33) To TY1PR06MB0990.apcprd06.prod.outlook.com (10.164.99.24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fe5b098-51a5-4e4b-832d-08d4df15947f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:TY1PR06MB0990; X-Microsoft-Exchange-Diagnostics: 1; TY1PR06MB0990; 3:lCpaKMNKEo3usbAbxP+1MiOtVXsdFEwx45V6myF2XEjR9/q4brDEGKXqJlph2BoCC3lGl6dSZWKrxeTNntLBU0ao6TKFQk+TuY/n46v2EEjFS9CnYxSwsJU9Xi9mIx45gVd04WCVXsd1SQldMhwittZn+X2REIfLAYekXxRy3NJbVu+WBcbqONnv8DW11TRmqg09JiFbR9jrkvzyAFYeGGAdI7kti1kyV44s7vc22cYttBUa9/hv0GmGwJlPQM5j; 25:1y1YYy8Nlj5wLB2UfGU6GZMn/xEtCVsO0NzCmYQ7001RNdKc281Lh3G4/1t4cK9+WtEzIIUyxjb2UsVrlwdNZpR35FtHZTloJVssJz0Egx/C0Vv/LOoiYjgXkJpw4WGtR2WXs1jqKvTVbLIKDucWS9bdE0U9deL9hP4HRNXdFmqe98SpkHontFlpecGPNo+Ms1/1yVRDEPuQi2hhmbYCDBiitLtRqk5BOW6sPUf1iLEriDM5nSEgVsn+g71w2WBksV2UCKT70nwfL9oYEoCOQKU+/K5G9TE3PxctoDDbQm6BJU1NIPhvzElzvMTluobwK+UL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oFPXJor8TMDcLiUEa3mFbr4NzxfK8MI/PhAmWbynQC0b5pwjmQekwGsLQa6rS8ezy/aGybopu5wrFWuH+0= X-Exchange-Antispam-Report-Test: UriScan:(21532816269658); X-Microsoft-Antispam-PRVS: <TY1PR06MB0990D6E99F2EFDEB61F61785B88B0@TY1PR06MB0990.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:TY1PR06MB0990; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:TY1PR06MB0990; X-Forefront-PRVS: 0394259C80 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6069001)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39860400002)(39840400002)(189002)(199003)(2361001)(78352004)(2351001)(66066001)(33646002)(47776003)(81166006)(2906002)(42186005)(189998001)(7350300001)(81156014)(305945005)(498600001)(50226002)(105586002)(106356001)(8676002)(6512007)(6116002)(6916009)(110136004)(48376002)(5003940100001)(42882006)(25786009)(5660300001)(101416001)(38730400002)(107886003)(6666003)(97736004)(7736002)(6506006)(68736007)(6486002)(4326008)(50466002)(36756003)(53936002)(3846002)(50986999)(3720700003); DIR:OUT; SFP:1102; SCL:1; SRVR:TY1PR06MB0990; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:0; A:0; LANG:en; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnost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eNqiuCykNzLHxU3iPG4bQDUwRQpIM2sMDplboYp92/AzmmswYmjYXP8s8a+SWIUUm4MY0Q9O2bQ1cWPrmRtggTdHEjCkX5u5UA2eibbbhQmUQk8Ryuv39wb/3/YqCmSO9/Lpqdmw==; 24:fvVAokd+dpdqSx8Yjal5qt3Jk7gdSLfz7saU4ykZQdmyGHwrg73vCxEjJvaxF6uwRWKzeZn9XuPFb2fV+3AMiH0e0InmRAi0uwysh8FVQQ4=; 7:mhYVHhLsgsHntfF7/PZ2Ia93p1uXxYxp0BDzjo4QgAzfu10pY2skiWytzScxrDONN0nxbWA8G3fw+/n6YUrJa5TyWFS4cfzsBPFu3dubo6M/l2Ruy6rbKhsz5kN/Cs7phvUr/TaYb4/RjQOJgjl26OEmMOXIrOrWEBUTVuEqJMpqfO4Sulky4bdW6mmIOGi7ZyUcBiGyoimR2Bz9dvdF9pAG7VDWJuhNgdFLGHwdvO0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; TY1PR06MB0990; 20:ImCtQ2L730gufdZcFQsaZDUq25ZNcOscNBOtZby6tEu6MyzD3uKHWfr84TVt/IMNm5iJXWBk2LrnBCqcWjQ9aDe3zWblZ1RbnjHgMuGq2B/AbJlODHED77hMPwVBxmPuEcvUjDKkvIiYnwJ2lPKBuK0gaeE3LzhYAARk7VOalcA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2017 10:58:33.4495 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR06MB0990 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-renesas-soc.vger.kernel.org> X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 2c8161b..5984fb1 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -1082,7 +1082,6 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv) ret = -ENOMEM; goto usbhs_mod_gadget_probe_err_gpriv; } - spin_lock_init(&uep->lock); gpriv->transceiver = usb_get_phy(USB_PHY_TYPE_UNDEFINED); dev_info(dev, "%stransceiver found\n", @@ -1132,6 +1131,7 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv) uep->ep.name = uep->ep_name; uep->ep.ops = &usbhsg_ep_ops; INIT_LIST_HEAD(&uep->ep.ep_list); + spin_lock_init(&uep->lock); /* init DCP */ if (usbhsg_is_dcp(uep)) {