Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp39018imu; Sun, 4 Nov 2018 18:24:06 -0800 (PST) X-Google-Smtp-Source: AJdET5djt/bGxVrE6J6u5P0vWBu/OzI2le2sokOgbM4dXp762HUSlUpReeY7ZFUxzbVse9PaULMl X-Received: by 2002:a17:902:d207:: with SMTP id t7-v6mr20350091ply.90.1541384646112; Sun, 04 Nov 2018 18:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541384646; cv=none; d=google.com; s=arc-20160816; b=pF0Dd5uRJkdoccz5/tvijx7YSHDtbpItcgD8VNScxtLZXEH1dcUgewoFgDSdMMBcvB G8jwmrGh6OC0GRbsf4lTYq53R6IS/LaFLw9Upn7p0mlxIDUNfYxMKDismF/cCl2x/UzO M8zlcFQGFYXaMywj8jihBXuS7bvmibRBMPjNwvl2jbhy4v2whOLH8Lwysnr+AV+nAvoy 6036KA+XESMl0WXGWhEkGtl1ZgBj86n8xoS8FefFrCMJQ7lJ2zfxdwf7086n6gBJZ5Bz M/NMrM/IQsC6fGM1yVu9zk7KrLopRuoshal0bQSDO+Umg8K8/LolCO8uvRov+OVXVbp9 14JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:subject:cc:to:from:date:message-id:dkim-signature; bh=BE0uneAliIQj15grJEVBKhotfSmzBF425o7pPM7Pdi0=; b=c2Lv5bSnI7bGclMYwBS07Bo7pXIR6AgVP6ZDHlpYE3yB4KWSbmD2Hqq7panu6+xkTE HeSmp03Vv/rF5BF0F8vKXQGfTQo6keoOr50PVj+U/QbFjnbHH/S6U9QvspjbAgiPO8Wm lVk6LOX92CVItCbwv4ODQ34zLJUo0BOBhwMLGrxvACu25P5ETf85Ew2PsYk0YJYMxw/H beciTa4Urr6WxFseE7aN6lOtYwc1wknOujz+apQ3vfye0N2fPjqV8RXqVl5QtMc8T0V/ M+xqpLCCfAu57o7S1tS+xAOIz7rcAM9uaO+4OBTwxb58q5nN1fawN2qBxp5drwYmK8Qz vjhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WsOh+L3X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3-v6si9416980plo.97.2018.11.04.18.23.51; Sun, 04 Nov 2018 18:24:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WsOh+L3X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727094AbeKELkM (ORCPT + 99 others); Mon, 5 Nov 2018 06:40:12 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44184 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbeKELkM (ORCPT ); Mon, 5 Nov 2018 06:40:12 -0500 Received: by mail-pf1-f194.google.com with SMTP id j13-v6so3622073pff.11 for ; Sun, 04 Nov 2018 18:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:cc:subject:mime-version:content-disposition :user-agent; bh=BE0uneAliIQj15grJEVBKhotfSmzBF425o7pPM7Pdi0=; b=WsOh+L3X85l+AVl8iWwhF61y56BMomC7JcfybqEb18fTsiPW9eVeoFq9tlOMuGyKpZ wIatB6Q9wisJOHNOUwohP66/9xIZUVIUTL3Vq7ABv74pJbiUL78Ip29L/oWFQ0pZVqgf QRL8sNObfnj78kq8r6vIRAJDQvB648C6J3G2TSzWFPIdko8fPaTUbQSSrpVhz4eiRh0S iNB1Hzl1zZ3OOYUFooHRo3McQ+Cbl3/Uios4jIf7xj23UxlwrCfoEJfx11BS6CcfItXw WTDlhoE9X44kyf3XvBIQxh4r24S9EeybiKL1+mM/DbApGVcwc2kUZyLGjf7RVVOgaETA Mkng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:mime-version :content-disposition:user-agent; bh=BE0uneAliIQj15grJEVBKhotfSmzBF425o7pPM7Pdi0=; b=MQ4EtlWrdltKvyVGNeeinWh6XtlxsOsPYBtviqfkOVA25h0kdynSKU09DusBAO1peT +Laho5mmcl9gCQXAf4KE0oG5CG5TQQv2fa3scDfk0pa548NXxReC5+P8KQhrFcOuDZZ5 AQIB6srpEG5H9KPCkXW6ru18f43v43tYjPqQTArxRooRkoOYWLrNYdfQynjhqEV+wW5Q XIpE3ItWGgil7OxlTz27EvGO5DCij1eoyylg7Sq/vvEgTa+osICEmgcLCVpnIsfAghCg lar4RfXUf0tTMx2PRjj+4kAnW8Bw4lFByaeBXoBFhtFfhgV3v8X6jNsoI40AvJh/cT1H FKJQ== X-Gm-Message-State: AGRZ1gKLyqe8Ktx5neIiebPWG1kOqQ2H007PYrqGtvd9YsYqLA0Lmo/C 56mApcy1lGNKAKhRQYVpsy4= X-Received: by 2002:a63:ed09:: with SMTP id d9-v6mr18341226pgi.305.1541384574644; Sun, 04 Nov 2018 18:22:54 -0800 (PST) Received: from sabyasachi ([45.116.191.235]) by smtp.gmail.com with ESMTPSA id a189-v6sm11349126pfa.116.2018.11.04.18.22.52 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Nov 2018 18:22:53 -0800 (PST) Message-ID: <5bdfa97d.1c69fb81.4aef7.c9f7@mx.google.com> X-Google-Original-Message-ID: <20181105022248.GA4159@sabyasachi.linux@gmail.com> Date: Mon, 5 Nov 2018 07:52:48 +0530 From: Sabyasachi Gupta To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au Cc: jrdr.linux@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, brajeswar.linux@gmail.com Subject: [PATCH] arch/powerpc: Use dma_zalloc_coherent MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replaced dma_alloc_coherent + memset with dma_zalloc_coherent Signed-off-by: Sabyasachi Gupta --- arch/powerpc/sysdev/fsl_rmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rmu.c b/arch/powerpc/sysdev/fsl_rmu.c index 88b35a3d..8b0ebf3 100644 --- a/arch/powerpc/sysdev/fsl_rmu.c +++ b/arch/powerpc/sysdev/fsl_rmu.c @@ -756,15 +756,13 @@ fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) } /* Initialize outbound message descriptor ring */ - rmu->msg_tx_ring.virt = dma_alloc_coherent(priv->dev, + rmu->msg_tx_ring.virt = dma_zalloc_coherent(priv->dev, rmu->msg_tx_ring.size * RIO_MSG_DESC_SIZE, &rmu->msg_tx_ring.phys, GFP_KERNEL); if (!rmu->msg_tx_ring.virt) { rc = -ENOMEM; goto out_dma; } - memset(rmu->msg_tx_ring.virt, 0, - rmu->msg_tx_ring.size * RIO_MSG_DESC_SIZE); rmu->msg_tx_ring.tx_slot = 0; /* Point dequeue/enqueue pointers at first entry in ring */ -- 2.7.4