Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1867245pxf; Fri, 26 Mar 2021 18:01:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwERhOVpRo4SEbAlQA9JMJBgG3ZlN3iP1ImaT3TDyrEQW1jG0q+2jS6wHxFiKbi5j43kLFU X-Received: by 2002:a05:6402:b21:: with SMTP id bo1mr17833720edb.368.1616806912422; Fri, 26 Mar 2021 18:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616806912; cv=none; d=google.com; s=arc-20160816; b=l9++r6CJjxuU8bo6LSSUo0ar04iHhiFookl+2UjxZprAPLje9Ui2eQS6A0SLl0aHV9 y2zaXrK2CY4qyCWzHfpZjMvZ4bRFe92AsY86sA6vLaN+GKc7t51W54bs6Sqj+L/KcUa/ u/0XMutBrusAxZ7eEplKT8AAJmZ7O+3Pwd7EAoqYlvSl2LOzGP9mklZJqASGag8hInud 3dOD7e5omAbzuFWeS2qPsqYpyno38j6GQCjqV9URDCdIDtetkxWFifs/JwvKYDpF/Aup WIk2g2sCufiJcmYgolvO3743uPRAHBm5moO/3tRMie8Z2h6SWrBmMr39GUfxl7XGyrpY J9ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Ng61im1+CgRGtmiXM7yCXdHAtNzjHQBvYWLoqZJlWSc=; b=UbyBUHGtKnKAmVirIELaNSNa+5w2ntRmXZ60h6ScOX2TnMfK207GT0khI/nQZgynaT m3XkbB1ihh/tl9Uanhnm8A7sLeaErQwxf/NV985Jh1uL2AR3VSA1SCd0O4kFCkAy4Qax zsIClFO9gGH43/j4pE53eM+3NcwaAAE4nupz+699PHWdDvCXe0YGz7my45JMb6czDedY i1569PzuKWRcTIqnEYM55w7Wlu4KAHAukHyirIeW0uEeemoht5pU8L7tiuyIzyrBbhmn 16y7JVye10S/CIS4qqZPh1NI09TET8Wu5tFUYraz1bJuQaAqf/1GJezWZKzsFbG0nkFF m6RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YSakcLdg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si8326343ejk.68.2021.03.26.18.01.29; Fri, 26 Mar 2021 18:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YSakcLdg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229969AbhC0A4C (ORCPT + 99 others); Fri, 26 Mar 2021 20:56:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:35724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbhC0Azq (ORCPT ); Fri, 26 Mar 2021 20:55:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3B456619F2; Sat, 27 Mar 2021 00:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616806545; bh=lo6lYnIDJUd1GsaAadMr5D9x6+TV2fWoKmvUvRWPbJY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YSakcLdgmxrQZHQqKWvJPxVUYENmn35UzQeR7TWvz/K0QsZZjYjihRYuqObd1F8ob vLj12q7PKS+blkO2ftwgIu+UKVRBY+36dtZy78vMMHmqvikCQ3j6uww+kKaH5p4j1l syHNppSel7HEKJ7YVr4yd0QAtetkcNNFFUfS/ZQRrGpxfXytnbko/GEc1nwhaBhAbo K38NNLLEAU6daudPx/KvIxVF6FaLtRPCpMX+bZ234eg8ktoqiDt/azigoRQuo5SL+w x94YEPTAKz7YoVwjJ5ieGdRCqrXzcKz5emaQkC+E3aFj6sw0P8EoVnd07bsO3C2LdO ZlQNrLHNdNiVw== Date: Sat, 27 Mar 2021 08:55:39 +0800 From: Peter Chen To: Pawel Laszczak Cc: Wang Qing , Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] usb: cdns3: delete repeated clear operations Message-ID: <20210327005539.GC28870@b29397-desktop> References: <1615603303-14518-1-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-03-22 07:19:46, Pawel Laszczak wrote: > Hi Peter, > > Can you add this patch to for-usb-next branch. > Feel free add your ACK base on this patch. Peter > Thanks. > > > > > > >dma_alloc_coherent already zeroes out memory, so memset is not needed. > > > >Signed-off-by: Wang Qing > > Reviewed-by: Pawel Laszczak > > >--- > > drivers/usb/cdns3/cdnsp-mem.c | 1 - > > 1 file changed, 1 deletion(-) > > > >diff --git a/drivers/usb/cdns3/cdnsp-mem.c b/drivers/usb/cdns3/cdnsp-mem.c > >index 7a84e92..1d1b9a4 > >--- a/drivers/usb/cdns3/cdnsp-mem.c > >+++ b/drivers/usb/cdns3/cdnsp-mem.c > >@@ -1231,7 +1231,6 @@ int cdnsp_mem_init(struct cdnsp_device *pdev) > > if (!pdev->dcbaa) > > return -ENOMEM; > > > >- memset(pdev->dcbaa, 0, sizeof(*pdev->dcbaa)); > > pdev->dcbaa->dma = dma; > > > > cdnsp_write_64(dma, &pdev->op_regs->dcbaa_ptr); > >-- > >2.7.4 > > Regards, > Pawel Laszczak -- Thanks, Peter Chen