From patchwork Thu Dec 7 09:33:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wright Feng X-Patchwork-Id: 10097897 X-Patchwork-Delegate: kvalo@adurom.com 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 D195860329 for ; Thu, 7 Dec 2017 09:33:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C818C2A3CC for ; Thu, 7 Dec 2017 09:33:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCE212A3CF; Thu, 7 Dec 2017 09:33:30 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08A9A2A3CC for ; Thu, 7 Dec 2017 09:33:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751004AbdLGJd3 (ORCPT ); Thu, 7 Dec 2017 04:33:29 -0500 Received: from mail-bn3nam01on0120.outbound.protection.outlook.com ([104.47.33.120]:45384 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750869AbdLGJdZ (ORCPT ); Thu, 7 Dec 2017 04:33:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cycorp.onmicrosoft.com; s=selector1-cypress-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EGqItHfQEBZjn+1T3haAD9VvtRYR3XR5RQvvzI5cfSw=; b=V7AONjTLyvVQMyqBsWz35/2kYfrVW3Du9GrtR6KNl5RI2K1oE9qnwSsNA55sb3IJWA+FPN2Rr0IDt7kefUMX/4CtE9Im7XfjDfEuuLFxB6A1w9OCuRcNr+gLwDRXhuszjruaHtcp9P8Qu34OXsxH+Z35Ko+vEF6/gvOkKfqDgFU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Wright.Feng@cypress.com; Received: from localhost (61.222.14.99) by SN4PR0601MB3598.namprd06.prod.outlook.com (2603:10b6:803:4a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 7 Dec 2017 09:33:23 +0000 From: Wright Feng To: arend.vanspriel@broadcom.com, franky.lin@broadcom.com, hante.meuleman@broadcom.com, kvalo@codeaurora.org, chi-hsien.lin@cypress.com Cc: wright.feng@cypress.com, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, Double Lo Subject: [PATCH] brcmfmac: Support 43455 save-restore (SR) feature if FW include -sr Date: Thu, 7 Dec 2017 17:33:03 +0800 Message-Id: <1512639183-3357-1-git-send-email-wright.feng@cypress.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [61.222.14.99] X-ClientProxiedBy: OS2PR01CA0109.jpnprd01.prod.outlook.com (2603:1096:602:1::27) To SN4PR0601MB3598.namprd06.prod.outlook.com (2603:10b6:803:4a::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 96be2a72-2d27-4a54-aec6-08d53d559009 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603286); SRVR:SN4PR0601MB3598; X-Microsoft-Exchange-Diagnostics: 1; SN4PR0601MB3598; 3:v3pCWF5WtFOFkzLgpG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wJep3Hz+Z7P7d+l7nU+B34agB2z5EIbA+Ytec2qFlDdLSA4UWvvaG7K9Fy86fTdqen53DHBKkhyTHKLHPSZV7Ov9T79YuTsFnpswQKFNVCB7Tx6MFE/K9MI2bo9wmlldmIP5xKl243gWhzzu+pWvG6Y0e2JTeTAfPfiRX4Lr7anWGU48lRF4MtLBujU4cwarXwsZDddkgHIerKOdX1NkgW6eN1TIxfG5LOyxJmHwt/vqsmvTOcjQsH+G+BjZ5Aq1mxK22oQPRZ2pQVqEPo+Zzq++AEjeL43efo0vk1LG2k/eIn4ZtbrrtBASJ00g1YK; 4:KWN3V87h8fU/Ab+cPtL92vMnXpZNZacgL6y4IzIRV1NhA6dCb/yUcJ5UDSejaxluIj/vVdiXydA8h4haXiuT9ECyMx50gnm1EVEloMPmQ+KqeePBWnnGRVIqguoJr07hHCtvZYl14ABVBKf0PQ5oVzx5YoHi/EK90KrCBro3JjCVOuaeAHvFc3ovvtMcBQNXrNdSlpT0G33eF1B2n73DsGlQd81d6geUEmeX0guTZbli0rsK1MO2lwvQftQPR3QmwlDFiSXu3uoAtnSticc/ey72DtffjJEK8p6Ea8G3NNJVh5FKFZr95ja22rS+BSIk X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(258095267146985); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(20161123558100)(6072148)(201708071742011); SRVR:SN4PR0601MB3598; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN4PR0601MB3598; X-Forefront-PRVS: 05143A8241 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39860400002)(376002)(346002)(366004)(189003)(199004)(81156014)(8676002)(316002)(6636002)(52116002)(16526018)(81166006)(51416003)(97736004)(50466002)(6666003)(16586007)(5660300001)(47776003)(66066001)(33646002)(107886003)(101416001)(106356001)(4326008)(53936002)(2906002)(86362001)(6486002)(76506005)(7736002)(3846002)(48376002)(72206003)(25786009)(50226002)(305945005)(36756003)(105586002)(478600001)(6116002)(8936002)(6496006)(68736007); DIR:OUT; SFP:1102; SCL:1; SRVR:SN4PR0601MB3598; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cypress.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN4PR0601MB3598; 23:QrAPjNgdUNSpyaeqVhhwktntTiD/AbpxBdYnVY1?= =?us-ascii?Q?qKmc7LHIcemBvdmatODtfRQPxUOuyfB6WTRx9nNPmf0wVZaNm3YDLReNC7n7?= =?us-ascii?Q?oLhmGZS3gyvCaMpjoZBXRMarDK6Vhc3G8IqPWd+klKr4g6KMiFeCfeSYh2MO?= =?us-ascii?Q?2eUEuAy+l+eoRFe68XvOYd+WJNg+lCf8frGMi5yE75l54NYJkOgie4NsKHqc?= =?us-ascii?Q?TmwbF9HAMDHmTvR2lLCQxEAiui2Jhl0xJhVh14oc7xasbZcE3BWzv6t5Xnrw?= =?us-ascii?Q?ei8DTW2xHRtxqGwQ1GtyuUmXG08zEruKWTMT4K0wFuSYi/6H/nGws/DInbbf?= =?us-ascii?Q?PZ5+u1Qd1xZjrEgd+p0Y0OLwjDIaVCE90TZQaIDiac320KHMeKisWt0s8fAm?= =?us-ascii?Q?Gak99iloMNHQqnaSYrircGdgfSHclKPptECe2vxQ0doTQwqvIYBYBIHjojnh?= =?us-ascii?Q?nEMv+21Iq5FP2B/3J5UIkoYGvKc2+AZ6M5cKH+yhFRtbWX1Fhp7IOXASA8pP?= =?us-ascii?Q?Kdm/YGmtD7Cg1fEmKurCThmAkUTXdKXT7h5t4M7OsS06fh8TUsNgbQJ8P8E9?= =?us-ascii?Q?lCvJcAcaABdgBfKp82M8KsMdGGAmW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6rITZzENHuYx+9zUCF48zTwALoSTPXp3E1lrv/MbaIESWT9RdLE52dZZJLU6nzIvW1uAxO7aoTK2d67WXLgEKTDbxO84K8/3Z7Cl1Yky8=; 24:BSWCFK1kyajX1GNCosYQQhkKjSSqP9BSJ+Li5nNf4qXOu/e80SRhoqk9r4SxXz/pAeo59ymidHnryV320/sgJZmJ2UjcffIfI2Wp0ysv4+U=; 7:TN/hC0aRw17l5GUIO4A1Afy5YD1V04dEMLDJIQlp4XZOanTUj6SQRIDOHMDxRYb43hCpM88nWSc/7SftPBbm/dkktOZL7VJfb37tdHEkGZ6vbiJi0LtzVpVWSSI1qOxnWKSHlJMEca7pQRuaibVlqMqVw/xkGYkSqnFqE4LZBxlC0oX5hbjVwOdZJrFnb7YSKtZVk1gHwDP2M5Ee1jtroiW8bUe0Fu1XeOztdS0HOwv+RERQp9IIZIEjnC1v0SYP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cypress.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2017 09:33:23.5861 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96be2a72-2d27-4a54-aec6-08d53d559009 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 011addfc-2c09-450d-8938-e0bbc2dd2376 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0601MB3598 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Double Lo This patch will add 43455 into the save-restore(SR) capable chip list, so the SR engine will be enabled with 43455 FW which built-in the -sr function. Signed-off-by: Double Lo Signed-off-by: Wright Feng --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c index c5d1a1c..f7b30ce 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c @@ -1338,6 +1338,7 @@ bool brcmf_chip_sr_capable(struct brcmf_chip *pub) switch (pub->chip) { case BRCM_CC_4354_CHIP_ID: case BRCM_CC_4356_CHIP_ID: + case BRCM_CC_4345_CHIP_ID: /* explicitly check SR engine enable bit */ pmu_cc3_mask = BIT(2); /* fall-through */