Message ID | 1522671694-10229-2-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive) |
---|---|
State | Superseded |
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 09374602C8 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Mon, 2 Apr 2018 12:22:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC70E2874E for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Mon, 2 Apr 2018 12:21:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E128828A48; Mon, 2 Apr 2018 12:21:59 +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 484782874E for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Mon, 2 Apr 2018 12:21:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751281AbeDBMVx (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Mon, 2 Apr 2018 08:21:53 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:37757 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751213AbeDBMVt (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Mon, 2 Apr 2018 08:21:49 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 02 Apr 2018 21:21:47 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 9AA5C89B2C; Mon, 2 Apr 2018 21:21:47 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.48,395,1517842800"; d="scan'208";a="275594041" Received: from mail-ty1jpn01lp0184.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.184]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 02 Apr 2018 21:21:47 +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=1nzcv70S00IKwq5ZnaU78DqnMHGWk8eZeqs2w+Qv7dE=; b=O9jLHH+Ebar1AG50JfK2qjfGtoJszIHbBwgdybFn1P+HFkw86DB4j6/ILXpiOS/gHjfV++5QyzFRTjI9cuze3WzwarZ6UUpCj6/mH6eJpd+Ipx/9yCDyqzvHlGDN62l7nv/7xpyz3lmW3Y0/JphiTB4lAIozKQaTdiUXMSv45Ak= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.138) by TY1PR06MB0990.apcprd06.prod.outlook.com (2a01:111:e400:59f2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 12:21:45 +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, stable@vger.kernel.org, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Subject: [PATCH 1/4] usb: gadget: udc: renesas_usb3: fix double phy_put() Date: Mon, 2 Apr 2018 21:21:31 +0900 Message-Id: <1522671694-10229-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522671694-10229-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1522671694-10229-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: TY1PR01CA0141.jpnprd01.prod.outlook.com (2603:1096:402:1::17) To TY1PR06MB0990.apcprd06.prod.outlook.com (2a01:111:e400:59f2::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 48c0a2b9-f06c-44a9-4e30-08d598944cc7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(2017052603328)(7153060)(7193020); SRVR:TY1PR06MB0990; X-Microsoft-Exchange-Diagnostics: 1; TY1PR06MB0990; 3:jDsMOLxy+XTGZnPbjJLjfZWi3fVnojHjtlVnm1WFtQdYp7hy4gfOROOEor8dq8tGnC5FHK0Z3N+mfQ2Jr7LtqEh44rnO/WCNZzVUQcoG+pbnFIP+ebGUBHcKTY7ChScNzYx1MY7jzxK1PJYS3S9X2ezCH+1Ju2I/Rp14CA8Z35p4a9dpegnJDna24fB9kMle4CRqsGQiDLuLaa1OazAcS888GlF8zdCPrbxlY+XM2QgrWSIHlYThbwwkTqt+StPm; 25:qlREA1jKviWDkLOT10p3TK83OSO6x2pIPG0ajWnGZy7WVaavKR5MTspiVJWT5y909HP9rdgESKSrblj6YN3HuqnPyRy/2mEKF6ewnldXmRYZ6CnCXFfsalVBTo+p9yKNYgIDGZTNdjkT1jzZdzzHbN4tvPrBvrJeZdDkYGGaTzNxsl4hDjvDVH72ifSd3H+ZhgbgIQnC9ckvMBXzR4D9nyg/5asoCqbqAREH1b0k1lHJojnQQTg8nM/nCX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JufjdTqjqkplaJndkl5hBdmtqMnotNKQX9hIFtkgSA2xZcONUNxbkvezwxJLxaF8VXzvUBaDVGOrMPczgQKpfRJLmIYDK+aExtYiqJxzRcldQPNz+kolu1QEwoAALbfHlXtGQm+6TvFYkB/upp29UxdacSza1uuvprcF X-Microsoft-Antispam-PRVS: <TY1PR06MB09908713FBBEDF92260565B7B8A60@TY1PR06MB0990.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(10201501046)(93006095)(6055026)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:TY1PR06MB0990; BCL:0; PCL:0; RULEID:; SRVR:TY1PR06MB0990; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(979002)(6069001)(396003)(376002)(346002)(366004)(39860400002)(39380400002)(199004)(189003)(81166006)(52116002)(81156014)(50226002)(78352004)(8936002)(476003)(6116002)(3846002)(68736007)(4326008)(2906002)(8676002)(956004)(2616005)(486005)(6666003)(6512007)(6916009)(51416003)(53936002)(11346002)(446003)(486005)(59450400001)(106356001)(36756003)(107886003)(2361001)(6486002)(42882007)(76176011)(66066001)(47776003)(16526019)(26005)(7736002)(305945005)(50466002)(105586002)(48376002)(498600001)(316002)(97736004)(16586007)(6506007)(386003)(2351001)(5660300001)(25786009)(3720700003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:TY1PR06MB0990; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:0; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; TY1PR06MB0990; 23:se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ascii?Q?xqOZp0vjRmNawld3Rca7El/R71VNs9PsprFIXsnmlEkHKG/lMHOyPqo1UKb6?= =?us-ascii?Q?qFy70+MPLdwh9fKmnGd30puk8DV9XwUceOf5cB5I/mYw2MSYLVcPoOxOjsuo?= =?us-ascii?Q?cviY4RXGTdELl0ZHZiBSUdKFh7EH2/lOyS3wJmHDZG1fPsLDs+MqVpnNOnqL?= =?us-ascii?Q?Lk71NcXTCoZglQ+53vvg1GizBRkO2DmNsMXLxYeQU6TC6XQ3DTH19WW5ohUU?= =?us-ascii?Q?NxHoik5jc/jwLswstYOX5hSp/MvaAzHj42scWmEfP9D2NcrtF73T4k4+wFQR?= =?us-ascii?Q?oIuG6ZBXY3DLx50TUMwEZza2JHAngWjQ/3VXfwO05NFt/GI5UmDXUoHuCuTm?= =?us-ascii?Q?TQVRxMx1dDLyGSGt89vzsvpoy8K4C+LlC5ACrDuYxHp8zzE3ZgfLL200Fk/q?= =?us-ascii?Q?B0Uacb4BgMSyN3hxXiDoBCYu8keUTRBMOOjf6SqcpPhLYgG7x85seSZZOWKh?= =?us-ascii?Q?6I1cAFdW8fCZOATznKlIpPMEt3gSKwBDVxOPT2EdvwwFiMyC7yA2Hs9rND70?= =?us-ascii?Q?7p13XzZYQ=3D=3D?= X-Microsoft-Antispam-Message-Info: PzBdH3tFvkM0MBvVBJHr5Kv8TefAQUv+DL7lkDvhKGjuIvf4K3DFJvwLEMEE4hJDqlUCQMGj4KdEdkBdLyqUFoOzdICP91Op1F9WimooF01cMoUQ06KDmnr5QovGLtp+85SW1vJDUYPACRQJ9834eing/4ltq4LeqU4da+QX42AXfOz7wmCetFLE6n6oa1Uu X-Microsoft-Exchange-Diagnostics: 1; TY1PR06MB0990; 6:MabbkYBucKQfcUq/tm0f8dtdKTZvluRKMeqAvoP/y4qQSqSj9OtJWe1ODBkq5g49papRZtEloG2R32tFh/viJl5awfjVtCzqIatlO22oYZE0A0ghhIFBoBatgHhREC4zHH0ryCd2aLVIDzCHTI9Nll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wZrA1kSSnQEmxTphOokmEWw8HAdVjWF4s8MpejH/MDTRoOmugL70= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 12:21:45.2880 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 48c0a2b9-f06c-44a9-4e30-08d598944cc7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a 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 |
On Mon, Apr 02, 2018 at 09:21:31PM +0900, Yoshihiro Shimoda wrote: > This patch fixes an issue that this driver cause double phy_put() > calling. This driver must not call phy_put() in the remove because > the driver calls devm_phy_get() in the probe. > > Fixes: 279d4bc64060 ("usb: gadget: udc: renesas_usb3: add support for generic phy") > Cc: <stable@vger.kernel.org> # v4.15+ > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c index 409cde4..78a12a5 100644 --- a/drivers/usb/gadget/udc/renesas_usb3.c +++ b/drivers/usb/gadget/udc/renesas_usb3.c @@ -2408,8 +2408,6 @@ static int renesas_usb3_remove(struct platform_device *pdev) renesas_usb3_dma_free_prd(usb3, &pdev->dev); __renesas_usb3_ep_free_request(usb3->ep0_req); - if (usb3->phy) - phy_put(usb3->phy); pm_runtime_disable(&pdev->dev); return 0;
This patch fixes an issue that this driver cause double phy_put() calling. This driver must not call phy_put() in the remove because the driver calls devm_phy_get() in the probe. Fixes: 279d4bc64060 ("usb: gadget: udc: renesas_usb3: add support for generic phy") Cc: <stable@vger.kernel.org> # v4.15+ Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- drivers/usb/gadget/udc/renesas_usb3.c | 2 -- 1 file changed, 2 deletions(-)