From patchwork Fri Sep 20 03:29: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: 276186 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 9367A2C0103 for ; Fri, 20 Sep 2013 13:30:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 841B94A163; Fri, 20 Sep 2013 05:30:06 +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 BGbvbkh+uyqE; Fri, 20 Sep 2013 05:30:06 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 341F94A142; Fri, 20 Sep 2013 05:29:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 843754A153 for ; Fri, 20 Sep 2013 05:29:47 +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 Zmd64FQme0-R for ; Fri, 20 Sep 2013 05:29:41 +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-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by theia.denx.de (Postfix) with ESMTPS id 2DA2A4A138 for ; Fri, 20 Sep 2013 05:29:37 +0200 (CEST) Received: by mail-pd0-f174.google.com with SMTP id y13so9246336pdi.33 for ; Thu, 19 Sep 2013 20:29:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rKt7NjJ1yLxfbYLycfE64z7JYjCX1EKjp777u4eMCxE=; b=cHHkpkuX/DP04mRqq2XkbBfdz5YSZHx4HPOnRKNvtO8aBy7lsvsp60kQo+ITiira4V d3bueFM2t2ulbAZQn7LONGw6xETdzmBl7M+5XWjbPmnDlENiOjixwkum2Orbl2WsdXJ7 XppTYDSQCVtV+FIHAC9Lwr/jGB+URbcR5dhgOebDI4c7BIHdkvGGGhWe3leohakXNiLF /04E1e+EAv8aRTb6kKPkGXTv492CMBcfmG74Qzbr3GOJ/9hwH4dCHQQWtUS7rQ31gFoF i/7DZMPWxfr5i/s7AajqYxDrxWHtCFZdCS+Z7azauQPmeEpYZ6uiU9vTn0x1fnBe1ruF Lmjw== X-Gm-Message-State: ALoCoQk9pVBj1+dQjnr/xGmqVKoWLJLTZLdDKefDQQYi1F7hzdmSPvl0iqRm22VyVW45JKg/Lklu X-Received: by 10.66.227.2 with SMTP id rw2mr6276302pac.131.1379647775970; Thu, 19 Sep 2013 20:29:35 -0700 (PDT) Received: from officeserver-2 ([70.96.116.236]) by mx.google.com with ESMTPSA id oh2sm12667432pbb.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 19 Sep 2013 20:29:34 -0700 (PDT) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1VMrPe-0000i9-Lq; Thu, 19 Sep 2013 20:29:46 -0700 From: Troy Kisky To: marek.vasut@gmail.com Date: Thu, 19 Sep 2013 20:29:37 -0700 Message-Id: <1379647780-2623-15-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1379647780-2623-1-git-send-email-troy.kisky@boundarydevices.com> References: <1379647780-2623-1-git-send-email-troy.kisky@boundarydevices.com> Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br, leiwen@marvell.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH V4 14/17] 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 v4: no change --- 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 ea296cc..766df7f 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -261,6 +261,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; }