From patchwork Thu Aug 1 23:27: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: 264168 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 01EA22C0084 for ; Fri, 2 Aug 2013 09:32:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E3F2F4A182; Fri, 2 Aug 2013 01:31:30 +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 7KQuhYLIQdG3; Fri, 2 Aug 2013 01:31:30 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C3D8F4A129; Fri, 2 Aug 2013 01:29:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6884C4A10B for ; Fri, 2 Aug 2013 01:28:48 +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 v2OUP7XZ-6lc for ; Fri, 2 Aug 2013 01:28:43 +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-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by theia.denx.de (Postfix) with ESMTPS id 167F94A08F for ; Fri, 2 Aug 2013 01:27:56 +0200 (CEST) Received: by mail-pb0-f48.google.com with SMTP id ma3so2631330pbc.21 for ; Thu, 01 Aug 2013 16:27:55 -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=GXtW08KZ1jyehXDRH09V1nTZoS5Wn6ltr7yEVb8pH8XvVG9hBbHMuTnsHdPGdili8y /FVyXiGPTxYppXJ4vsZnuUGcLhH0VRfnFuaZHOE2C2XkjDurFKW7fQiKNke+uSspwRN0 ZnrXcRwVLUT7Qn/LxmnK4prarRwP4PrJZZmQzaxp05CRKK1c4iOltJpKYVOlSzCAZH8N 7KuyVFNzMZkPrkBqUOenR1WPbMHsbQ3DVIRK8xKxVHEJWW4kILKs2JrY30OMeHsfR8g3 CPTU7lh0mOkjyvDFpPuXCiZrVjMjfqkZvPhHBqpgGSkrZB7+kXrBmKKFSpY4ikJzmRie L4Ww== X-Received: by 10.68.114.36 with SMTP id jd4mr4672072pbb.12.1375399675372; Thu, 01 Aug 2013 16:27:55 -0700 (PDT) Received: from officeserver-2 ([70.96.116.236]) by mx.google.com with ESMTPSA id om2sm4096474pbb.34.2013.08.01.16.27.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Aug 2013 16:27:54 -0700 (PDT) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1V52HY-0006hn-4G; Thu, 01 Aug 2013 16:27:44 -0700 From: Troy Kisky To: marek.vasut@gmail.com Date: Thu, 1 Aug 2013 16:27:36 -0700 Message-Id: <1375399657-25642-20-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: ALoCoQm2cqA5W8TeQsngXIkfPAIN9Ve6G+WVSBPWdoA1m9n6OCIGV+3L8AXvmaSvS3r8PagSrcUU Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br, leiwen@marvell.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH V3 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++) { /*