From patchwork Fri Sep 20 03:29:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 276192 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 1F7382C00E9 for ; Fri, 20 Sep 2013 13:31:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B95624A153; Fri, 20 Sep 2013 05:31:20 +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 hIW6JM0hF-RB; Fri, 20 Sep 2013 05:31:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 23FC74A18D; Fri, 20 Sep 2013 05:30:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CC0D34A14D for ; Fri, 20 Sep 2013 05:30:02 +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 nx-KIZtYk3NC for ; Fri, 20 Sep 2013 05:29:58 +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-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by theia.denx.de (Postfix) with ESMTPS id 432974A151 for ; Fri, 20 Sep 2013 05:29:37 +0200 (CEST) Received: by mail-pd0-f180.google.com with SMTP id y10so9136809pdj.39 for ; Thu, 19 Sep 2013 20:29:35 -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=ACUl8BvDf0xiflwGJPPraCyPjq7BHv0odhs37S2Wlks=; b=lfNQQ7gSBDzdqNTe9jh3cLMh79eY8vNmTOCCOeOafGtvMCE+9Eu48bH0U/kCW3ZQI6 nwTfdWGqjWtnt1sB+YZ5KIM7WqYvcCq68ylCQhRbf9HTXjZqEW3ETCkm+Nx+oysogAQ/ tGxhGJPZKM/C3o6I27wibYoGQvl34ASK8UZ4tNUJ31snvuLPjHCfkgVhCrpMVMwBrURy /5mztvJoztcaKFHErCq/7eVLZ+KPkLU6IjLm/BzAs4ITePupSooCLqbLs5SD6sawgRTH HH86GZqxROEmBenbU4vW8Z6rSn6kgATokfY+jzkugsNi13xUzDyIoRYSNh+LgVXjDrki NDsQ== X-Gm-Message-State: ALoCoQmWbTQxIcxUJ4wpqODH9Te+ECvFEwKaLws+VggxUeu8aGYgxn2WT/0aoplf3OxD/5q9MHsa X-Received: by 10.67.4.136 with SMTP id ce8mr6254306pad.158.1379647775802; Thu, 19 Sep 2013 20:29:35 -0700 (PDT) Received: from officeserver-2 ([70.96.116.236]) by mx.google.com with ESMTPSA id y5sm12603396pbs.18.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-0000i3-IZ; Thu, 19 Sep 2013 20:29:46 -0700 From: Troy Kisky To: marek.vasut@gmail.com Date: Thu, 19 Sep 2013 20:29:36 -0700 Message-Id: <1379647780-2623-14-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 13/17] usb: gadget: mv_udc: zero transfer descriptor memory on probe 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 Since we flush the TD, we may as well set it to a known value. Signed-off-by: Troy Kisky --- v4: no change --- drivers/usb/gadget/mv_udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c index 995585d..ea296cc 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -643,6 +643,7 @@ static int mvudc_probe(void) free(controller.epts); return -ENOMEM; } + memset(controller.items_mem, 0, ilist_sz); for (i = 0; i < 2 * NUM_ENDPOINTS; i++) { /*