From patchwork Wed Nov 7 15:00:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 150403 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5275394ljp; Wed, 7 Nov 2018 07:04:51 -0800 (PST) X-Google-Smtp-Source: AJdET5cAKgk5XL2v0dc/WLP8tmtE6OdiPY87A3kNWk6pK9V9SFDkvuzVm9dpt4hSvhjHs/f1dW3h X-Received: by 2002:a17:906:c149:: with SMTP id bp9-v6mr385240ejb.82.1541603091012; Wed, 07 Nov 2018 07:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541603091; cv=none; d=google.com; s=arc-20160816; b=SIBnIV+mO1502uDZLGsXR2h9l0YcMWo/bWpJKjU9PFt+FSao0aqmXg25W4rcJVQp8y Oh/GuljIBbVY/lsamNiYAHgHRx8cp9yhOcRqcqmS7bOEoisLLiKLPIyLnepvj4z9m0cQ v99M2Mxoo714RksAMxQnpqIHrwmhR7RdgJgs6HEsCagj1QqHaohwBAT21Eu9doOtePmK cLuOMlS+WxKd5/HAC882l+o9oacTFfY7zJUJMZG1QRL46ZqCnb49EBK4OWdM9qotK7s2 4ipgUXQId5gJIXQAayWXe1GawblPp+9Fto04HqGDWZvybYA3icsdOBCoQR4gbfdz3FN1 aR2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:cms-type:in-reply-to :message-id:date:to:from:dkim-signature:dkim-filter; bh=QnAW+fkZ7Jt2jBqZsgc+tnJr4kwKwYqv0KJ4z2ka7fY=; b=wfCfQSUuPHi2mLWevH4FsfCNV4avojS5+F8xSVuzNgWH9QXJ0YnIBHR2DPi7YbybNT r/43BayUkP/pk1cu0U9Dp4b73cfy5yL2YqbWFyYffj4wgdiN3PRZ1vKWOng/HU6ehBi+ TggiVNTlZGeBUs71aJabYsaK65X8h/2RXXcQT1pDlLZvhJxvw9M2bhKRSnMiGjT+lFXw owRALxf80yqS0WDuPwjV96KEBTjiG1A18135NKKWwZ4kBlrympGul8rU1avNkIf8wVe9 a94EOXpe8yFXB3MXDOfFrhBrVQMc7/G8NTkrqCPSt4UTpj3KTER6wPjSdC8sLE8oY7WY laFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=r2iBAiFO; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id k25-v6si719461edb.363.2018.11.07.07.04.50; Wed, 07 Nov 2018 07:04:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=r2iBAiFO; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: by lists.denx.de (Postfix, from userid 105) id 9E1D2C224F9; Wed, 7 Nov 2018 15:03:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 9FA2AC224EE; Wed, 7 Nov 2018 15:02:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3A7E9C22496; Wed, 7 Nov 2018 15:01:17 +0000 (UTC) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lists.denx.de (Postfix) with ESMTPS id 47B24C224B8 for ; Wed, 7 Nov 2018 15:01:16 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181107150115euoutp0158d7c628fe4a18f086955bd3c272166e~k36W4KJ0J2076820768euoutp01q; Wed, 7 Nov 2018 15:01:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107150115euoutp0158d7c628fe4a18f086955bd3c272166e~k36W4KJ0J2076820768euoutp01q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541602875; bh=/YetBjFRls2FrHLt8pX2/9L5x9FTH1gh3XPyC/A4Pek=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=r2iBAiFOv8K5Bwp6BpFUMb54yvt3RljdtxqDwURMPnOJK01JCN0kx2P0m42UjL1C6 ZwdT8GTV84jWBWiCfdjHHy/YKdJdIbRxHJpWkl/RJHQY13n2mOGfNOQfGW2mBv3vCW z+6JHmjnv3CiqF/e9KZpaRE59nRyOvakggBFlzN0= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107150114eucas1p1075fc1133423fa56c46978d5761c0f7f~k36WgFTVw2020320203eucas1p1V; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 24.8B.04441.A3EF2EB5; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107150114eucas1p22b48cd9da7017c279d4c95bf62300570~k36V9TEO81618616186eucas1p2D; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) X-AuditID: cbfec7f2-a1ae89c000001159-8b-5be2fe3a94ca Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 08.11.04284.A3EF2EB5; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PHT005I7WDUVY00@eusync3.samsung.com>; Wed, 07 Nov 2018 15:01:14 +0000 (GMT) From: Marek Szyprowski To: u-boot@lists.denx.de Date: Wed, 07 Nov 2018 16:00:58 +0100 Message-id: <20181107150105.23165-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181107150105.23165-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsWy7djPc7pW/x5FG7zeqm2xccZ6Vosbv9pY LZ6/u8xksfbIXXaLN22NjBYdR1oYLd7u7WR3YPeYN+sEi8fZOzsYPfq2rGIMYI7isklJzcks Sy3St0vgylh65hRLwUO2in0PpzM2MJ5k7WLk4JAQMJF4cUK9i5GTQ0hgBaPEikUsXYxcQPZn RolTx04wgSRAam6+fMwEkVjGKPHv1lyoqgYmiS+zr7CCVLEJGEp0ve1iA7FFBCQkfvVfZQQp Yhb4yigx7eQlsISwQLTE+smPGEFsFgFViRevloKt4BWwlXh98TsbxDp5idUbDjCD2JwCdhLd PZPBtkkIfGWVuLz6MjNEkYvEw6/drBC2sMSr41vYIWwZic6Og0wQDc2MEu0zZrFDOD2MElvn 7IBaYS1x+PhFsG5mAT6JSdumM0NCg1eio00IosRD4tCzPWwQf05klLi9toNtAqPkAkaGVYzi qaXFuempxYZ5qeV6xYm5xaV56XrJ+bmbGIERd/rf8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279d4c95bf62300570 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107150114eucas1p22b48cd9da7017c279d4c95bf62300570 References: <20181107150105.23165-1-m.szyprowski@samsung.com> X-Mailman-Approved-At: Wed, 07 Nov 2018 15:02:17 +0000 Cc: Marek Vasut , Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [U-Boot] [PATCH 2/9] gadget: f_thor: properly enable 3rd endpoint defined by the protocol X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This is needed to make Windows THOR flash tool happy, because it starts sending data only when interrupt packet is received on the 3rd endpoint. Signed-off-by: Marek Szyprowski Acked-by: Lukasz Majewski --- drivers/usb/gadget/f_thor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 8b3b19feaf..920fa5279c 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -941,6 +941,13 @@ static int thor_eps_setup(struct usb_function *f) dev->out_req = req; /* ACM control EP */ ep = dev->int_ep; + d = ep_desc(gadget, &hs_int_desc, &fs_int_desc); + debug("(d)bEndpointAddress: 0x%x\n", d->bEndpointAddress); + + result = usb_ep_enable(ep, d); + if (result) + goto err; + ep->driver_data = cdev; /* claim */ return 0;