From patchwork Thu Jun 27 17:35:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11020143 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5FD4B13B4 for ; Thu, 27 Jun 2019 17:35:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 503EC284C3 for ; Thu, 27 Jun 2019 17:35:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 447DF2855D; Thu, 27 Jun 2019 17:35:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4DB492859F for ; Thu, 27 Jun 2019 17:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=AM8QRQr87p7E3oalT1OEqy9Jg+64YLMGyQ42otNVNzA=; b=EZm 9agDn1LeBRTb/HjoZGv88iD1xFc1s2mfjcZ4hK0TEu845RDtE96Nm840R54/rKItt1xJD8FrZGRAI XbwShFATBvcrJCwNws8EuX8XXlDUT38OPT5ISxD+kgQXdnTN/sC3TEPs6ps9znfbdcDLunRy/USal Y/i3HiJYxkSC5/92JWf0RY0Zax4XMRTGYLLG53L3YhqeRlwrXlN2jCrr1lSAVkcS64IBicqBglXHH pfb3jN3M1aRvm/Nte3h/j2HU7MlrbOSmu/JtVNOuSV7C3NxcbGabJsHhXQZhV2pxKMYNY//AVWtjo Z4Lqd85jWi/KGYwCcBONRadvT/yvHDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgYJI-0002iB-LD; Thu, 27 Jun 2019 17:35:48 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgYJF-0002hH-Dz for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2019 17:35:46 +0000 Received: by mail-pl1-x644.google.com with SMTP id bi6so1654389plb.12 for ; Thu, 27 Jun 2019 10:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=swE2uPeKQhZkn33ToHN0/DGisXtpeV3c7xG1CSkw2+k=; b=Miy6dVwuphqr0+9kYCyN1mdCjUPNegKo3U/+jmoyKUClmFp7MPluirtH8Z+Nw+RKBN 3eXqH5NvFlFjeLHWjlhaTdvYVEk28pRatoMtSHwEN0fG3I7pIxLan/nZ+xXIygT9qB2i SsYL3BUCqVLpX3Y0c0pBJ6wW60QbBFvwq1uK+kS0PFokK64IRKEo2bo8XgxTxyrLEPoF BLsDUjEoVc8s4x6BXDSp0zqnSZjPZbwdDVeZwEfv/Apa97ih8qy2cnu8zqI56FBKe+NY 04RfHsEwz8iH0uzJUsuyugOC54n4B2Zp4bELVfl2HkNF9KychUb+JnOpPcIhUGSyFcpR PKfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=swE2uPeKQhZkn33ToHN0/DGisXtpeV3c7xG1CSkw2+k=; b=LFAFeMlgNKxu5drhUoA4FGUM6bU8shZwRFdSOJNEBfE9LextPKvujim/Wm3tM+SJ0y +vIMgydeLrJCPShW4WRtySQFWLqlUdUrEnIpf1l19EdhjzUF9ZK32EGlHlfn12e+1rfE Ap0f6SWB0UaicbeKMNZ9YIr+EQZEtAHBNbjVsRnRpxS+372rr8x9FQe1aj2NImw4UDdH 5OWJYGWOzO3rh1QamseRYdi/kFqQ1hsleZHQ47+R9oD2r24pIg/OKzOd9j1MdS7aHjyh O3ZtyGvbpUbeV9DRznNQoCdWty/WJ7gE/2GeZaW9dy1gvN2HnbJmLJ9PaxUs6suhpukA Ap1w== X-Gm-Message-State: APjAAAVYEFX3ct8mZav62MAMhkLvStFeu3I3DU92RxDXibghj0yDPc0f dg2TowPzLXekhxFNkhPp7Bw3GMpjEkDpNw== X-Google-Smtp-Source: APXvYqw4m8q2FPtXEiZooJ1RVdH5A46FRMsZhFAfyz6Kp2srD4Txv/gFtWJs5K+G/1ZWXnU6AHUaDA== X-Received: by 2002:a17:902:d88e:: with SMTP id b14mr5839060plz.153.1561656943033; Thu, 27 Jun 2019 10:35:43 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id t11sm3479203pgb.33.2019.06.27.10.35.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:35:42 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH 12/87] dma: imx-sdma: Remove call to memset after dma_alloc_coherent Date: Fri, 28 Jun 2019 01:35:35 +0800 Message-Id: <20190627173536.2457-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_103545_476678_D654AE9C X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , Sascha Hauer , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Vinod Koul , NXP Linux Team , Pengutronix Kernel Team , Fuqian Huang , Dan Williams , Shawn Guo , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- drivers/dma/imx-sdma.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 99d9f431ae2c..54d86359bdf8 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1886,10 +1886,6 @@ static int sdma_init(struct sdma_engine *sdma) sdma->context_phys = ccb_phys + MAX_DMA_CHANNELS * sizeof (struct sdma_channel_control); - /* Zero-out the CCB structures array just allocated */ - memset(sdma->channel_control, 0, - MAX_DMA_CHANNELS * sizeof (struct sdma_channel_control)); - /* disable all channels */ for (i = 0; i < sdma->drvdata->num_events; i++) writel_relaxed(0, sdma->regs + chnenbl_ofs(sdma, i)); From patchwork Thu Jun 27 17:35:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11020145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03E651398 for ; Thu, 27 Jun 2019 17:36:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAC4828696 for ; Thu, 27 Jun 2019 17:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEC8528681; Thu, 27 Jun 2019 17:36:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C85D28696 for ; Thu, 27 Jun 2019 17:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=05RHpVD2yz/+Ll4ikdpOvFWrHcQnY7Y1gXKeXzi12bk=; b=uHl jYhSu4JA330n1zACsbm8mgKLln6HT5aysNQbe0x2N249TggpaucgN5m5Bv8bIQTNVMQ0XfMZijWoY jm2oWK1qWwGxTXOifZAfTRr+3pIkGWMKGn+J2zeY8BRfkGqyg2d5HQ2pjE30Djo9cyJXCpYcjw7Jy SaFZeu1usXUZ776ZqvE71YBXutxkiGSEzzyJGrbDjeHGJIY+6it+gzoPpSmIh61Z5+c3xWNHV5at+ 5/pw3dDa5blI8Zldzf3Am1IjH/pCMw40umGdSiTAoI8/9TU/LRoa2FvZX+MMzZ2+tH5ZP5Eq3uIG8 UGZxmqaT1Sg1VcL0iWuE0K47MjO+OTw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgYJb-0002tX-Ox; Thu, 27 Jun 2019 17:36:08 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgYJL-0002lD-QX for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2019 17:35:53 +0000 Received: by mail-pf1-x444.google.com with SMTP id q10so1572391pff.9 for ; Thu, 27 Jun 2019 10:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=01KFyhJUV3RoNriqLf5yZvf+oiqWf/wBU4j/uLg4Xuc=; b=uBVdbE3Jhxyv437CFJJGnINzZBdXk56Qp/pNpZfZPaOVfVl+sZMXIyYzWjz8o0VFnJ T+JSipaAlS39HZMZj0VHrh5JLWeYKWebAhdklZafCZzcg8OnY3Ev3gx3zHCi1p9pmUYW Lf1rupKSulkylrYR17QzTHWsFDKqc2zLyd8zaAcCT7NurEi89oquIGSkmr/cGCKN6D1m 8r4MqtBJmIQ7xPm6zn+kW2YGk2ElBGUveuQ3AZWvEmJmINhu4x2v4BEi7lJKh3BVPwGg 2olzaHXAxVT9n3DBpWU8gxoD1qZPQVbZM/sDKnRTzXt+hoVP+po5g+GYJ2q1+hdki7r3 P70Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=01KFyhJUV3RoNriqLf5yZvf+oiqWf/wBU4j/uLg4Xuc=; b=WXIL9k36vhhXvczIThH8NxCUfBbY89xWfqwBs8nmQllnRt0olbfcK3VSnrxEDUqj3G AJUrJr0DKkRdiOy+MQy1GBCaviP8N9buWHrVcxEJrwtccfNmyT5Uy9YxQF4bJjyUw3i1 KnaIAYm2CeBBJpArSRDSAbS89UPBNctQB6X7wSUVXoLBZMbLmKMNImsI36SQf+oyIrYI 5aRUg6zDJtIE6CKVrbZYoHo/retnXzezPzsP5HQGeXs3+HH2yMkA75H75qrOTtyJdeZj N/lZrTz7RkivDCoJy3q3j/h4Z/X9kr2p0cDh3cjHzj8sTtgJv+M6s8c4zawSdAVkLvkI oFbg== X-Gm-Message-State: APjAAAXPTN3QEi56zfv3AGW/OuFFwNNr18WHs2yoSCG82tAZFY0Mn4ix 4i4v668ZSmM91rd+LC2dOTI= X-Google-Smtp-Source: APXvYqx+SNOeQczFkdaeBwmZhm/+mJTRZpohDTl9JOaOaz6UQcducOrh5q7I2LNI6Zl46a6QPO1zNg== X-Received: by 2002:a63:c34c:: with SMTP id e12mr4711054pgd.195.1561656951061; Thu, 27 Jun 2019 10:35:51 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id p68sm4011548pfb.80.2019.06.27.10.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:35:50 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH 13/87] qcom: hidma_ll: Remove call to memset after dmam_alloc_coherent Date: Fri, 28 Jun 2019 01:35:44 +0800 Message-Id: <20190627173544.2509-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_103552_016596_4B914D29 X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, linux-arm-msm@vger.kernel.org, Sinan Kaya , linux-kernel@vger.kernel.org, David Brown , Vinod Koul , Andy Gross , Fuqian Huang , Dan Williams , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dmam_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- drivers/dma/qcom/hidma_ll.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/qcom/hidma_ll.c b/drivers/dma/qcom/hidma_ll.c index 5bf8b145c427..bb4471e84e48 100644 --- a/drivers/dma/qcom/hidma_ll.c +++ b/drivers/dma/qcom/hidma_ll.c @@ -749,7 +749,6 @@ struct hidma_lldev *hidma_ll_init(struct device *dev, u32 nr_tres, if (!lldev->tre_ring) return NULL; - memset(lldev->tre_ring, 0, (HIDMA_TRE_SIZE + 1) * nr_tres); lldev->tre_ring_size = HIDMA_TRE_SIZE * nr_tres; lldev->nr_tres = nr_tres; @@ -769,7 +768,6 @@ struct hidma_lldev *hidma_ll_init(struct device *dev, u32 nr_tres, if (!lldev->evre_ring) return NULL; - memset(lldev->evre_ring, 0, (HIDMA_EVRE_SIZE + 1) * nr_tres); lldev->evre_ring_size = HIDMA_EVRE_SIZE * nr_tres; /* the EVRE ring has to be EVRE_SIZE aligned */ From patchwork Thu Jun 27 17:38:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11020171 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BEB3B1398 for ; Thu, 27 Jun 2019 17:38:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0982283F9 for ; Thu, 27 Jun 2019 17:38:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A46EE28478; Thu, 27 Jun 2019 17:38:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5FFF1283F9 for ; Thu, 27 Jun 2019 17:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=9nedXaBIWwT73zaE/hbKx9TTqXBWfKpiFW3RNBVAeCQ=; b=PZO MAk3Ghb0xLPgftIDhCWAwd4AyZVFgWQ8EsO7/Mu0HG0F7xqCafpecFX8ueTEWqnGzQ2NIr0nWaS1s u3CkT5yZ9L0Sca8R9PWqglRknX0Vp0ZogEviuexSAIwV9Acs84EGFw3v9ZF2I3ayygdxM7t9LQJwB 2F8/eG62vSfclXytSeYAqnbCyrILAFjDuP7kGPVIoNzWw8/gFWZB3RtgyF5QckX2FaUhHzJWVVpCd j8yDTeJzrFlaWMM3Kjl+/Eihuq66n5rLocQ+/46QwFUn6UVje8/3yID2//v5AUD7Mkf8Gkk13pGah XqoTKB83jnUur11jNLTkSw/cDBAwRow==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hgYM6-0003vS-DY; Thu, 27 Jun 2019 17:38:42 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hgYM2-0003ue-Qh for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2019 17:38:40 +0000 Received: by mail-pf1-x441.google.com with SMTP id r7so1589979pfl.3 for ; Thu, 27 Jun 2019 10:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UrGOOwqXYdU4HnZf32fo0+WGpE9hhRvUmIwwr7eD1yc=; b=QEx5bAe2IDGhdbb/pyuhCrfIBoyhL7FlODV1yOG8ZjnWT5sOrxCVj6SlR7vbTnZanl aCxzh78YfzmbgbPeI6m/h9nOFRCwmq0MRjYUoUiD4mXBAD+Pc2MIo9BfGBeqEeomf8XO Ven/aiofV8Jdq6iDjAfb/FSDLeGbDzczd7KrVHpQ+qnNzzj2Kz7PF2DTf/7eFHDLkwBd BbSG5rpSLk6vbzMFxO0hynJB6/lRkL7GsU7nkvTOS/3HCurORBqObRy9rR0vO2hlgLnw zynlKIG8bwRCtNd3nplq+10N0wZ1Zb09Fj7/9SXFBWPA4+YJvPUkBwVh3DXA5PQJuHwd kVKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UrGOOwqXYdU4HnZf32fo0+WGpE9hhRvUmIwwr7eD1yc=; b=pg6H3p4RJHNpoJuZdiXm6nQv/B/oKVpFJi1KKZgnnzHVUt9IqQ/q+Gukf63h/tMBgf uC4Q+oWzMWn3NFEwmb2TkJZQ/GJp4/udI/VY6eSx+a80Qxo4wNxwTLtlNQyXBM6JRQ7p w3IkkWP1KzCYcxQOSmnZpIxUddiU6hO31h0O0mq3+EgOKCvQwyFJJWoMMcM+Qugbs67J y9Kp4vlWRdAvyFMtgEmX4pK3RkkxjgtL2jFddhN9UvzgiIiw9UfYIWP16Z37U0puvDaH 48AqmezaK4T8XGlONhD5Cq4+fyuI4nNBHC6W7m6rdCF+ehCbTSDGAvurP2je2L44ugRw i3tA== X-Gm-Message-State: APjAAAUXX1gjizLt/KNgy3whmq7ANWx0dd8Jvsm4iyBhvatySOFOPL98 HDhD03Ll7hyRDLbnrqm1VoA= X-Google-Smtp-Source: APXvYqysqhAusiUIFovXzQaY6v+uFPfSxgWZZNDiy+cXjWnBE7dy2ehmnGJY16jdPRVGrhp5EMnuyQ== X-Received: by 2002:a63:d755:: with SMTP id w21mr4919171pgi.311.1561657118048; Thu, 27 Jun 2019 10:38:38 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id k22sm4057212pfk.157.2019.06.27.10.38.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:38:37 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH 31/87] media: exynos4-is: remove memset after dma_alloc_coherent in fimc-is.c Date: Fri, 28 Jun 2019 01:38:31 +0800 Message-Id: <20190627173831.3467-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190627_103839_038008_38AA5400 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Kyungmin Park , Kukjin Kim , Sylwester Nawrocki , Fuqian Huang , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- drivers/media/platform/exynos4-is/fimc-is.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fimc-is.c index e043d55133a3..77633e356305 100644 --- a/drivers/media/platform/exynos4-is/fimc-is.c +++ b/drivers/media/platform/exynos4-is/fimc-is.c @@ -341,7 +341,6 @@ static int fimc_is_alloc_cpu_memory(struct fimc_is *is) return -ENOMEM; is->memory.size = FIMC_IS_CPU_MEM_SIZE; - memset(is->memory.vaddr, 0, is->memory.size); dev_info(dev, "FIMC-IS CPU memory base: %#x\n", (u32)is->memory.paddr);