Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2547133imu; Thu, 29 Nov 2018 06:42:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/WzFbatN2VVn6S5A40Y+ZGX/FtlR0agQDh5w/CEJ/MdwZPj1tWSPFO42O/uvzEXSIhoA8V1 X-Received: by 2002:a63:36c4:: with SMTP id d187mr1436248pga.404.1543502566215; Thu, 29 Nov 2018 06:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502566; cv=none; d=google.com; s=arc-20160816; b=phy9P2HdoKGyIIOaHf8qnOKPuhMcpQNTtN9jFCOllhMK1Dl2gjvIsxPWP/lW9NlzEY svdPRGaEilDpLn+0MPLvrJvTmuyBVkOPro74HbfKAXQTg6MNiKoVqeLEFai0u3tavogA 4nyXoHfm2mkZxUth07BSSpvFX/SN+rehU645JHL7Ebv4SayKFZLCHq1/scsHcQb7hETl 8oM83Fe2eM3Vg+dICQeQ4h/MLcwL1iQ8ZhdF6e47tsniczZCSh+oM+kVfPpqdtaBoYMj xYQ2IkMrmdRpMSRXyFDhEsc9G3WcyVxx5jMYu9yw52uLqf7wVXihMd/aoi+NN546riBb mmoA== 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=uMSpkz/XhwUqTZyJaVaCRU3HyZEjV4NBNak9AZLKw2A=; b=AdlwptQC4x3UyXhxHSf5Aj7YGJLuszZxaqaC7tlMUHg+bvh8ugwA3YpKsUdrcIV1rc Nlkv0b77Z7E6ts+S2v8fen0kMj4RJk+zqY9Et2OhZVpa6tbYlg9Hlr58MMD6+0FB46as PqPyuDu+vzrx+HczkUvoBO5HXvB8ZMF/ulVHGZlQKJKZnDb3uBDwkVZdp+fKc5hP7TXf BhoEKKurTjiNo1UTF6j8RkcxYM1s9KmvAYlGXoYurg5tHARroF/jT+ii6Qa/I6Q5sIo5 z8RUUViWfgPIQ0gKVIIa0NCKW8DJrXaEf7CQxTgC9AREJV8C6HgxABzp78S0NrwNrqZv K0Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S8ShnVcl; 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 q9si2225445pgi.89.2018.11.29.06.42.31; Thu, 29 Nov 2018 06:42:46 -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=S8ShnVcl; 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 S2388275AbeK3Bed (ORCPT + 99 others); Thu, 29 Nov 2018 20:34:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:35752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388226AbeK3Bea (ORCPT ); Thu, 29 Nov 2018 20:34:30 -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 1A2512145D; Thu, 29 Nov 2018 14:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501738; bh=+9YqiN4MKNBiIfnf3gvqhkXod4NhWmsycYOjCPr9u0A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S8ShnVclQf/Fnq+vs3STWcSQR6Z7tYuEWxNBMvQhmCGU6pUW9F9Se2rT2sutZyNEd 186VPOGdQiKiWj7GfSRpo1SPyPMlfpACyYFEkF/vAuqnDtzbVgW2wqRxPAe9Rz9GHo ALt61GYVPRV7MejB/jemLKY2ywekrJRcwPnwmvIg= 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.19 006/110] usb: dwc3: core: Clean up ULPI device Date: Thu, 29 Nov 2018 15:11:37 +0100 Message-Id: <20181129135921.498016334@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129135921.231283053@linuxfoundation.org> References: <20181129135921.231283053@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.19-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 @@ -1499,6 +1499,7 @@ static int dwc3_probe(struct platform_de err5: dwc3_event_buffers_cleanup(dwc); + dwc3_ulpi_exit(dwc); err4: dwc3_free_scratch_buffers(dwc);