From patchwork Tue Dec 19 06:56:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wright Feng X-Patchwork-Id: 10122587 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 56A206019C for ; Tue, 19 Dec 2017 06:56:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 480902904C for ; Tue, 19 Dec 2017 06:56:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C3DE2905E; Tue, 19 Dec 2017 06:56:48 +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 997E12904C for ; Tue, 19 Dec 2017 06:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938297AbdLSG4p (ORCPT ); Tue, 19 Dec 2017 01:56:45 -0500 Received: from mail-sn1nam01on0118.outbound.protection.outlook.com ([104.47.32.118]:5507 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932857AbdLSG4o (ORCPT ); Tue, 19 Dec 2017 01:56:44 -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=bvcFE6rEJg/MvI/yhDcMq+RoJmVMvLJBkdojUYYYc2k=; b=DOp8pVe+n6nD5BX25es8OqmBy7QVBT+MPWfgmqAEDH1hYy7NpePDVAC69UjEnIOMcMIA+KxOheaE3zpkjdE+ZIUCj8F+y0bZI3tdtDNuNja8+DxK6yko+5VZVyabX4vfRqT0kHT3XN6639mk0v2aw/3/J7bT7E3wi9bOHz3V1/E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Wright.Feng@cypress.com; Received: from localhost (61.222.14.99) by CY4PR0601MB3588.namprd06.prod.outlook.com (2603:10b6:910:90::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Tue, 19 Dec 2017 06:56:42 +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 v2] brcmfmac: Support 43455 save-restore (SR) feature if FW include -sr Date: Tue, 19 Dec 2017 14:56:44 +0800 Message-Id: <1513666604-24592-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: OSXPR01CA0014.jpnprd01.prod.outlook.com (2603:1096:600:e::22) To CY4PR0601MB3588.namprd06.prod.outlook.com (2603:10b6:910:90::39) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 65a24abd-9b09-4790-4ae4-08d546ada990 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307); SRVR:CY4PR0601MB3588; X-Microsoft-Exchange-Diagnostics: 1; CY4PR0601MB3588; 3:1j2k3Pnye00CwD35eBodQiqQ+QIpphqo0V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JHVH2Ax0E4qT8lWRJOgV4SewVGajqsVY/kX2FVqId4RzFxpNwEdB5cUpQeLlCPtAQax8tRCUQHqb8ruE+JnH5Z8Y9BS9cmzqkNNgeqJC6lopYkMCOvJ3aJOKg7zip7H08B8MzkI0LzRWvMIeKuy8TgTOXnwDgOW1vR3rKwNpK6Eiu6fWmD75aq5waABSH5kdnuqCvPKH6giV6pR00Xf1LM7qMa//pbXxjtWoSR0f0v1pjUoNB1PxR3t0f0tqoe4hsLQU9Z8bvaidg3SDto5vQsvyQyL0bmPwkrT1ShARDEUHczlHDefklZX8q16+5; 4:piJUttSvPVzQl7eflAZIu/HFeVVKXvF/MKrOi1dIHAIYmqrnrjhxMA9g7RUab5hFX0xcSf8cMjNyuv/xBdKtv3hecLzXdNK6WozEPe3UB+1OdrkfSvz5vEbN4QUpnK44TKZ0qs0WT+IlSnIlqTqCzfZ2yDIh7e8ZK0xlJXq7pMxUlJswC0e4W/5NVUZNeCpYcvD1/ljW9HQcsgL9dF7KOtsjY6KNF/a7C3YD4avYQcpXt3I2LnbI6ksyDzdb5oTGatLhLqbRVYS3P8cSP+byHdrY5oYdv8xf4U9ryAksCo5C9UZ2QtR47X2A5ZI0Oy9T X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(258095267146985); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(3231023)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY4PR0601MB3588; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR0601MB3588; X-Forefront-PRVS: 052670E5A4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(396003)(39860400002)(366004)(346002)(376002)(199004)(189003)(6116002)(66066001)(76506005)(51416003)(7736002)(8676002)(316002)(52116002)(47776003)(6496006)(16586007)(59450400001)(2906002)(3846002)(97736004)(6636002)(4326008)(305945005)(81156014)(68736007)(106356001)(8936002)(86362001)(81166006)(6486002)(36756003)(16526018)(478600001)(107886003)(50466002)(53936002)(5660300001)(72206003)(48376002)(386003)(50226002)(25786009)(105586002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR0601MB3588; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; CY4PR0601MB3588; 23:effI7XO0n+WMOAE9S0GLEWBUYDWwmA5cJTQAgfi?= =?us-ascii?Q?o9K0MZyaNmTiA3B4gcjCKaV7OdXaQcEDsYj7gUDigSUZcIK1wb+e/rtV5k2e?= =?us-ascii?Q?yTOL1FjBfVx/gkhiWH3MX2Bum9pydjcHvOb+xN/Jltzrf4RzIVJ8gAtbAv4i?= =?us-ascii?Q?Lw+MhZRajCe8HZ1XiwYKZb8nTrnFIbkAZ4ao0jHLVQ2V2rs+ZVHEWtA2gWgU?= =?us-ascii?Q?V3eT0hIPnv71t0PYhbIOjkC8oYdbrNtbZ9pE5xMzvBg8PDIdwZbhjeU8YGII?= =?us-ascii?Q?1SEDkg5YlvSTB0e1jFSplNH2Pjtt8JtYvM+DKEbgrltJfAEHKCVi9DSlnkOk?= =?us-ascii?Q?tVLyM8DznjW9tdXgkEit1262BqgxvgMp7euLXf2rs0bH9VsW3wdoU56707Ey?= =?us-ascii?Q?yOjoqFfUNRaLsVWAp9YEXqQHx/WQJBRRvf32R3msvzH85tDTTj45Ru0IWsq6?= =?us-ascii?Q?+HLMy1NFILVOac2ayXqXj0TYcHwxkkA+DPsUmbnUleAe/cAP2D+/D9lUzodI?= =?us-ascii?Q?LeNUiWH8dPl7I+Bh+gohRSAj6hLGMrqPCESV4VGWThXDPiCE804zfwRiKsmE?= =?us-ascii?Q?m73dJoRf4mr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53O894E3kLI6R0TPgJGakAZQQAi9PiX4aeDlPFgZtxpYNfq3bKfufpShKaPDY+HIn1NECleOI2t7MvtbraK2xRYad38zAUnp9rCVm73y0QGhow=; 24:UotB+94lekT+9NRLfLQ1obnzyXmhEPeMFf5EEdzza2HQUMyHGAwgwMJmNLHyvoqHd3GjNkPj9wJ8FUHBrjUTYJw5JCEwEEXrV6ICZf++uHU=; 7:+sJ+Gu6kZBLw8/64RfA4U12ejBuuksIUoPX1rMfW2TYsTCRacNl41zw+f+QLxKIAZFa89mHiNxJTFgEQWoLHUCYRytO7DhmiJAfNnXU3bCK7siXQnC1vpXH1I4Z6AwaDM7BPkaAa+smyb+PzS2gyEGJDZlwRS72PiaBtUGP88THCSyNjrzY7mQ/aRwZQ4tL4X+clEqVkJ0Y7pyh28WSeYnI9rR1qwL1eGvqSW3WKbzzfhrRqKUCXiiVel+8OYigN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cypress.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2017 06:56:42.6198 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65a24abd-9b09-4790-4ae4-08d546ada990 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 011addfc-2c09-450d-8938-e0bbc2dd2376 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0601MB3588 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 --- v2: Add Wright's signed-off-by --- 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 */