Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1986947imu; Fri, 14 Dec 2018 04:07:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/WTzOPoOvxO57JRzPogz3D0E9fQQqvF0dlmZsWp3E6K56Wix6grh8Rrvy4hxoqJjmApm50/ X-Received: by 2002:a17:902:7b88:: with SMTP id w8mr2597521pll.320.1544789232974; Fri, 14 Dec 2018 04:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789232; cv=none; d=google.com; s=arc-20160816; b=QESzHxTalG9VHXrP+NUbGNIXzFy6BF/gTiYMol6/Jot0UqVIgah1LV2QVyd5QWQNa7 1wuPAbA9G6bT+mVC1Fd6hsGhby9uIO+ytpJfVDSMXc2PxC90hL6eUqvTSUrP7wFKNl+h ZgAtDi33QX0sIM559VLRFKADFHfsgoZAO4kRuPauPRcWisRfIetDuUaSfjwRZcMmJd2C DYb6ImSCDxy8SFe+1hqHXNZLxk3ERxQSrAtlHNa8l+iTOEe6v7p5yPeM/DKpmNpEmIZb ifCYo0iTQ9u3XKo4XLcyYOtr+Sj9K6j+GzXmVbmGbIKx55Xj6ritW/yuTipIpoBX1tKb kHGQ== 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=P6XOKg/FNYjNP55meIDFipBMiejBSrvZIOm5eeWUHoI=; b=RmCo3KZHmNFWQSnYfgkW/hsR1kbOgq3xp2woDy+yykFqgRvcbkG5VAejw2OQeGaGGr WRml3LT6r1J4vZzMaUIoyiSdYTG2sFSC2tj5WIsgla9tIc22jOjyUq/VT8QPMyMJ4yFq rqz5DcZm1cbt/pgk8R25X7Grp9JABQuloLAwHANS6JDNFtnWxCynxX8cUHigj5qYFR/t LC9C2ya4hkagQSWiuWC+r3mmLWe7TmVjYhMJ7NQvPy2qeYIga9SSGcpu40+g7BEE9pTQ 09ilcajMi55tt4tVsUMXHGrZAgKP68oSxIn5LPcAJh0gwhQI7p5N6jBVqXeOJfV36qW8 ARHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D7sydbS8; 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 v16si3777735pgc.519.2018.12.14.04.06.56; Fri, 14 Dec 2018 04:07:12 -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=D7sydbS8; 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 S1730575AbeLNMEs (ORCPT + 99 others); Fri, 14 Dec 2018 07:04:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:49480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729793AbeLNMEn (ORCPT ); Fri, 14 Dec 2018 07:04:43 -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 9E2C421479; Fri, 14 Dec 2018 12:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789083; bh=npGFFjQ6vs5Fe6eI9Z+/gDVQFUM6LZdPzbqy7LyfRzA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D7sydbS8DgagiOb4lAXMfLOkc0FUHquo3bsaLt4NIBirJ+p1Iv4vSExG06NwKlcn7 NlmzMl9E9i5mPxDMNGKQ05D5sx7Jexpwa8N9VLlbJ5rimfTdifNBzLNZ+FxMWoticy xK6l5lk92xJYFPFrcjyvWL7Q10Di4ZdgpFYPC8VA= 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.19 087/142] USB: omap_udc: fix omap_udc_start() on 15xx machines Date: Fri, 14 Dec 2018 12:59:32 +0100 Message-Id: <20181214115750.537525603@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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.19-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 240ccba44592..33250e569af8 100644 --- a/drivers/usb/gadget/udc/omap_udc.c +++ b/drivers/usb/gadget/udc/omap_udc.c @@ -2041,7 +2041,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; @@ -2079,6 +2079,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