From patchwork Wed May 17 07:54:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9730317 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 B40D4602DB for ; Wed, 17 May 2017 07:55:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5BFF2236A for ; Wed, 17 May 2017 07:55:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98D3528713; Wed, 17 May 2017 07:55:39 +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 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 1FDED2236A for ; Wed, 17 May 2017 07:55:39 +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=YHbMDkh6FWIrrhQgq/COBslFYlruBV9TKwGqU/yo6SY=; b=Th9 tvoRfhSHiVr9yh2EFixXVZVpZ3KnyIfTm/taclrzJEZtlAK6LCY4mRvUyPRFIBU6VEjz483u0kbOo gzk/HVmsC7MUJIus69GBvz2sRHFIcejDnlfot5r7+aGkocbjMJsKhxa8eUDcx9kWAcSiJxPG+OuZE 5Dj0MjZvutWgsH3F0eLXEN+T4HVJVZQpFVBMlzVA7L+QmpVaqunKNxTx8Iy8C0hc2Flc9us1XlfHJ 9cCYd3L/hgAQhfA8QuJg/d+OvL8jeOaLoAJWJdV65zm2q/9v7cC9FnnZruwUAhIuCyKRtw/3mHmjM reK+YcZEFxkrNv7UT7pd1UtuIiOmlVQ==; 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 1dAto0-0003Bo-Ir; Wed, 17 May 2017 07:55:36 +0000 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAtnx-00037T-QQ for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 07:55:35 +0000 Received: by mail-pf0-x229.google.com with SMTP id m17so3400718pfg.3 for ; Wed, 17 May 2017 00:55:13 -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; bh=Uv47iUSQlFH27DIGHWOrZ+8DISWCE71Vv9d18RBy6qI=; b=MiOD18Ej7hytwdzI+JOualABibGUlPlwPJXXM4gtgCVQyrecnWl7BPDij3fYSGdm1S +u23BALA4CgHafOj0iBqgCaJaQTBPpPZmzznGiJry/kzRBq7UJVCIrUyvp322LWNqCjT 3jS/KrA81+euyrixGGFKMsipSfYCupE0ECc8I= 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=Uv47iUSQlFH27DIGHWOrZ+8DISWCE71Vv9d18RBy6qI=; b=uXBsxFgeSKA9mG/MSSFpmguj3DDUdhiTeflbDMYL5aHSLdzqbDo9EkKvmUy0whPZOp XKLOjbUsz96HjyRjcuF5RBr9WZ3QAArQ7bCaAJXZggvOt4Hb/bZYaDsl8gTmluCnlkiz Jd/ozyRw7RnpurYN1lGP8p8J3RXLqOsNuEx2kJgiNzntbPqKwB2/WtqVfyum/88tvv14 oZ8nYphDDHhpjfIbGilLSGvFkCAo+CM0v1AN0ruUsPTjHTN+krR/Zu9rwFNa4nFm2rK+ 9mBXwkJTB53CTZPBFHDv01b2TJrxPDhv2j6sxGOEr5e2RQ1nPVEapCeSi0SSHkeiwpsq yn3Q== X-Gm-Message-State: AODbwcBq8Ld4rb5mAD0zIb0ObLvB3hXMZd2MO2VNljGb+T/y8XDq/QTa 1KHhL0TNBNcD6QQd7xg= X-Received: by 10.99.147.20 with SMTP id b20mr410824pge.218.1495007712646; Wed, 17 May 2017 00:55:12 -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 q82sm2563438pfl.28.2017.05.17.00.55.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 00:55:12 -0700 (PDT) From: Anup Patel To: Jassi Brar Subject: [PATCH] mailbox: bcm-flexrm-mailbox: Fix typo in dma_mask setup Date: Wed, 17 May 2017 13:24:50 +0530 Message-Id: <1495007690-14146-1-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_005533_881345_590D0DA2 X-CRM114-Status: GOOD ( 11.16 ) 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: linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, Scott Branden , Anup Patel 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 output address of Broadcom FlexRM is 39bits and not 40bits hence we fix dma_mask setup in flexrm_mbox_probe() accordingly. Fixes: dbc049eee730 ("mailbox: Add driver for Broadcom FlexRM ring manager") Signed-off-by: Anup Patel Reviewed-by: Scott Branden --- drivers/mailbox/bcm-flexrm-mailbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c index da67882..6aeac6e 100644 --- a/drivers/mailbox/bcm-flexrm-mailbox.c +++ b/drivers/mailbox/bcm-flexrm-mailbox.c @@ -1479,8 +1479,8 @@ static int flexrm_mbox_probe(struct platform_device *pdev) ring->cmpl_read_offset = 0; } - /* FlexRM is capable of 40-bit physical addresses only */ - ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(40)); + /* FlexRM is capable of 39-bit physical addresses only */ + ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(39)); if (ret) { ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); if (ret)