From patchwork Fri Jul 21 06:55:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9856257 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79C0660392 for ; Fri, 21 Jul 2017 06:59:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59D3E2876B for ; Fri, 21 Jul 2017 06:59:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DE7528778; Fri, 21 Jul 2017 06:59:04 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 D6A642876B for ; Fri, 21 Jul 2017 06:59:03 +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:References: In-Reply-To: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:List-Owner; bh=+FvjhdnisO7Wj9RmyUkqIBun6rg5ZRFXyIyeZZ7LRog=; b=Xh0rVQ/8bJIbr1PxeMRdcEUZ61 0Kyg6oNUB92zPTmj3Qbd2mmgXglp6mc61O2HDIUojA9hLnRedTWDx+UbGpap8vJr8hKEyBd+9GGbu nuyJS3VO2VvjbFodEypYgrBjEoJ+uxMiZe9fI+LFUT9Y6UOMDr4wpsVfeQFU/fTM6fLb0uUXJUbSe prCI7ftO3xVaCn/67xZpQeb5PyAcwzrXV+4uXLBRF2qY75jb/nQsgyd0rqB3tHDlVU+EJ2h1qHVJN jGx0mh/FkTsxXGIq+u+TbHY2UZ/PoMCpwEx1j7rDrPFwF0OeJ4pMgMOehs/ySvozexDU7qZK1z4Xk O5dTlezg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dYRtq-0007YV-Vt; Fri, 21 Jul 2017 06:58:59 +0000 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dYRs2-00060b-4M for linux-arm-kernel@lists.infradead.org; Fri, 21 Jul 2017 06:57:28 +0000 Received: by mail-wr0-x22d.google.com with SMTP id v105so48457399wrb.0 for ; Thu, 20 Jul 2017 23:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rnFxkZGJqbTUV87YWhc0E8uu526Panv4ekLLbm5/xgk=; b=Z1pBlfkxLyKRXpXrIvlLixNgeCDdxIoN9amS4fgM88Uvqpqz7L8g5z7GC4jiXfW+Ea Ld6a7Ym9ATq/iKvN/HhXAs+l+uj2SGjXMQJxdiHzR8DZn+kZ5v5M+0InrtCZixVXOFK/ dMe3DoQ0puVL9Usv9AgN/6rPM2Z4rBYV93uP4= 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:in-reply-to :references; bh=rnFxkZGJqbTUV87YWhc0E8uu526Panv4ekLLbm5/xgk=; b=CIldgSsQaGci5Z7fgMLauq1qgHSXwmONkN1yNDu4VEGyitIsSEJp6Szy2btjlbP5/U /vPHRO/DmtS4RFsydXd9KH11Q2ysdtAzW0Cd5Z4aHS+r1S2xU83bBWV9uUiluMiAhET6 zs1fod25CequXQkf3srKD097UMXS9+SKXVT9ZMKf+vp+sW9jgqfxA7qVraTxw1S227fI 0A8BAFUjPxldYmCO230rO7ioPx1tewPN3irXc3mjY/WtRpiAIWa4Xs8+hyVdeTrRZGQd 6+XOK8RZDL0B6ay7lfhmXZ4v3frK7RNiJnPDjgOQjrKI38PJxnOfea8lhj9mkAT45OaU CR1w== X-Gm-Message-State: AIVw112RCpxyvfBoeaskFBkC9qpYFs/QtTYhd1JgfT3PJ1GDtfzXuiuC 5IInNEfDk/CRmnxx X-Received: by 10.223.157.7 with SMTP id k7mr6369765wre.43.1500620204188; Thu, 20 Jul 2017 23:56:44 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id 77sm751684wmk.8.2017.07.20.23.56.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 23:56:43 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Jassi Brar Subject: [PATCH v2 6/7] mailbox: bcm-flexrm-mailbox: Set msg_queue_len for each channel Date: Fri, 21 Jul 2017 12:25:41 +0530 Message-Id: <1500620142-910-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500620142-910-1-git-send-email-anup.patel@broadcom.com> References: <1500620142-910-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170720_235706_837230_F4BA8DBA X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , Anup Patel , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, 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 The Broadcom FlexRM ring (i.e. mailbox channel) can handle larger number of messages queued in one FlexRM ring hence this patch sets msg_queue_len for each mailbox channel to be same as RING_MAX_REQ_COUNT. Signed-off-by: Anup Patel Reviewed-by: Scott Branden --- drivers/mailbox/bcm-flexrm-mailbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c index 9873818..20055a0 100644 --- a/drivers/mailbox/bcm-flexrm-mailbox.c +++ b/drivers/mailbox/bcm-flexrm-mailbox.c @@ -1683,8 +1683,11 @@ static int flexrm_mbox_probe(struct platform_device *pdev) ret = -ENOMEM; goto fail_free_debugfs_root; } - for (index = 0; index < mbox->num_rings; index++) + for (index = 0; index < mbox->num_rings; index++) { + mbox->controller.chans[index].msg_queue_len = + RING_MAX_REQ_COUNT; mbox->controller.chans[index].con_priv = &mbox->rings[index]; + } /* Register mailbox controller */ ret = mbox_controller_register(&mbox->controller);