From patchwork Thu Aug 1 23:27:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 264161 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C11E22C0090 for ; Fri, 2 Aug 2013 09:31:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7FE444A10B; Fri, 2 Aug 2013 01:30:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G37f8ZUZIzdA; Fri, 2 Aug 2013 01:30:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D04BC4A10D; Fri, 2 Aug 2013 01:28:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 082684A088 for ; Fri, 2 Aug 2013 01:28:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id keYbnThC3292 for ; Fri, 2 Aug 2013 01:28:27 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by theia.denx.de (Postfix) with ESMTPS id 3DD2A4A08A for ; Fri, 2 Aug 2013 01:27:53 +0200 (CEST) Received: by mail-pd0-f177.google.com with SMTP id u10so2464888pdi.36 for ; Thu, 01 Aug 2013 16:27:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=HklxAWvWG61gcn/kgRIfSZqgnojcK14STQGvGGNFedI=; b=M5QtRWtiqnaNgx+e9769Qe/f6GRbcEebw6qIuzVuZi1Pan5+Yj4xHZwTc0oMyZmfGz orr+dx8LkS0YGuwDtfQMmXPzlOYyS4lI+zD25dtbvWE17xXlv297VRZdALCI1rzXGeGW s+1ko2Of60+scD3rB3E+m1GNQOG5X6KShssuyVvIcjMEl09Cwrcf2/RvQKeMbRzs38eD cWSO25kKpVM/G/megGWaAZ/fsWI7iKDQ4kuzXPUB/LEdSUfyDpc0QtBVFLM3KHGc7fUL 9qV1LOz9ZYGvpQcTo1G6T9EVtZlcMr1PRr+vU+M83cnYjryYl7MJFV21wJpDKhtjaYU8 Crxg== X-Received: by 10.68.189.103 with SMTP id gh7mr4414599pbc.142.1375399671599; Thu, 01 Aug 2013 16:27:51 -0700 (PDT) Received: from officeserver-2 ([70.96.116.236]) by mx.google.com with ESMTPSA id 4sm4466668pbw.32.2013.08.01.16.27.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Aug 2013 16:27:50 -0700 (PDT) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1V52HY-0006hr-7V; Thu, 01 Aug 2013 16:27:44 -0700 From: Troy Kisky To: marek.vasut@gmail.com Date: Thu, 1 Aug 2013 16:27:37 -0700 Message-Id: <1375399657-25642-21-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1375399657-25642-1-git-send-email-troy.kisky@boundarydevices.com> References: <1375399657-25642-1-git-send-email-troy.kisky@boundarydevices.com> X-Gm-Message-State: ALoCoQnUzbzRQ0I0j9XHqxl+TZVcFfNeXxLhmzyj8j40oUsH2u5LbfnefUo/HDyRR4iYExwo4Du2 Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br, leiwen@marvell.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH V3 20/20] usb: gadget: mv_udc: clear desc upon ep_disable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de desc is set at ep_enable, so for symmetry, clear it at ep_disable. Signed-off-by: Troy Kisky --- drivers/usb/gadget/mv_udc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c index 4876894..74fa065 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -276,6 +276,9 @@ static int mv_ep_enable(struct usb_ep *ep, static int mv_ep_disable(struct usb_ep *ep) { + struct mv_ep *mv_ep = container_of(ep, struct mv_ep, ep); + + mv_ep->desc = NULL; return 0; }