Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp164947ybl; Wed, 11 Dec 2019 15:55:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyhbkgR6/PC4Sj1GBmJ4jMIpvTUZS9ED6hTYABmIag6jWXqeXuOM5pGYK5gU9I/OpyOFwHC X-Received: by 2002:a9d:7590:: with SMTP id s16mr4449723otk.89.1576108525847; Wed, 11 Dec 2019 15:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576108525; cv=none; d=google.com; s=arc-20160816; b=04uynzyu4nra0BsqgidRaX+RYBgqhqj6cX/vDs4G12ab5/lpAmMbgAvDf8sdBKCpWB cvaXguTieC0pm/5vLljH5imhqjAsqGzDehAmH5iK/OIQXAQUklNYugWIz1rKba4i/xzV eYFzDPSKZ7zhYy4VPzG+sTXffS2/HKj/0t7fKRjnO8+br8m8f0S3VHmVOJAAfJWTtQvp n1hDmE2bdJgN0uu72w8QRcIPbgMKNHIH1ST4u3Ax3Ex1robq3H2WysFsHskThpZeHw9g 4pBFcTS371/TpR575Qo740hSG67fA7ie95Xe3wwhUyfxDyjz+H2JHDpVNlNMkBO4BUKf To5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s8oP3Xq/SF6Xcfyzx86ZW7u5FME/ozzNVeVzD3cDRMQ=; b=qIX8289Ffre6UM3vBZs7hiR41G0KSBuHTbUlQomRmf80MaiiAVxjuSjDSTH+wQdApL nsDeu53rJEsM3sgKsQiD16fKa7tbRVjaZtDEwPh3aOevUIrV1Z6RydnzbQJeIPG7Qr7i fff5THp91H2/aRGAHH+Sf7BJZAkZwEZytF1ZheZQCRc2GSQyIfd0ISSvV673ud0tfJbq 7Q7Xa0FI4Ldwiz+ecIptyDue/SXpYjoPtX78bkOZhzbNDL4/kz9hP3rB8DZ8Cwbo5ovu bW9pNYBCmy/AoAF/8tTBD/FUzOcZYPDvrs39eH1X0QZFjR4+nlbc0r2xIPbeCRIebnFh 6vVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=Gu0wgLpK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12si2289050otq.85.2019.12.11.15.55.13; Wed, 11 Dec 2019 15:55:25 -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=@web.de header.s=dbaedf251592 header.b=Gu0wgLpK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727132AbfLKXxZ (ORCPT + 99 others); Wed, 11 Dec 2019 18:53:25 -0500 Received: from mout.web.de ([217.72.192.78]:57387 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbfLKXxY (ORCPT ); Wed, 11 Dec 2019 18:53:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1576108391; bh=4up7UPdrXKf7f4RHv1AgVYW/yVkK9as9YFQa80qMoKU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Gu0wgLpKWDiMw/KjGhRNXZ9fgdBWNCo60e8XriKrwIng+KPeNqpb/kEhnfL61n8xU y5uala2/lTNOlXb13l0+YYMpnYRQXNnxT+eF5/UJuF6VzvntIVODJG/yru99dgUhdx grgsKlgO5zws0iRjvX+lUFlh/JJwtKWBbhs5reT0= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from localhost.localdomain ([89.204.139.166]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M5fsK-1hm9Ms2iPg-00xdVy; Thu, 12 Dec 2019 00:53:10 +0100 From: Soeren Moch To: Kalle Valo , Heiko Stuebner Cc: Soeren Moch , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/9] brcmfmac: fix rambase for 4359/9 Date: Thu, 12 Dec 2019 00:52:47 +0100 Message-Id: <20191211235253.2539-4-smoch@web.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191211235253.2539-1-smoch@web.de> References: <20191211235253.2539-1-smoch@web.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:J+qJb/2Nw7OkPT3SxGUR8foewlU/Godf2lJr2WJR7yAVKyzHMHD qqJRwEwFwDhjVM4go/USRgAOn7yIJ7hgH0ExeEB8svnzBOJMvZm9v/oljINQkZksxz9yNOA nZNEOx3OYiAWZsAF9XCEJRfKHyQj1eGGSJYFqKM4drCj450VoEt1a3CZfYDmSsgUY/TjIq9 kDe/TDllVqMrz07yDQuvA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:eZTTKvKqCQQ=:6Ufks9S8uTxW4FlPFgpy0Q 71OY5XEmQ3puqHczlBr9G3y68a7jVmC4MRrtYw/khbu/oi4xTOfBxnEuLUSNqWDo5NuVfk6YQ WapEexeYcScN7aZ1zXFZbAu1f7Z7M4qtsmXLA6jGSufrsxzQfVP3IN1pf3GaPnizWcWf/bNIj O4Gh2od3tRllFMrzAJdr8VKhEJMr2Ct1LUDHAzG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YpBwmhI8hqkatdtbKb/ugFIcs9ed3ldOf+M2Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Newer 4359 chip revisions need a different rambase address. This fixes firmware download on such devices which fails otherwise. Signed-off-by: Soeren Moch =2D-- changes in v2: none Cc: Kalle Valo Cc: Heiko Stuebner Cc: Arend van Spriel Cc: Franky Lin Cc: Hante Meuleman Cc: Chi-Hsien Lin Cc: Wright Feng Cc: linux-wireless@vger.kernel.org Cc: brcm80211-dev-list.pdl@broadcom.com Cc: brcm80211-dev-list@cypress.com Cc: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org =2D-- drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c b/dri= vers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c index 0b5fbe5d8270..baf72e3984fc 100644 =2D-- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c @@ -712,7 +712,6 @@ static u32 brcmf_chip_tcm_rambase(struct brcmf_chip_pr= iv *ci) case BRCM_CC_43569_CHIP_ID: case BRCM_CC_43570_CHIP_ID: case BRCM_CC_4358_CHIP_ID: - case BRCM_CC_4359_CHIP_ID: case BRCM_CC_43602_CHIP_ID: case BRCM_CC_4371_CHIP_ID: return 0x180000; @@ -722,6 +721,8 @@ static u32 brcmf_chip_tcm_rambase(struct brcmf_chip_pr= iv *ci) case BRCM_CC_4366_CHIP_ID: case BRCM_CC_43664_CHIP_ID: return 0x200000; + case BRCM_CC_4359_CHIP_ID: + return (ci->pub.chiprev < 9) ? 0x180000 : 0x160000; case CY_CC_4373_CHIP_ID: return 0x160000; default: =2D- 2.17.1