Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1334424ybh; Thu, 23 Jul 2020 06:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+mFSsvkU/TBR0OQYX6/OIpmd7poi4bjtlz/eJlPP32hoYTskBXNBGIuH/u8IVg2KVx19N X-Received: by 2002:a17:907:2715:: with SMTP id w21mr4134531ejk.229.1595510805239; Thu, 23 Jul 2020 06:26:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si1843895edq.465.2020.07.23.06.26.22; Thu, 23 Jul 2020 06:26:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=eEbHXRdH; dkim=fail header.i=@synopsys.com header.s=selector1 header.b=cKX5L4Bi; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729123AbgGWNW6 (ORCPT + 99 others); Thu, 23 Jul 2020 09:22:58 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:56344 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728066AbgGWNW5 (ORCPT ); Thu, 23 Jul 2020 09:22:57 -0400 Received: from mailhost.synopsys.com (sv2-mailhost1.synopsys.com [10.205.2.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 4046FC0750; Thu, 23 Jul 2020 13:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1595510576; bh=TCKAM6fOQI8fPcbDKZE86qRK1ALFRTrqacEw4RA8wQ0=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=eEbHXRdHPjWAAlDpGXGf3lHe+wPl+upIuuWtoUJJvGzLYbh8B1LW4XOt+zs7d97+6 Ecpb4EwbAvmWZZewdpGmmTEoM9r7MxH/vu25tcjQbPVL4ym++f2pKBOMbRrW1WIz8F hgVvW84ambQyqpNdPdFDnHsHZ7JO+mQpZzw1FPCPUynRqL1si+KqRy3CZohQBvyACP ZfcMYdiJe57i9bnhM/eToUg6bfEN/bTWrnKIh2Bp/RJ7alSBPLlZdfW24/fHS1QRvV 8bFZenn7VNynTc2t0SvIl8jsgBpBBN8VK3w1WDsakqeOydrQ1hl/wvVASw+UCqiMv+ W57844C2750Yg== Received: from o365relay-in.synopsys.com (us03-o365relay1.synopsys.com [10.4.161.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 3C957A0096; Thu, 23 Jul 2020 13:22:54 +0000 (UTC) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by o365relay-in.synopsys.com (Postfix) with ESMTPS id 86A72800CE; Thu, 23 Jul 2020 13:22:53 +0000 (UTC) Authentication-Results: o365relay-in.synopsys.com; dmarc=pass (p=reject dis=none) header.from=synopsys.com Authentication-Results: o365relay-in.synopsys.com; spf=pass smtp.mailfrom=hminas@synopsys.com Authentication-Results: o365relay-in.synopsys.com; dkim=pass (1024-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="cKX5L4Bi"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IrsP04SUqcLSCjXoBZ2au1H92/l+PTIrc4jPFj4WhoaTTQgYUOFounOoiVTKqGmxTCXW0xQ/udwtW9g/g2OqXUN80vpxlMwbPr8+P3iIhe6MNIU1T/JCApD+VG5dKj4O6/s693wMTUbu0pnkUN4q4xKCek8U3cwQfWKh0/89+7RpruANOeebOkXzPdBo5ZOmr9mA5B7iiVQOrfgbXylH1SFXqOk/JxFAcyVdnnK4IS0o6LivXSOCHgoUdkGor2cE57Eme/kBtz82IGrlnOS+Di0cvgm21IY3A9EOHG7nQ7m54OWgH/qvRoo5iJAhC/b7UN3jn06Y5ao5dfingWVUAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TCKAM6fOQI8fPcbDKZE86qRK1ALFRTrqacEw4RA8wQ0=; b=ilw0mkZFCvqaQeCsH+gaKQ5PNr5hpBhTnCA6lGTRbtJWp+14MteClciclD/u3Pq09/fcnWNsqeZkZsIZ7jK68aJ/mc0Cn2kk4UXkziq+SLI3Q/7L3QGVpO4pNZuXJqOKhLS8SRDPEcAD0yDs3xYx8UQBqycR9EwvdH80txRnZGYwHBUDy4y1iAm4xgjTU2NZx9npAxRYuTfsPDpdyF27Stiy7h7FeMxdWlHbWm7MF58u2CaoBp+ZB+Rz+JXIoiU541p9SUSJ8TwECHugGgWL8CxEfjj8D2qmAz7z0lXjn+Q0lcB23M0+2gWYXMKtg7JlkIfCTrPHn4UxoaiTus6EVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TCKAM6fOQI8fPcbDKZE86qRK1ALFRTrqacEw4RA8wQ0=; b=cKX5L4BiR/I/V8C8YeH+IzcaToqYD3xuh4xvLP11dN4q1HyC34fGKf9gzddgjF1TWiMWXFkcFFmMmAFSAzp1nL4gcd2KsoZJ3aZO6uqY6hEt16FN0S1nqpcGmi8UKEIxSIVH4xegHWFzHlHQVAxFQ5LzdRfqmDetwDf43GgSv/s= Received: from BN6PR12MB1428.namprd12.prod.outlook.com (2603:10b6:404:21::16) by BN6PR12MB1346.namprd12.prod.outlook.com (2603:10b6:404:1e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.23; Thu, 23 Jul 2020 13:22:51 +0000 Received: from BN6PR12MB1428.namprd12.prod.outlook.com ([fe80::836:5425:da4d:cc8]) by BN6PR12MB1428.namprd12.prod.outlook.com ([fe80::836:5425:da4d:cc8%4]) with mapi id 15.20.3216.023; Thu, 23 Jul 2020 13:22:51 +0000 X-SNPS-Relay: synopsys.com From: Minas Harutyunyan To: Felipe Balbi , Minas Harutyunyan , Martin Blumenstingl , "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "marex@denx.de" , "stable@vger.kernel.org" Subject: Re: [RFC for-5.8] usb: dwc2: Cleanup debugfs when usb_add_gadget_udc() fails Thread-Topic: [RFC for-5.8] usb: dwc2: Cleanup debugfs when usb_add_gadget_udc() fails Thread-Index: AQHWTj+WdJa7ovkKfUm4iPONUJfWFKjyUoGAgCL0YwCAAAVWAA== Date: Thu, 23 Jul 2020 13:22:51 +0000 Message-ID: <29131fea-55c2-c87e-9112-6f6d3469e4f9@synopsys.com> References: <20200629180314.2878638-1-martin.blumenstingl@googlemail.com> <0ba4b7ce-3551-0453-bac7-4d86c53dd2e8@synopsys.com> <87eep2o027.fsf@kernel.org> In-Reply-To: <87eep2o027.fsf@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=synopsys.com; x-originating-ip: [198.182.37.200] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f094f031-c2d1-40e4-8b92-08d82f0b8019 x-ms-traffictypediagnostic: BN6PR12MB1346: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2OO5J4+l0eAeTDgjeoFu42lMk+HZz9DwmZuz5LY5GYW5GYL0hdQceWQR2qV6eBd4N3nYeX0fSpOaIsj/clz/hLPgxYPRRHhyTtQEEklV7RcqTc68DmdvKG7Yfp+OhPyy/YlbB4IWn/E4loN6POhbbMIawbDqtTvk2xCMYoTm44h0HTc3ZYsi6Lx/OZezXpE7p8Qvqjoy9JPt/6am4KO/FRvZMM/JWZ+BX2srjbrOtWjA+7wG2iBIWZo85PSXnJOngVn34dExrnRcdVSzXjiFKaGGQzyPfISHz8uxtXWnrOZyzuJby0velKuquMptNTh6Ad8egh+9tahXzFtMZ9VyoTIiWkuzHDbU9EPGvPoN4B0m/4o731vSxHL7daLYFV6y x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR12MB1428.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(39860400002)(136003)(376002)(366004)(346002)(396003)(4326008)(53546011)(2616005)(316002)(54906003)(2906002)(110136005)(8936002)(6512007)(6506007)(71200400001)(36756003)(8676002)(5660300002)(31686004)(86362001)(66476007)(6486002)(478600001)(31696002)(91956017)(66946007)(66556008)(64756008)(66446008)(186003)(26005)(83380400001)(76116006)(43740500002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: qDgbF1iSS8lm8b6T5u55ri0Le3IG3GgPn8rkUhQSP1/DE14YTk4lum6GirCyYqUTbcGWclVoXNNqUbN/B/LEpq/AA5wf4W+BF2e6vWgoF0zyTbPfQnIvUbJpK2TMM3YrTw8VBrnRxG6N61n5GR5DlB7KZF3ZsDsd/niYydScRYGfa8SMn8XjpVLXArmpdkhJ9gyKEe/9zRYm8s2ezn/s8mGZz9sWr6AbombZUyzXC3h5hvKCyU4ESBz/p8QkQA3Oy4gJUj80BYxDAM/m6W/dXmtHhozmyz6rH91X/z75b7RQLG7a7PdQv3luaFi/pKFvHvZyZnWITT3e+5BhOXpIFP/2oMG2pAZoRM3RczZD+O2JgxbMHtxN/pjcfJqr18/lKY0RHOqfW0AObIwyKZvYSx2+nb1R9YjuWIZ+xICpFQmUUmsnMDtBTHU18P39f+qUoYYHKcOqIECWHn5sLR9r8zVqcWg4avEGctbllh48XAFBZ82eTOI7XoHFcR910Hjt Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: synopsys.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR12MB1428.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f094f031-c2d1-40e4-8b92-08d82f0b8019 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jul 2020 13:22:51.1489 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c33c9f88-1eb7-4099-9700-16013fd9e8aa X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Her1vVr/xr0xOtMUvuKx+NFRgpbDoeVNNOmJLeT8NKkh7+EX/IattiE8mov0/fjx61osrqd9XTFGksaGTU+szg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1346 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-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