Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2553647imu; Thu, 29 Nov 2018 06:48:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/W6AueK6nz6RIqUHlTGmL/g6SwFCuJHgY5PNCHFckN2VaPA47ILC6LRxippipc+S6gUMhR8 X-Received: by 2002:a17:902:a9c4:: with SMTP id b4mr1762995plr.298.1543502936241; Thu, 29 Nov 2018 06:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502936; cv=none; d=google.com; s=arc-20160816; b=QO91C3PBZbJjJYx2PLbf1137zZ/vTWp4j5SA9sK0cqU/dPkH7rTj5WihkBdbQBfZf5 fgGOH8d+oIifb1728WCEeYYgf+KSfMX9IuNQArMCVaC7ConkgUOnTVCXMFmJyKiLCVQK hooy2QpXwM4aF5JhRGgDTWaAvuaQKKhBz0OAPSPSWCF8e6spTw906FUZzcc+JpIeHM5i ekXPlWb0OvS9w1M63a/0bPD1ii8RrDqYx7/Bd73C4FPaZVcibNSwbFPrRBIyQ6B83z6S HlGiwWkUzcIl9QOdzx7XKUOYalwD/6q3Y24+evf7pevtRU89vioKjdZq6Lg3KkM1TwU+ wStA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6R1BKVkuXicnxHSHr8/RcRbokhzXdhlX6vv7yLB+gZM=; b=Jma1q4JUmHO1DPTCPWMUHMI95yM4i8WDXHbSap6hwPXzUuNSgzingXji4KnkskNrFt qcpEM01AEO1VQXllGYJSBRNyGhHb/w/T4xMyqDAJE/NucJ7NrcPK/rD71J7D/DGQQ0mk CTK+W7U5Q6F9zyYyLkV8jxAyxCaZVcW8pXe/JmyYLYWirVKUD3cFQxHeCgVTEOzFeCHT pnDr3+vLYHBK8GN539hEBcltg+qP3J14mFD32WZHjDOh73Oepozq7599d7pgqHKqVYNv Jx5BqKLgB4uCHUaxObyypnVSrfF5xHwa5pH8LHDm13ZWTH6PCsVacbK7g2OTjheg4Ocd osjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sZ7+xKPj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x128si2296336pfb.128.2018.11.29.06.48.40; Thu, 29 Nov 2018 06:48:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sZ7+xKPj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733244AbeK3Bbu (ORCPT + 99 others); Thu, 29 Nov 2018 20:31:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:59564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729984AbeK3Bbt (ORCPT ); Thu, 29 Nov 2018 20:31:49 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E289A2133F; Thu, 29 Nov 2018 14:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501577; bh=xSPLUkJn3bi8z230iOAkgWsZ8h/tS81BWx3Lk+PbmJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sZ7+xKPj+aetrwMAhgqywXgrbI+J9yfh9DKH1mto3EtIBdvLF3m3wZoevv1WyLKL/ 4+ynB1lCXtZdH5WXJl6xKbQqVySnEMc9JpBPbpsKWPLI2htxIwSyUROrNA8fFMRtq0 7tUTaTvi8YXAMDT7H1JIUY9QgI7yNp8ECKPIqzhw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Felipe Balbi Subject: [PATCH 4.14 009/100] usb: dwc3: core: Clean up ULPI device Date: Thu, 29 Nov 2018 15:11:39 +0100 Message-Id: <20181129140059.735656035@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko commit 08fd9a82fda86529bb2f2af3c2f7cb657b4d3066 upstream. If dwc3_core_init_mode() fails with deferred probe, next probe fails on sysfs with sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:11.0/dwc3.0.auto/dwc3.0.auto.ulpi' To avoid this failure, clean up ULPI device. Cc: Signed-off-by: Andy Shevchenko Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/core.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1276,6 +1276,7 @@ static int dwc3_probe(struct platform_de err5: dwc3_event_buffers_cleanup(dwc); + dwc3_ulpi_exit(dwc); err4: dwc3_free_scratch_buffers(dwc);