From patchwork Thu Aug 1 22:18:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 264137 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 F2FF42C0091 for ; Fri, 2 Aug 2013 08:23:25 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AB9514A094; Fri, 2 Aug 2013 00:22: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 Ybcg3BzZwO57; Fri, 2 Aug 2013 00:22:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 013904A10B; Fri, 2 Aug 2013 00:20:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E9EA14A032 for ; Fri, 2 Aug 2013 00:20: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 bN31arCWpuJj for ; Fri, 2 Aug 2013 00:20:02 +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-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by theia.denx.de (Postfix) with ESMTPS id 4F5E64A036 for ; Fri, 2 Aug 2013 00:19:29 +0200 (CEST) Received: by mail-pd0-f171.google.com with SMTP id bv13so2304648pdb.16 for ; Thu, 01 Aug 2013 15:19:27 -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=byPEhiQexDkWR8LzkfBgfTXG3eE6Wt3ZdUekMEhq7zY=; b=P6AMZfz0cB8COrJlrZUE1AmlamydTz80Ce46lP9TG8a3TsL8nWVvX24oPD7KpHd+ft ATzFhZq/d7I182mOeUuQrJxtPDYMBSPzeSuuFmF9hQS0EMVxRd3m5oHKSdC/WwfuhgyS iUkuZUR1cOrzPrCW0Npi61apNoY9HrTvuGx43eDVY2c4qYKIcGkm2zR4dLOYP2K0yRkB SyBbg84rTFguvuD8DN1u0k7qZA58TL/gvyNvidQoiTCv/zhblQaKRi1raBJULfGExb8V 7NeWDQ0pF7qPxOPskD4fqW26num/ng0pXO2ohcgIc4A9DW/P1HXNaNdS8DWXUKqdMXYX SBVg== X-Received: by 10.66.233.73 with SMTP id tu9mr6869978pac.124.1375395567696; Thu, 01 Aug 2013 15:19:27 -0700 (PDT) Received: from officeserver-2 ([70.96.116.236]) by mx.google.com with ESMTPSA id ai6sm3195250pad.15.2013.08.01.15.19.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Aug 2013 15:19:26 -0700 (PDT) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1V51DO-0004sK-Ji; Thu, 01 Aug 2013 15:19:22 -0700 From: Troy Kisky To: marek.vasut@gmail.com Date: Thu, 1 Aug 2013 15:18:40 -0700 Message-Id: <1375395521-18569-24-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1375395521-18569-1-git-send-email-troy.kisky@boundarydevices.com> References: <1375395521-18569-1-git-send-email-troy.kisky@boundarydevices.com> X-Gm-Message-State: ALoCoQn2tUUhJtLmnu43vVRjj//zPiPtWF6ZHRYCix3D4k9N5ltqqWJ3WFVoKIKOubP/tcdjJkqy Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br, leiwen@marvell.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH V2 19/20] 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 --- 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 82df9ab..4876894 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -661,6 +661,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++) { /*