From patchwork Mon Jul 15 03:17:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11043329 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 A4FCF1902 for ; Mon, 15 Jul 2019 03:17:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9417E27F17 for ; Mon, 15 Jul 2019 03:17:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AB9B280B0; Mon, 15 Jul 2019 03:17:37 +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 C456A27FE4 for ; Mon, 15 Jul 2019 03:17:36 +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=nG75YUKP1yx8VRV0Vm8U1SRPLZNFpeuv5vj96znnUFU=; b=qBS NKcQ91wbOFPLk+468P/PuYw7It8WEHo9/+1ZYSmIlW3VuDonkXQpJqd2z54AqQsw9UUQ+Jf1QuZkL ml2iBHxu5uj85xGtEvcsETCGyyVYVX6xxWF1ESkH41vpspKXe+mzu6T+2SxICVPaQNw2XJFNYk1ss QSxQ2GBFPM4tmUT/axuJf7xyPoRbmOKK1lF5ejXKJa0HszggK6t0VxOswXKupaX0Bm+ZW7GIQ44X0 GxQMw7oHauOXA2jpcgciO5Yt88vcJFiClGsF641QYHwfu9DVdRfuqGd6KCXHEAt6jYsNKFSywHeYk gGry1dFmpFsQTiapVO3ozQx1WmTmPwg==; 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 1hmrUb-0002Nm-2H; Mon, 15 Jul 2019 03:17:33 +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 1hmrUU-0002Lk-Ql for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2019 03:17:28 +0000 Received: by mail-pf1-x444.google.com with SMTP id m30so6729159pff.8 for ; Sun, 14 Jul 2019 20:17:22 -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=kb+x/QfQL3MhHmQt7WtgTjEDw3oPpOHTLxeQqt85Sps=; b=FyizgDvESf0WxQAwT0SmLWw0LWmQhG/GqMsWQbLcchozulcZDeW8RA646zEZU/iBe1 FvEPS84PQqkYYTQHzFA6nqMqQYL1K0VT9Cu4ymMkQAgEnXgg+4aKO8wZ+QSc6Wbwiuj6 fj898vDRCSR6rWtvaKmLXD8+9VGWXrVaGh5mGtkvNCAiDevV0YNRB91r+mOJONBdL5Iu R0go95hfRJSrk3iAmNQYQP/bteZP5Uzbwh6R/sGJB6HP2lARLbRiHJyZ4AGVLCD1fzSd OkUVmmKxpRsAUbzu1NOJUkqd6/11nkXA/0caghE2Bx/9xAHYXlCxQNp1HYPVln8u+C+C ytzw== 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=kb+x/QfQL3MhHmQt7WtgTjEDw3oPpOHTLxeQqt85Sps=; b=tK17c0EL3IeM1lvIz1UszZjpKmpvsUPjjyK9FiofCTajgLb2gxhm6O+IWqUKqvsuFn 7BtO1I0FZI0ZfHqkrreRjvXFaVpNqjglfAYCj4SIZVYJHjVVM4LDBqfpQJ+XOX6vWc9s ATA1wxdnjZbTzaXTMIE6c2a00m45b/OwPf+nHzsbnT58fhAgKtXky6ydAToPCkC2iItI vm1d1wIvTt2esJD7x8xEd7nFV4Q8dVVFj4rEuQy6q3UOOkvMhxOHnYCfr663RQqfpBJg ZQXxwcN4vBh39QuGCPV8fz7LWLeYShJpCi4SgAPdHxYAFnw4Bdl4s/0eXq8cHgFtMMR9 1q7Q== X-Gm-Message-State: APjAAAX+ra7UbPgokEDjeP402kVEmIX7Io1w870l78uRaeNw8nNIJRWZ paQ7Isw4slOvsPIRdKuTIws= X-Google-Smtp-Source: APXvYqz6wZgg8ErMw/22BWmPi/6AZiUkRYU00MUkLmykKZJoUOrdWhNoxhMCglQZxUTYlB3JBQU/Mw== X-Received: by 2002:a65:6081:: with SMTP id t1mr24882534pgu.9.1563160642510; Sun, 14 Jul 2019 20:17:22 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id r9sm21256921pjq.3.2019.07.14.20.17.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 20:17:22 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH v3 03/24] dmaengine: imx-sdma: Remove call to memset after dma_alloc_coherent Date: Mon, 15 Jul 2019 11:17:16 +0800 Message-Id: <20190715031716.6328-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-20190714_201726_874071_993A34F2 X-CRM114-Status: GOOD ( 10.36 ) 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: Sascha Hauer , linux-kernel@vger.kernel.org, Fuqian Huang , Vinod Koul , dmaengine@vger.kernel.org, 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 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- Changes in v3: - Use actual commit rather than the merge commit in the commit message 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 4ec84a633bd3..decfb9e9648a 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 Mon Jul 15 03:17:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11043333 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 D93046C5 for ; Mon, 15 Jul 2019 03:17:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8FB0212DA for ; Mon, 15 Jul 2019 03:17:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCCD327F17; Mon, 15 Jul 2019 03:17:56 +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 79481212DA for ; Mon, 15 Jul 2019 03:17:56 +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=ecKjWgAO7ffvQ0pbpvLp2VfeZvmPRj5fLx6b9m2YuMU=; b=VRC AAN6+huW3g4EVJjKwjuPFR1w1P8AGE5X36Z1EKDg9eO+vo5usLWTqOuA3bq3tbP60vC6LlIEXm2Og y42SvrMoLV86tg6hvYGwJ8CYR5iRTo/LsxXMYcDEb1v0cH5WPc6dDOo6Tk4Nx4HRJtXLKY0ltjcXF HieTA5vEOk7X5dBOHywNqAM13dlhiWpaNpMiv9CLbFyfxi5yB6ZnxKJCa2+4N/TFk3KQ5y8K1WxZS Vt1VmC2ZChPre7ei+7xrNCpOkm0eLPZl7ObJsog50yTc2Dm45c/H+xI544GhLEjVrFVNfLwce1/ny SMQ2QeyKPyKriHIxqoT4w3WZI/+Um5Q==; 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 1hmrUx-0002Yg-KJ; Mon, 15 Jul 2019 03:17:55 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hmrUZ-0002OU-NP for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2019 03:17:33 +0000 Received: by mail-pf1-x442.google.com with SMTP id m30so6729298pff.8 for ; Sun, 14 Jul 2019 20:17:30 -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=aF4g/95JsdU94BtU3dUNZxklmtVOywGbbXwlWkP3bEw=; b=AIwQPJeW8q5cgrnpiKU3/rcJC4cWM0mD0TRh2AhbAKuuTHK9Ky05V+G9OjRBhm1bq7 P3lG5WmWAhujTpKwkyqQFPRA5cKkN06Mp3lvBVABIxOtNSKkc+X3C8ctbtdtvx+OUUnS 2yACjj2pmoqqeCn+r29ZJFswPGymFo8fx/k6WJ9rQzWHs3eZL0+18gPPgvHF7LLhKMgX LpvmGzMqzdQSdggMynJ0hg5dEiYNwHc1fOfRs9N94OcXgkLPDOUNlNhrzQF/39rOIJN6 IwtGgeIMToWtMQTUb1HOrswIdbJzlwoe0nSY21deOuTdERhc8SmPnjPI4YgHXT2a5pmt Q3gA== 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=aF4g/95JsdU94BtU3dUNZxklmtVOywGbbXwlWkP3bEw=; b=ESiAP9stZ42wtzfDUsEDrHe0H4SIQkRZrun9xEr8wba3Q82k8EokiDCPLj66pIZaFf b7dybt5ETHSTOYj02AKUo3ZxndD0AzZY9qWIS3wbX5uYl5NmzBRhhJageDJ9quFOlCEJ nrcfO4gQ3pnzEXJ1dGdDpBU3MfgO1DUZZ5XPUwawlWudq891MPeUiUlLbLD6w6fRSVYz vvSZerKDiO13FS581tsYrk5DZnL8SfcKFBCOSLD7YwJ5d72gO6DnMwfZk6dgbGRm0HQC ZGD+dVYElxuT5gcIUzXAQDk9ycyC/j5nPkIIxL2qd5XdHCGpFVBiVoldLOJ1wI4/pQRI +aFw== X-Gm-Message-State: APjAAAWXrvgyWgqvXyBrLi9SthGs1HijH8MRV2RLKn7iHd7wRcRJ/jQq 3g+LgChzYV2iSTS0VmUJprg= X-Google-Smtp-Source: APXvYqyOe7zFXYz7ZSjmhhIOJzZrjismG1PRArYqe4qOQOu3/AyhmMPK2wwt0AqYDUsIUDfb78ZzRA== X-Received: by 2002:a65:4103:: with SMTP id w3mr13523619pgp.1.1563160650409; Sun, 14 Jul 2019 20:17:30 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id u3sm13720277pjn.5.2019.07.14.20.17.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 20:17:30 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH v3 04/24] dmaengine: qcom_hidma: Remove call to memset after dmam_alloc_coherent Date: Mon, 15 Jul 2019 11:17:23 +0800 Message-Id: <20190715031723.6375-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-20190714_201732_113421_412B9CEA X-CRM114-Status: GOOD ( 10.87 ) 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-arm-msm@vger.kernel.org, Sinan Kaya , linux-kernel@vger.kernel.org, David Brown , Vinod Koul , Andy Gross , Fuqian Huang , dmaengine@vger.kernel.org, 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 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang Acked-by: Sinan Kaya --- Changes in v3: - Use actual commit rather than the merge commit in the commit message 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 Mon Jul 15 03:18:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11043351 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 0D32E13A4 for ; Mon, 15 Jul 2019 03:19:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF93B212DA for ; Mon, 15 Jul 2019 03:19:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E271E27F17; Mon, 15 Jul 2019 03:19:01 +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 96760212DA for ; Mon, 15 Jul 2019 03:19:01 +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=1eqERA/P/qA6jVnnheVoE19xiNVMhLmXQZcBY4CSUwQ=; b=XLX xx5/fuwOopAICPKE31I71ajyQlfdop7wi0CIxAbOyp2PK8wbdRCaXfpz7Crg0TvJuG5nAXQHqGcnf MFT52nNHcbJv8eNI9lwYMteOjC7tMkfqBAlBAXYOEux9v1IwbNIGAvLl7K6Vs6I048FipV8SyGA5u zZdbt5A7E1YVGG7X9ab3fc6w0JgnTSqCdEswPhxtbJNAySMVoDs0ZhMeCcx7NO6ZLFe/sesIy4Tsl nHKQStgiApVZtNOGNqoFn5JwzlLzKmq7EiqogzNrFtXMKy/KrOY/fRujre3LzTqmSlhUC1zDsYpKl NO/4jHXT1sX5mDv4hvwqnffVOtRL7kw==; 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 1hmrW1-0002zs-02; Mon, 15 Jul 2019 03:19:01 +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 1hmrVy-0002zT-43 for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2019 03:18:59 +0000 Received: by mail-pf1-x444.google.com with SMTP id u14so6744144pfn.2 for ; Sun, 14 Jul 2019 20:18:58 -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=1UsNuU488bAaTj0JaLnojkSixQzmMg2zbCbBzMy0HWw=; b=oFnD7fwF5cyg4cvqJ7TqdFhRAWPdTc49K7YANgPbnWatdlA3Gl4VvwGJhu+olffQAg hR1eOySY2bND8nyvHT1JNUlY8n+gM986kC5KEl7wXtomxPfOTAZb95mxOT6XdU/RI1BR s1RMmHD3jvfy9ROmTY78VfeImpAeNmcdYQXv8wongDc6w4t7tf4nyLAfAtEcER7CPHEn PkCVuICpM5E0D2dXNH0UXhiiL0vlGduXdC9HbJK7kZfupSR7xlrihLbWz2TQmw6J7ibq k2BaAiqHKv50H0lyI2AEwvjyrJ2hxniHZbx18GL33ugmH95DYiSUdjTDS1bLUVANKPa3 ma3w== 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=1UsNuU488bAaTj0JaLnojkSixQzmMg2zbCbBzMy0HWw=; b=YEa6ML/z73sIUy0QiYoIQogDFTbVIjY/C0JwELZ4TRkgxZ+aP/BGm0vLuJMDl76k/Q gyEzjmgHqP0SlP0RoDK7CEuNtdtHtbY5da2k7LiKZlm2+854MyZHU/ky03BgcDU2tO9q kIfj5mHk7vmn5QyyFV0fPdUg64iwMbIyqIirjAWm0YcuJ94YsS60C02Feap1PQ4WV+Yk AdWngMxmAGqWW7sNNqidJQHisDs1pHjklJZCoMrEIxSiuXHe4WAc6A4CBhEk3zS2bsNL qE4YNFPazYX4yMOKy2QwkGowze7TsVluX1aliRw9KUmZDaWSWQW+k21TIukDSUMin4qU /mwg== X-Gm-Message-State: APjAAAVoeRFOaFhu8SAKVDObA/8Oo1/Pdn1L1S+UKGIOZZaHdspbnr4F oAfmjp4a+kMQNrKmLWZJWw0= X-Google-Smtp-Source: APXvYqxdGGfZzS2r8XUhIoyjjIamvtltkvX9H3ARnR8MQSfG3WcpmiOIKoWbP95GlNFhqEhr6orhiA== X-Received: by 2002:a65:5183:: with SMTP id h3mr24502771pgq.250.1563160737715; Sun, 14 Jul 2019 20:18:57 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id f64sm16421304pfa.115.2019.07.14.20.18.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 20:18:57 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH v3 15/24] media: exynos4-is: Remove call to memset after dma_alloc_coherent Date: Mon, 15 Jul 2019 11:18:51 +0800 Message-Id: <20190715031851.6890-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-20190714_201858_161517_43A2A168 X-CRM114-Status: GOOD ( 11.47 ) 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 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So memset is not needed Signed-off-by: Fuqian Huang Reviewed-by: Sylwester Nawrocki --- Changes in v3: - Use actual commit rather than the merge commit in the commit message 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);