From patchwork Fri Apr 22 09:03:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrejs Cainikovs X-Patchwork-Id: 567104 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D8DDC433F5 for ; Fri, 22 Apr 2022 09:03:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1445847AbiDVJGm (ORCPT ); Fri, 22 Apr 2022 05:06:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1445817AbiDVJGj (ORCPT ); Fri, 22 Apr 2022 05:06:39 -0400 Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01on2128.outbound.protection.outlook.com [40.107.23.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B3C53721; Fri, 22 Apr 2022 02:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mO+50MTHbmuJgBuD3BZ0436VeQULUoc3Fy1LTChHFex0ryqPHVbHgPTKHHqyLrlbyGgE77mH7hOD1J3xmBBVFLtyRN5dKarFeIvLxUGnexN++z5r4h/oozINIAoffpJ5XWJytaEl51fRcvnCg0PksvJljbtgsgbEPPhyLWZmPAbix2/3wkjl8j/MpI+AJXraZaIkkDKGoP9/oMes4aUEDOSb0cn6Hs8G8vEuYRdZQT0wswSqLgqRrFUSCanspdX7U121Ko94oG81WOZzcaJGjQ96Ml1hbEttqPdZCHY2bLwNJ4jXZ1et4jnZHp0dHuCJpoNeQhn5Xpi/FIgJucIy2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZYiG24tOGlyADGlOXcOCJ5qL5JoqvEtCZ3Ax1uT9nhY=; b=JhTHt+hA3MCxaa9PzyZ8AasaufxpNz5HfGYhCMPY4g6v7sG7jaGaFW8w/jdI3+9qDmiukzGEbBx6K70fIFgyDW3Qr0g3/FpURxizfo6sKBI8Y1T9eYMLpGR3Xewt0RnPs3MkFB7fdLXHgpu7Nk9AMRFLEWx2N2x4gCmYymTbrOC2YokdJ6UbX/4JbgO4fRGG5XoKIJGt3NOYvXQGWJGTvLOb83S9CHuR5KTYlqqLxQF7y1SFKb7dcwLov9v3qqfGlOkpl9M9zkfE8sdQdFUmHr41efghVt8j7TCS/PhchFFw0UWq39T/A7ewLPBHza3x6LX/6dbBgANMgkAbJc3pSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZYiG24tOGlyADGlOXcOCJ5qL5JoqvEtCZ3Ax1uT9nhY=; b=k+vhRmwCQfm77hL75UupkUXez9Vr2unlL+ajnDG4vfVOG3y/oE7OG0HZ38TJFNRqoGDcbPOb1TXeMhT8kHYGX7aIM9darQdcP4Uy8lRmI1rnDrYQ8eOD06+U5KR4YbmHoFEkQKfq4znES91Iwp6iNnl2/U900vDnNElSnWI7T6Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=toradex.com; Received: from GVAP278MB0929.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:57::6) by ZR0P278MB0393.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:34::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Fri, 22 Apr 2022 09:03:42 +0000 Received: from GVAP278MB0929.CHEP278.PROD.OUTLOOK.COM ([fe80::d03a:14ba:bd9a:e165]) by GVAP278MB0929.CHEP278.PROD.OUTLOOK.COM ([fe80::d03a:14ba:bd9a:e165%7]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 09:03:42 +0000 From: Andrejs Cainikovs To: linux-wireless@vger.kernel.org, Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu Cc: Andrejs Cainikovs , Kalle Valo , "David S . Miller" , Jakub Kicinski , Brian Norris , =?utf-8?q?Jonas_Dre=C3=9Fler?= , =?utf-8?q?Alvin_=C5=A0ipra?= =?utf-8?q?ga?= , Francesco Dolcini , netdev@vger.kernel.org Subject: [PATCH v2 2/2] mwifiex: Add SD8997 SDIO-UART firmware Date: Fri, 22 Apr 2022 11:03:13 +0200 Message-Id: <20220422090313.125857-3-andrejs.cainikovs@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220422090313.125857-1-andrejs.cainikovs@toradex.com> References: <20220422090313.125857-1-andrejs.cainikovs@toradex.com> X-ClientProxiedBy: ZR0P278CA0151.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:41::12) To GVAP278MB0929.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:57::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 82bc273e-0f4d-4692-f99a-08da243eff7c X-MS-TrafficTypeDiagnostic: ZR0P278MB0393:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aggiw/yNJU1pwcyeDxhA9Sd0KbmuGxyMkJ8Oh2BO0+fMlSQRCpLkRuM6gw+EiBP+nbfcMJNRjX8mDZBRx9MK4t7bz608to44OKmbVkTrpJVHFnUF6ZLwgUaRwVMFVHBNUPGGnZh4cfx1MaazLz8SkUyrqT9pdPgg6EvyoigqKToJ4OsCUdZIFZADiwe2IHoJcAha+MSHxPDZ3BcWMdFmTeXJgU8Qm0//nCCf2Fgld0CbXE6wuivajC4brN99c4w1qd2gbIrOjcXiuHyLy0Au0Wrv05ztOoM8Jyxu+ledd+f1GHNAWgY3T3jmKD53QxDkDM0SmPXosBLyl3+J0rou8mIz506eE4hjK4Ta0+Qin1tnimO4vg+c57wcRwOa658EjReZ9n/92RycoiC3hTbdudpwY3nVIEVbVY4JUmArZSSlS29ZugoK1tiBY51O4/T3nI/EZMApCu5GVToGgZsxKjt7bbeKgNADIoCTGCGz1LaIIB+dCTasdwnaFdoyzYKDJAwmRzfh8tnNooXWdfK526mY382TR2R5ypVi2y851ps9g+g8tM2MkxikpRzZJWn/s8h1IOxpCdaUrCoGTNV6kU6O3tD3VIZK7xPh6vL0ABtSXxyGDaojrcx0K8XtNdVeajdxdq9AWt29NUKxY+NW3H7RVcTudSJDlO5SBb9izCyOELd9DnwE4Irizo/AxFKiU9T5aTjcjhh/BegK8lq+Hg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:GVAP278MB0929.CHEP278.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(396003)(39850400004)(136003)(346002)(376002)(6506007)(2616005)(6512007)(86362001)(316002)(6666004)(44832011)(2906002)(5660300002)(7416002)(54906003)(26005)(1076003)(8936002)(110136005)(38100700002)(186003)(52116002)(508600001)(38350700002)(6486002)(36756003)(8676002)(4326008)(66476007)(66556008)(66946007)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SnMIsQcNd0CrpkoMJ8a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R6LebBT+V7Gl+hekSaUuFqC4INqc1uCB3SGc8YdDeBhGxFXn/BQG60aBCQDFlNeaGnR4o07CF9XttF0Jm1i2MzFUaX4zR7arHrLtE74Vte2NN3Y58z3EyrO5e7X/yJRpzLChdlRoynCoMIONcJE5YJuao3eDIHNfW87HNmIeOW3ECp91x8RM6rLtMvcTOLq9Q1BKgx3gnLDvqd+Jpt8ATcoTGm8vBQPS2uWLTPB7Ttg+2/0j6Mvp7s7bxCFxSgOHFP53MIFqJ5gBgGb0VyNyN+8NXyDeZBke7r7HhT2EvGB0SVv8WSSN829RnmBL8XMNUs8WqqerYOEiQKjlqkIgeJtB3qfXGgTJafNnFF1Mbue62CkaCinZ4PN95MYtd6gfeR933L7+OsOu5sPr5hj7BNKcdQS5zBctml+Izy1y2scm6tnkpe2cMVnbztzyCjK4FqHIOUqT+KCBr1cn/K/h0wbvWyUcAm4UGzDj5UCku71PxpeWg55yZF8bsUNEaRLgkk0xG+CzFfi+A73Tc8U2f+KJm4s5tkM6uNnjeXXS1WbrfYlVyYVPIE5RgriJVAMZ0zdtsCO8HqTrORJxESD8Zjka4T5YKxyW+9eNcIxKyBHTR85R1aYiLCRYy0XMBv3FJ16h4ESzDP4apveMHc2fLvJpnlc= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82bc273e-0f4d-4692-f99a-08da243eff7c X-MS-Exchange-CrossTenant-AuthSource: GVAP278MB0929.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 09:03:42.0080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CrHs5R0QV+RwyyTbQHnZ9gXQf0qXJ6Giqg6OXsLWfeR0bi5flUd9/1I0SH8PuXZoVdZhL9Zv6nYXwEaB+AoX5N7WYYzwfLv17c/g3PWMnmY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB0393 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org With a recent change now it is possible to detect the strapping option on SD8997, which allows to pick up a correct firmware for either SDIO-SDIO or SDIO-UART. This commit enables SDIO-UART firmware on SD8997. Signed-off-by: Andrejs Cainikovs --- drivers/net/wireless/marvell/mwifiex/sdio.c | 2 ++ drivers/net/wireless/marvell/mwifiex/sdio.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index d26efd56be08..76004bda0c02 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -408,6 +408,7 @@ static const struct mwifiex_sdio_device mwifiex_sdio_sd8977 = { static const struct mwifiex_sdio_device mwifiex_sdio_sd8997 = { .firmware = SD8997_DEFAULT_FW_NAME, + .firmware_sdiouart = SD8997_SDIOUART_FW_NAME, .reg = &mwifiex_reg_sd8997, .max_ports = 32, .mp_agg_pkt_limit = 16, @@ -3176,3 +3177,4 @@ MODULE_FIRMWARE(SD8887_DEFAULT_FW_NAME); MODULE_FIRMWARE(SD8977_DEFAULT_FW_NAME); MODULE_FIRMWARE(SD8987_DEFAULT_FW_NAME); MODULE_FIRMWARE(SD8997_DEFAULT_FW_NAME); +MODULE_FIRMWARE(SD8997_SDIOUART_FW_NAME); diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.h b/drivers/net/wireless/marvell/mwifiex/sdio.h index ad2c28cbb630..28e8f76bdd58 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.h +++ b/drivers/net/wireless/marvell/mwifiex/sdio.h @@ -39,6 +39,7 @@ #define SD8977_DEFAULT_FW_NAME "mrvl/sdsd8977_combo_v2.bin" #define SD8987_DEFAULT_FW_NAME "mrvl/sd8987_uapsta.bin" #define SD8997_DEFAULT_FW_NAME "mrvl/sdsd8997_combo_v4.bin" +#define SD8997_SDIOUART_FW_NAME "mrvl/sdiouart8997_combo_v4.bin" #define BLOCK_MODE 1 #define BYTE_MODE 0