Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2009079imu; Fri, 14 Dec 2018 04:26:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/WIeGpsHMybQFodhzneXPP3rY+luX4xNXdaE/T/DzwvMB3nXqKt4J0zlO9K9QV6ZIAAIrQe X-Received: by 2002:a17:902:7044:: with SMTP id h4mr2663524plt.35.1544790398601; Fri, 14 Dec 2018 04:26:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544790398; cv=none; d=google.com; s=arc-20160816; b=osAgoflnKYa3Lhv3TquOkIl7JsUHqoEU/ODNnMB9lPIsXIXT3ihSMJJUNCMF7uc7/J ZRyQSMNNOtDUDjjaG2KgQlhpVd+pcLwSDo9ERMKnJBf+GcyBumzYnH7Lxc0Up9NFC3+E 0iYpOhpanlOHtiqePg1tINWV0ZfgqUcX18vjHxLsSUjSSZVh7vsyWjK9T7xyqrQHeKil dbwwIYuedwucSwBepo3yqxvT2Y0Bu10p0Q2vWodIeHgPauHQX9uDcG9cpCqhy9UDcArO ZzLKOTN2Z7cjy06KtiC4ImEXwqtDe+1WkLuO2Eb4VR4sp7b3XOXYTsbbysQtqcsu/zx9 NRmw== 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=i141FfYKNWH/IbneVBFBCixaLNopdUWql5pFzdFc4MU=; b=j4vni2qp1a0q2j08ZRixErLuoKhUkYLM+bijgLrMZmliTOfHjiSDICSyurTw+ImOs/ 0hU6kSDbQHI1VFKFYrn/1zUlAPh5Md7tjbw2RJKy2UKoRqg6bxi/V2B3w0w/0m6GBDT6 h1fsrz5DCe2RB+kJgnbqbAiSDN6cHEAgrpl6Hoe4ttXWDQLDVJyyydyou2iwQHa8ko8L TzEGBptd12n4ldZ8t/iOXPh6pGvCfLKPQbpU90DUKvcPss+1LrMfRwG8M9I4a09uhx62 5FGusDXLTjaiX8ebQQ3N8bopUVAglK84MY5D5vVvaYQQE/3WQ5+yFC2jhCqKUqYMiHhL 0QAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HMJ1vSN2; 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 n15si3764053pgk.27.2018.12.14.04.26.23; Fri, 14 Dec 2018 04:26:38 -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=HMJ1vSN2; 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 S1732080AbeLNMZf (ORCPT + 99 others); Fri, 14 Dec 2018 07:25:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:59438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731915AbeLNMMT (ORCPT ); Fri, 14 Dec 2018 07:12:19 -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 E7B63214DE; Fri, 14 Dec 2018 12:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789538; bh=+XMpdV74CbGtc+pioc7TMg416GzGI2CoHPaIK51zUaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HMJ1vSN2O4KB2KYC+DL6ZJPgZ/6qq01R54nk9j67JJFGHgQKineGsAHNiBQV43iiN gVQbOeilndZSNgwEH+/7kQh6/zCJflPT8/81aPP6xyz1vI6Qpzgo08DGKRCK1zZbvI amLDhm7QSGrTESK6UVSOU1+eiN9AD3EPVe+Bb618= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaro Koskinen , Felipe Balbi , Sasha Levin Subject: [PATCH 4.9 32/51] USB: omap_udc: fix omap_udc_start() on 15xx machines Date: Fri, 14 Dec 2018 13:00:34 +0100 Message-Id: <20181214115716.181319045@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115713.244259772@linuxfoundation.org> References: <20181214115713.244259772@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 6ca6695f576b8453fe68865e84d25946d63b10ad ] On OMAP 15xx machines there are no transceivers, and omap_udc_start() always fails as it forgot to adjust the default return value. Signed-off-by: Aaro Koskinen Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/gadget/udc/omap_udc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c index 2a23b21fe153..8f044caa8ad4 100644 --- a/drivers/usb/gadget/udc/omap_udc.c +++ b/drivers/usb/gadget/udc/omap_udc.c @@ -2045,7 +2045,7 @@ static inline int machine_without_vbus_sense(void) static int omap_udc_start(struct usb_gadget *g, struct usb_gadget_driver *driver) { - int status = -ENODEV; + int status; struct omap_ep *ep; unsigned long flags; @@ -2083,6 +2083,7 @@ static int omap_udc_start(struct usb_gadget *g, goto done; } } else { + status = 0; if (can_pullup(udc)) pullup_enable(udc); else -- 2.19.1