From patchwork Tue Sep 10 03:04:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13797794 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2097.outbound.protection.outlook.com [40.107.255.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE08116DEA7; Tue, 10 Sep 2024 03:05:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.97 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937545; cv=fail; b=o110FkTquoQ9Ue/4xBqTnBlJr6bmT8wYOVtCeVEhTH1EtBgh9hA1/fy33pmE50Cz39nGkrrAZ0F1C3ckahPlXDgCrNwYLjSbh9Yzqw+umyG3k9b7Sp4QKa8MM/tqBX40zfa6pKRXjBNH62E+UTMIYDQvWj72NkCyiwK82Oj66+g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937545; c=relaxed/simple; bh=pvBFedbixSkiqWuMD5ggRHBeHefsL/vzl60gVabib1c=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=PmLZao7C2TzwmLCUvaeMhVB1bEEAc50k4kBD4eKMnBWv5O0VohPK44K/M2/6OsiZGWzldgPZf607SCJhTAhki79AKefPiQEETnaif7bxFnddw3GqCxev7m2K/hYGo+HowO9lXJ2AYJIkI/I9qU4kUNfzA91VqEBhYWKJe/e049U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e4FaJMlGeThX/Q3XlDAqb3CYAax5hraaJjc4ZfeWWyxRhuatqovMHhzbbFjfpbYUX8KM8BlCgxYJEBnSYuU5Q40xnQU/3e+r9VD7k/HcfP35PwT6pFeHZ8nPra+SDTaqb4VLne+R3xrl/m+g88by3RHKm5z+3u3Ki5kVOZndYXAi49OuJ6GqSiR52vNbvGlA0mAjF5bcrShKqWkoPPXPhuW1xWXW6kodLLOldTDhX73E/PlgCNuiTlcAWCXzCi5S8RyNASC0HWW1wAOgJrODwf6nrITVop/WWFsXq9pdptlNM0I4r4Nkgl+C4w07TLEUa0f6P6CTxkk/DtO+BW332Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KbxQ8CN2hEqCPJsO4yOc2S/gFbfZhs3WhsZPY+vH/Dw=; b=ABaU0U19dV5JSFID5rRQ6lvIfdvKvqSnLhf7LtX7TeguvURck17bkqirDFZfK7lgNaur2GnvMfXUCkK26gQY3TFcvuRJ2wWzaEsvdAABHDdOoLYo9Y2HlTMJWDAdoEhMZjBjYRj6fKAhWWTzCG3L3R14Bn49fxMXkckHvpOOezMM1DfAtXO3Qs8JpIho9gOIekygJNfV/RpGwnJaOEkBjwnHVws0d4imG8ZmfiFekd2KJZ8wOmts78Gk6+9jFOR5FfD978yEmcJIJh6NusKWdNaO2smNTcpOLVZeSQUKw/1g7uxZeOTdsfb3/zKyw3pPj4+okl3vm0i2uJ6SDGFLJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEZPR03MB8442.apcprd03.prod.outlook.com (2603:1096:101:21d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Tue, 10 Sep 2024 03:05:36 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7939.022; Tue, 10 Sep 2024 03:05:36 +0000 From: Jacobe Zang Date: Tue, 10 Sep 2024 11:04:11 +0800 Subject: [PATCH v14 1/4] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Message-Id: <20240910-wireless-mainline-v14-1-9d80fea5326d@wesion.com> References: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> In-Reply-To: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725937530; l=1081; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=pvBFedbixSkiqWuMD5ggRHBeHefsL/vzl60gVabib1c=; b=ggqWWBOE927fFqoGTZyalFb8LwnHtQGkIeSGfEEgIl0EK0H6RhxspIb/uBeqt31Qq/8ATNPZd WUa0E0PwrK2DJJz2LpxchWQCTG5ARuvsq1P52XbyRs7lbAiE1kJezKO X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: SI1PR02CA0047.apcprd02.prod.outlook.com (2603:1096:4:1f5::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEZPR03MB8442:EE_ X-MS-Office365-Filtering-Correlation-Id: b7c817d9-f445-40f9-badd-08dcd1457161 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?207PuFIg6NUIkrK8rBVU+yQuOWJJ6gY?= =?utf-8?q?jy3GNjyCMBYDI9bdtT/KH9vWoem0+PhX5fZZDhP4H8s1q+qaqnf5zs7VYAUvxo1Qj?= =?utf-8?q?Mh5J+nnLSkagLfXvfC9xadgt92xGl8RP40uaqwqgDh0MV4iDYlZnWeyV09I41etUT?= =?utf-8?q?WbVHkRqXtF6LS8fUG8rJE87ZvS9f5L5JulK/hcs4Eyjb96M9T2+chg4xZfoNYGV0g?= =?utf-8?q?4HAj1+7xu+KDnCfIQS/K1bDGokrCGEfebObJGMzlqdpunlpSua6LmS7yamRWX6l4p?= =?utf-8?q?oMXOX3qoThFOZbNLPWneLFP8Di+3hyswEJMsCU0RX1th0MX5cdTP7Rt4+JcIeZ8HJ?= =?utf-8?q?TLfxTyill1f9aArpXWlTlOS2P81c+fwPh/QwhAsyX3AdTJZoXNfkGOtvMv2c6TpxO?= =?utf-8?q?FNS/l1mp0jWRlcnPxV4kcDEUuZeO3XQRq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XXJn9Hhrjwp+YIpPTsooTWphoDJIhGJ1Z?= =?utf-8?q?T/tC+23PYhr0y2mvXyx13BRhs+VWxQOkFt+OwUjp5mPMtELvZz5a4H0=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(376014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FUpX9hLHhIZ+XbOay6AT/5LjLrzV?= =?utf-8?q?rWiu4KHGLbrOtK53nZVnzfUlsSp1af7CINAfqDrUPmA/+p+uHpbXW87E6lxO/WnxN?= =?utf-8?q?BLY6clvThSheRFy48fKoYhyonHVBui56hk4FnaiTwiLctJ9E2c08jSkuUWkKGF+g0?= =?utf-8?q?oF6xdt3DmAmqfeSgQei0pp1cgHASzksUWzCz2aL9il3RdDP7wu2bJTFLgbUvTkNmH?= =?utf-8?q?WwHCsVvgZOopUdRbSCuNqFy2E4mVbfiU5h/p+nFMKsDj6LuPy4T+ylZo4eeUtGiM/?= =?utf-8?q?rAl9AqRhijYHta5ByDSBtdQoBp6w4E2pMeMLkdBOmW1DwdneETFUAXzmQYEG+6/aG?= =?utf-8?q?u3gkV8rrEu0+9ajBpvnYcSVglx+a6ZZpUpy+AZHPQzXPXhzSV9QkJhVkK91n74JUy?= =?utf-8?q?CTsZzPRzgrT9E49SR7ZiDQApWFwGJyyISbWoJ6SRFf/rZkQ0F3PnnKFxSEbSxtX4K?= =?utf-8?q?G+FbxrW+wtuQ/dhFOecFZA7WcgS/e/fOi2kZr+zDNkPzbU4UB4vd9rVjhyhb3r581?= =?utf-8?q?JCgziXKv/HZwsslOlx0/ynvNw52hCRDxzBG32N3EV5vI4mXhrmr6kt3Lf28QzL1RI?= =?utf-8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o97cjBmubtxdkAbz6SIKQAN/tz3ri1//1ivwEPOaz5hMdbpJBBzhFTtM+mOQgI5Kq?= =?utf-8?q?XsfN8jA6EArC?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7c817d9-f445-40f9-badd-08dcd1457161 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 03:05:36.5885 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: G539ZfEu/fv29gXLkkHG4m70i7mL6tMP/UxG9jLAhoHVpQbMgRf1CHWD8iXQRxPs+vq5712QfXywlwR+Pmt6ZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB8442 It's the device id used by AP6275P which is the Wi-Fi module used by Rockchip's RK3588 evaluation board and also used in some other RK3588 boards. Acked-by: Arend van Spriel Acked-by: Krzysztof Kozlowski Signed-off-by: Jacobe Zang Reviewed-by: Sebastian Reichel --- Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index e564f20d8f415..2c2093c77ec9a 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -53,6 +53,7 @@ properties: - pci14e4,4488 # BCM4377 - pci14e4,4425 # BCM4378 - pci14e4,4433 # BCM4387 + - pci14e4,449d # BCM43752 reg: description: SDIO function number for the device (for most cases From patchwork Tue Sep 10 03:04:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13797795 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2097.outbound.protection.outlook.com [40.107.255.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08E56170A2B; Tue, 10 Sep 2024 03:05:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.97 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937547; cv=fail; b=Gp14JbdAf+LuCwiAqb7Yd6sO0jtXtpYlD7Ep9Oi4lRPPUmCv70usBZH1ZPJk8zzVDUiXf1kFFEfAUEqXTTzoUYItMQXbYl4SAhQ80LujJ/3me5bf7JqkfVcTxEYZF7GPKPvVmeTmBk2bgJySbrEvVfblXgCgotisJDVIj9mstHc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937547; c=relaxed/simple; bh=m4jywguzwzc9q75AMLYOPix+C0ZE5a5MGA4IZ7EIp5c=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=qDV5HV3qaHd8VRK4mBLrJ5EKgVD8VhcdX0eKvNwiI8jvzjJWt0iap9cvDHWM2WEPMr52O6LjIsjy1hTySU0YTRG8PTkG6t4OkK5gSVyK7+ote0XPDAEyCyA5MBGOWoO1ovUdhy1cZKrpF1TxoRiUS0uZ8ON4wkvUz0ZF0DvUYms= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u7bHjCssArMXzS031WwPXt3bVjo2GQgBviE5bb3Y9Tbm1jzTGWYTUZHdOgWmaxqRyzADmJlOK2xZ2tind3szhPAyE1gR1v5vqaXIvKI0Ck4BhqwmjBNxzA3J5r4nMTBAy+SKH0j/shJqh4+0I7RqDzgnN3M0SDubiVkUhWbE0yTxPYESBaF7bYQjK78hTVdHzL0wlUPN2o3EHaml+axZdg84xGp+ZDqZBS3mDzhfTOMrbom1fLr9qADlDHSPP3+JN+Z70OqWfKjdnVcN0ROr+XmYDkq8bQYNscjoZoduyMjfGrrARl0KI2CDJAc1t+4b1UOUZAOuw0GNAHVCyAC7ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=G/E0WGgE6Ehzy8g7GiG6jEMXz/oYkQ2gd4cyn/tSzSs=; b=F5MleNkzSztdUlATgeEdzVARh25izUiNHo000JQtWT8I9j+upp6OAtzr9nKqJf6PV/NdXuoNXDYp6u0fJyNJDaGynGuxfv6IO02xuawd+XWKv0+aKIYUUSxKTFW3sMlK1ysDA+kAVDe4tYzkCjRW7Lr2vF4FFyP5wO+2LsGw9HKw3Ne7cQCF4U04N7+TNFrjVOwPBDdV/6tMHuX5JMYprkeG6svlad7vamjFfkAM2Icz/Kwb3ONR+4AevQ6SkpJnabxZ/ebfV/szc9N0J0U3Ie74JjO+7czguWbvXeGLsE+WUFWBBMc/Uc0DSVVLesNORzkVWE+g5DORINBLRDZ2ig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEZPR03MB8442.apcprd03.prod.outlook.com (2603:1096:101:21d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Tue, 10 Sep 2024 03:05:39 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7939.022; Tue, 10 Sep 2024 03:05:39 +0000 From: Jacobe Zang Date: Tue, 10 Sep 2024 11:04:12 +0800 Subject: [PATCH v14 2/4] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Message-Id: <20240910-wireless-mainline-v14-2-9d80fea5326d@wesion.com> References: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> In-Reply-To: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725937530; l=1192; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=m4jywguzwzc9q75AMLYOPix+C0ZE5a5MGA4IZ7EIp5c=; b=SGPu7TWBt5M3JRtTaRdT+RbbOrcEPX4I5WRryJxvw+I+uh7tmVavdWXdJ7FNXTAkjJWr8EpOJ 82vnJv1bvdtCTYl25lhV6EU2wHM8wnIzLvikM0CUI4yBBaUviJaj5Ym X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: SI1PR02CA0047.apcprd02.prod.outlook.com (2603:1096:4:1f5::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEZPR03MB8442:EE_ X-MS-Office365-Filtering-Correlation-Id: 7cf8d827-ac9a-4181-c6aa-08dcd1457314 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?n9JVbm12NELsY1htxPmxdqTpYTe7SXw?= =?utf-8?q?2EBrcitSzpa9xm8D8h/1XCKzO46FeNDdxzEf0YGecSbVIWYbesMheIKcOW/eFpESG?= =?utf-8?q?pX8JAKbGmbeNwldQTS355CcTa1v8lp2DvBhIW1+XrRRT/DWiGWYf7Lve1eE+bVjb9?= =?utf-8?q?Bw/HOsUOukF3IBNf5RnrH5TsTWXIT10UZgEgcaYkdRz58/QWEj2qJ0r9N3bzdJ8Nu?= =?utf-8?q?Ai9cuUJ6kpW5c/2q83YYT6IW+zuXbQeHLlxhlQQ53ApeoiH7v32xXTIsDKYOP6dxc?= =?utf-8?q?ZwI0tTFRw/Ar7tMpvZdH8/gbzMTmfl4FQjHTGrdOwc3B+stzhXYvQfHh9QaUiyxzg?= =?utf-8?q?xyuaOCRWcJMSoD00BOE9Mdhb20fw3c5Ow2Y6O8XKYLpOL+ebtYzWCTZY5DiWEQBiK?= =?utf-8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AXGQyFUpfb42UhklPTAKQOUD28kGlEJY2gaDBIfrCinJ5UEvy+FLPjKu?= =?utf-8?q?/nkHvB51B7rfF2uRWPmCmDh/xl7jIB/zOc8JS3kLfDjpmP+cGjLe77M=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(376014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Ht1lrdMJi5dcoT96IyznepclL7AU?= =?utf-8?q?QAnjIrhMt5Xlax6X5ZjmylGt0abydHMgrWTHWx7KQiuPZXmSlKTRZDHBcsJPdA4HS?= =?utf-8?q?oBqtcTcyY14fOVXzjitvzsXU4lNGH4xj6yi7Uzqyp7URTdhaeyT6X7awJMCATYnZ7?= =?utf-8?q?Maj8IbfujcmMFVEzzuYV2SJ13xBg+oFPx6D4fubxFSlT+mStiUy3TtjAkvnQNkMbY?= =?utf-8?q?qKWfJaRIOC6jM0Vv2zAjISvzfU4WPtaD4VSHYL2xtnk7d6hSn2cMSY8OEDiVoc5wq?= =?utf-8?q?+HY+a2yrUd3RAK3Dzpdnd7/93xMnKgLXj1Fe+MBcN30G0Ojf5CL/3jCHILRMrZgka?= =?utf-8?q?U6mdp4NWCBjjbyLprZ9JBgz1/jkLViIci9e+WKjj8mubFF2QqWqZ7sXkefg8SfYku?= =?utf-8?q?UWtxvUajaXBAvDd80myNuy7QZmMgSt+pUBA0Zq/+c1xKCOcUeopaFTk0vahN+e9EZ?= =?utf-8?q?YPd0zF87dj0zN8CNwKLQnwtWgfLVhSOIZDmynk0USaMNA+zXgrk9xVVMcMkrSi5We?= =?utf-8?q?+kY5hXo5nQDhCT/lWm571DQHQzbzgPJWY9D4HpYaP1UubcvI0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yfJ8d8s6aHG2J?= =?utf-8?q?n2keqmB0D/cNoKsczmoVl0g3sQW1hzSHDLEBz0Jd/oVXIYCweGRv14rsmdzQo+PIY?= =?utf-8?q?ti80Z1H7yKk/?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7cf8d827-ac9a-4181-c6aa-08dcd1457314 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 03:05:39.4602 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2sEg6QZ2CIzPc4fs06uGSR0qfLmATMypz6/ZFBP9csgR+XOE1cUimaXxHc9E0+cmDWuw+e3zDq2kL2Pnl7gphg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB8442 Not only AP6275P Wi-Fi device but also all Broadcom wireless devices allow external low power clock input. In DTS the clock as an optional choice in the absence of an internal clock. Reviewed-by: Arend van Spriel Reviewed-by: Krzysztof Kozlowski Signed-off-by: Jacobe Zang Reviewed-by: Sebastian Reichel Acked-by: Arend van Spriel --- .../devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index 2c2093c77ec9a..a3607d55ef367 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -122,6 +122,14 @@ properties: NVRAM. This would normally be filled in by the bootloader from platform configuration data. + clocks: + items: + - description: External Low Power Clock input (32.768KHz) + + clock-names: + items: + - const: lpo + required: - compatible - reg From patchwork Tue Sep 10 03:04:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13797796 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2097.outbound.protection.outlook.com [40.107.255.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A84C914F122; Tue, 10 Sep 2024 03:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.97 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937549; cv=fail; b=V54lweI+OEFYrVdon1tr1A8DoLIfvv+XGOwi5IyFjJ0psQTByq1/m/gaRiNkCeZUIeJ9QFhAwTt2vHZnBQZK0NrwTwbU83u3Vd1tDl/jhcX3x92clEluHejf0pzNPqzl4aGDE56hSkB4OtJty/hRzSAXUs33Gmcv00/nMBoYW80= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937549; c=relaxed/simple; bh=6rKptISgX+yTYN/ILXeFCE7UDdObYAJtbyRJTS9NOTM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=PAlM68szBXgaGPlsjJDe+kTSWTIdKcwgrnexR9EC+p9oczGScWr72Q2bpplmh83PKejhTNKnNjT87t7YHecyUWkgA/Y/XSmBIBmfZ4W2vj8uSuVUqksaa8B5m5vCWAQmgt4DkfuT0F2yWT2jC+P4yP3dVCd6n0Biyar1DZU6s00= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AMhTvLpd+kaGoU5P37pY4eOi/51uX9zcuI032ZXes/bQoLFhXCpTpXsDc9Esp4Z71brRPnsuhtJgMhtB0zDg0t44mxbjCErfh7vfAswTvVqTiMMbd1XYTJa90MtII8AVq/xSbwK9xawkC7iSE01vwfaKLpGHY2QHRZ/8JfSU2cu9TOixMmUml6lvwG76orfrZJDg3KNeUrwXeFVm/QKSqYLXn0vFJkQedtwuucLwLX2Xa2pPBOTRuGDz3KyYGrWHjfUv0db2OHDaoToaXZz+Sgrd3jky0TX+ifE7KGoWxRliEtqLq6c+QwrE9Xak1oKB0a/YH9Cf5qCrMIZjozkN3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=xydvwPU1NKoa0szBoqrw+5ACxascr/GdnlvKtAfEmlc=; b=aHbtFmI3e1GNd9pSv4q2u7Dg59uIKgbROW7XhirmoaVUV1QmLbmkqgP3OdSUC17CBEzmsDpnFricfq4BsADnDc9vqKk7nrP728ukTtr0dPIzC3eHnKYXYmwbn8xwhuVZSV4XbJm21LNJmuD5EJJ2329s5nv5O5vraRE009x6fF10N3/3Fme/iI5FYkSOJUfRvzfhErcZdSRNzLxXewbIR8z6Yy863AfOka8lhfAYcr107oZL/scLP1dfxFddO/SGLJ//oYoEDcpnH5rC3s28jKYwEA/EIvBpBYmGEW1VQtXYhqgvDhQrH65vuRytvNV/rtsoWrQG+E798ze6642MBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEZPR03MB8442.apcprd03.prod.outlook.com (2603:1096:101:21d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Tue, 10 Sep 2024 03:05:42 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7939.022; Tue, 10 Sep 2024 03:05:42 +0000 From: Jacobe Zang Date: Tue, 10 Sep 2024 11:04:13 +0800 Subject: [PATCH v14 3/4] wifi: brcmfmac: Add optional lpo clock enable support Message-Id: <20240910-wireless-mainline-v14-3-9d80fea5326d@wesion.com> References: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> In-Reply-To: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Ondrej Jirman , Sai Krishna X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725937530; l=10056; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=6rKptISgX+yTYN/ILXeFCE7UDdObYAJtbyRJTS9NOTM=; b=tPcsDlzGN/GthEJ/1dklyATX5NUY5tSDnxEV1V8freOXZlIqwyDDa3SwijABin6QOTvA/AA38 S0RkqJl6MqLCbEzv/fMEZ8vhym8aQ+jwMHRnJZlb1wMDhpZfhuiu4j7 X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: SI1PR02CA0047.apcprd02.prod.outlook.com (2603:1096:4:1f5::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEZPR03MB8442:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d2c5905-06a4-4d32-7f31-08dcd14574d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?T4hE5zUZnW1ldOORKEot3QskS4DN/K/?= =?utf-8?q?qRv5IeFs5wlyGF2VbIa/ug/3vUM1VK1a0R9WECLLNffWwVnJ/vtuB0iEvYr2X9+dw?= =?utf-8?q?TU+DS2Rb4KuWIQqU+sNQEB3Pai/Xyu+tGIYv4ct9bNSbE8JbDQDieMTNdDeRVrSBs?= =?utf-8?q?eQxqPYOIFDWH313KImVIRa6UfvO9wtZexG4DNnpWrzsrMHI6q21+UqNky4SpEXJJz?= =?utf-8?q?F2mXhR83gpFrxHOVV07ZIetMSJbZV00SbcZMJAgo8hk6rL9wWfQjTO+U2LLI6vCVv?= =?utf-8?q?rIjhLeI5R2tAq/HQ4c/nz4S/VbzEpmFtMtx8KiuxfvMFHY9IoTgPuckG1lZ5rnexY?= =?utf-8?q?ulzaAbD8L8mA7uFY6mKl6t3e9XJ7oltzDHMkNxu4Oh5s0nV1YkD4Qdm/MX891x89i?= =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-8?q?T8akpvyeGMOkyBs5XnAfmStejQy9S9onVrqDhfLD1qzlboIW7tZCn3XN0AsS1Iq5K?= =?utf-8?q?aDes0eWrius3KXLPUDIFd31uhmSnihqqFi5TF014kyZASC/LSbT7YEQ=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(376014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lSb2s+BIO1KpW403YKpFCJqyZ7aH?= =?utf-8?q?GrqtQ1SL0Icw7O9UZo1QppErLJ6248uHScKLOkXVwQCCCOqIDyNnWxJ27JTmwhzqT?= =?utf-8?q?EKzuzKw7JV57QSty/hCpFG1SqMAoeM4+e+CajGvlhPz0TC9GCdWP4SLWgrSGTa7Hd?= =?utf-8?q?03BDs3dItiaNYidxKBx0Q/QJY+0w+6ltKKSaorfZ8itAsTxlkcPDi+L3ifwPLKGUS?= =?utf-8?q?rADKxdHW1lES19b63MrHkskcJEV0Q4KklG5/kMFX8Ul6zSPgGwu0hyFUdLeAO2LBF?= =?utf-8?q?SIKECeGga5HsYYuSPsz7m9NmRLULnmgqkgXHCdYjMUFgHQ0UUSAwZwcEy9/dy3Ztx?= =?utf-8?q?RnHhSHSyfYWt7aPf71zmz7nt5U36DbCxM8vnYTwhh4S81BhXE3fxJ4DWgXtxV5e+L?= =?utf-8?q?PbOqaNepYPeggL1cidxRLBroEpw9jHPrFF8EJyBUuyURuwZl/lElU/bLIG7FRYjme?= =?utf-8?q?Bjk5a5C1W2vFe0Xd3pwH82LZHMkNi10ecDIn+IO5SVYVQrg3+33IlCq8U4N6B+UY2?= =?utf-8?q?A7x8v6HlS1UkXCkG4eJuxnc4XVEkR9IBN9r9Et5/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ZyUYXF5f5T+Ktqdy2qRff9AaVx?= =?utf-8?q?c+U9U5GqyvqSOYvuUoO25Fzs1orxUUTTp+qC9iGMn3b+G9vTLP65UUtxAWqNUGHpA?= =?utf-8?q?iK2/JmZMI2lx?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d2c5905-06a4-4d32-7f31-08dcd14574d8 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 03:05:42.4386 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: spXNor9TBsnaslc2DKD7jgHPiRpnkU661dckIMn5O6jQi8joDIFhmeQfDunVJQ8oEnCo9qKNqy3K8q9uj6MEJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB8442 WiFi modules often require 32kHz clock to function. Add support to enable the clock to PCIe driver and move "brcm,bcm4329-fmac" check to the top of brcmf_of_probe. Change function prototypes from void to int and add appropriate errno's for return values that will be send to bus when error occurred. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Co-developed-by: Arend van Spriel Signed-off-by: Arend van Spriel Reviewed-by: Sai Krishna Signed-off-by: Jacobe Zang Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel # On RK3588 EVB1 Acked-by: Arend van Spriel --- .../wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 4 ++-- .../wireless/broadcom/brcm80211/brcmfmac/common.c | 3 ++- .../net/wireless/broadcom/brcm80211/brcmfmac/of.c | 25 ++++++++++++++++------ .../net/wireless/broadcom/brcm80211/brcmfmac/of.h | 9 ++++---- .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 3 +++ .../wireless/broadcom/brcm80211/brcmfmac/sdio.c | 22 ++++++++++++------- .../net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 3 +++ 7 files changed, 47 insertions(+), 22 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c index d35262335eaf7..17f6b33beabd8 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c @@ -947,8 +947,8 @@ int brcmf_sdiod_probe(struct brcmf_sdio_dev *sdiodev) /* try to attach to the target device */ sdiodev->bus = brcmf_sdio_probe(sdiodev); - if (!sdiodev->bus) { - ret = -ENODEV; + if (IS_ERR(sdiodev->bus)) { + ret = PTR_ERR(sdiodev->bus); goto out; } brcmf_sdiod_host_fixup(sdiodev->func2->card->host); diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c index b24faae35873d..58d50918dd177 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c @@ -561,7 +561,8 @@ struct brcmf_mp_device *brcmf_get_module_param(struct device *dev, if (!found) { /* No platform data for this device, try OF and DMI data */ brcmf_dmi_probe(settings, chip, chiprev); - brcmf_of_probe(dev, bus_type, settings); + if (brcmf_of_probe(dev, bus_type, settings) == -EPROBE_DEFER) + return ERR_PTR(-EPROBE_DEFER); brcmf_acpi_probe(dev, bus_type, settings); } return settings; diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index fe4f657561056..6d90be9529012 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "debug.h" @@ -65,12 +66,13 @@ static int brcmf_of_get_country_codes(struct device *dev, return 0; } -void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, - struct brcmf_mp_device *settings) +int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, + struct brcmf_mp_device *settings) { struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; struct device_node *root, *np = dev->of_node; struct of_phandle_args oirq; + struct clk *clk; const char *prop; int irq; int err; @@ -106,7 +108,7 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, board_type = devm_kstrdup(dev, tmp, GFP_KERNEL); if (!board_type) { of_node_put(root); - return; + return 0; } strreplace(board_type, '/', '-'); settings->board_type = board_type; @@ -114,8 +116,15 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, of_node_put(root); } + clk = devm_clk_get_optional_enabled(dev, "lpo"); + if (IS_ERR(clk)) + return PTR_ERR(clk); + + brcmf_dbg(INFO, "%s LPO clock\n", clk ? "enable" : "no"); + clk_set_rate(clk, 32768); + if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) - return; + return 0; err = brcmf_of_get_country_codes(dev, settings); if (err) @@ -124,23 +133,25 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, of_get_mac_address(np, settings->mac); if (bus_type != BRCMF_BUSTYPE_SDIO) - return; + return 0; if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) sdio->drive_strength = val; /* make sure there are interrupts defined in the node */ if (of_irq_parse_one(np, 0, &oirq)) - return; + return 0; irq = irq_create_of_mapping(&oirq); if (!irq) { brcmf_err("interrupt could not be mapped\n"); - return; + return 0; } irqf = irqd_get_trigger_type(irq_get_irq_data(irq)); sdio->oob_irq_supported = true; sdio->oob_irq_nr = irq; sdio->oob_irq_flags = irqf; + + return 0; } diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h index 10bf52253337e..ae124c73fc3b7 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h @@ -3,11 +3,12 @@ * Copyright (c) 2014 Broadcom Corporation */ #ifdef CONFIG_OF -void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, - struct brcmf_mp_device *settings); +int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, + struct brcmf_mp_device *settings); #else -static void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, - struct brcmf_mp_device *settings) +static int brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, + struct brcmf_mp_device *settings) { + return 0; } #endif /* CONFIG_OF */ diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index ce482a3877e90..190e8990618c5 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -2452,6 +2452,9 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) ret = -ENOMEM; goto fail; } + ret = PTR_ERR_OR_ZERO(devinfo->settings); + if (ret < 0) + goto fail; bus = kzalloc(sizeof(*bus), GFP_KERNEL); if (!bus) { diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index 1461dc453ac22..a9b4d560cbfc7 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -3943,7 +3943,7 @@ static const struct brcmf_buscore_ops brcmf_sdio_buscore_ops = { .write32 = brcmf_sdio_buscore_write32, }; -static bool +static int brcmf_sdio_probe_attach(struct brcmf_sdio *bus) { struct brcmf_sdio_dev *sdiodev; @@ -3953,6 +3953,7 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) u32 reg_val; u32 drivestrength; u32 enum_base; + int ret = -EBADE; sdiodev = bus->sdiodev; sdio_claim_host(sdiodev->func1); @@ -4001,8 +4002,9 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) BRCMF_BUSTYPE_SDIO, bus->ci->chip, bus->ci->chiprev); - if (!sdiodev->settings) { + if (IS_ERR_OR_NULL(sdiodev->settings)) { brcmf_err("Failed to get device parameters\n"); + ret = PTR_ERR_OR_ZERO(sdiodev->settings); goto fail; } /* platform specific configuration: @@ -4071,7 +4073,7 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) /* allocate header buffer */ bus->hdrbuf = kzalloc(MAX_HDR_READ + bus->head_align, GFP_KERNEL); if (!bus->hdrbuf) - return false; + return -ENOMEM; /* Locate an appropriately-aligned portion of hdrbuf */ bus->rxhdr = (u8 *) roundup((unsigned long)&bus->hdrbuf[0], bus->head_align); @@ -4082,11 +4084,11 @@ brcmf_sdio_probe_attach(struct brcmf_sdio *bus) if (bus->poll) bus->pollrate = 1; - return true; + return 0; fail: sdio_release_host(sdiodev->func1); - return false; + return ret; } static int @@ -4451,8 +4453,10 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) /* Allocate private bus interface state */ bus = kzalloc(sizeof(*bus), GFP_ATOMIC); - if (!bus) + if (!bus) { + ret = -ENOMEM; goto fail; + } bus->sdiodev = sdiodev; sdiodev->bus = bus; @@ -4467,6 +4471,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) dev_name(&sdiodev->func1->dev)); if (!wq) { brcmf_err("insufficient memory to create txworkqueue\n"); + ret = -ENOMEM; goto fail; } brcmf_sdiod_freezer_count(sdiodev); @@ -4474,7 +4479,8 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) bus->brcmf_wq = wq; /* attempt to attach to the dongle */ - if (!(brcmf_sdio_probe_attach(bus))) { + ret = brcmf_sdio_probe_attach(bus); + if (ret < 0) { brcmf_err("brcmf_sdio_probe_attach failed\n"); goto fail; } @@ -4546,7 +4552,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) fail: brcmf_sdio_remove(bus); - return NULL; + return ERR_PTR(ret); } /* Detach and free everything */ diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c index 8afbf529c7450..2821c27f317ee 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c @@ -1272,6 +1272,9 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo, ret = -ENOMEM; goto fail; } + ret = PTR_ERR_OR_ZERO(devinfo->settings); + if (ret < 0) + goto fail; if (!brcmf_usb_dlneeded(devinfo)) { ret = brcmf_alloc(devinfo->dev, devinfo->settings); From patchwork Tue Sep 10 03:04:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13797797 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2097.outbound.protection.outlook.com [40.107.255.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC7D9181D00; Tue, 10 Sep 2024 03:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.97 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937551; cv=fail; b=UeprwZIwD5zRRvGq53TPdMA6UJpqEIIG5s0mVMM+zHx/FI+dbwsxv9vWbheBpv0ql3KCtW9i5wWDo0RV2pvd/Zg6p8Nx02joV2QwdCGzpfyBQ2aqOMIQSjaS1nhqVvAAf0JxfJZ+1JeDijd8Tryc4ZWDcoYLf+Ju9LHK0uGBTrY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725937551; c=relaxed/simple; bh=eaPDKg4EgZjhgoZGjOIrFz/PouRc4pgRKLayAeEjx7s=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ptQvLcRC0mRVOiQySx3kpyMNr6L+tctWqzD2ePV0sqmOP6B5a4bBHYoYlXDZ7+YK9uNIn5fxPj1j4zqPTWDWd8H0k20Xr5BWfcLEd01quDZCKEuUO4e75KShIYB1WBqt0q03EgmqV9NjLM3eoolhpXNJ002O3UGAXTWArLZMQBM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WrlW/u3Uv8qjPHJCMoHtt10DqgFznE4Wozb2Ktx2ARbfJVQQwt9cXAqPKjpjg7v0y1VM7/eGNf4cz+L7byVlryPF1RIQBiKOUGNQ1mM1Q32BpPujpiW4N9zg3IEEa4RAdoRQiPDks6AKxO5SymxhmuO/oSfN0TmWnMQzxY2KGKWvfp2BPHZ0oLFAUFL+Fc9WOKk7dyUl5Hl1S9DZwcJaFBjyDLajk11m4b4dHsqxUOTIwkAmI37gE4eYRFmnsAkINyE1dYBl/EX3052dzDZhjrQobuFv+Q7ZlnetxwkTQnNTYTBZHPM0WcmRQmGImblxabyN5zlJDf16h4awq6IY5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=iIa/19ZSdmiXE/+0Ze0XxBHm6vHkH0nd5ZiJsa5DkWA=; b=xU30arzq64KyrnjYoeVM7zf4mmV7HvOIUf3sA5A9r3mMWXOk6nJiFtKhreMCaCa/0KZRz4o7PVdaRIoDGcrLtt6ko3hfp/1Vvuql/kMNJnMJiEBxw8pWapNjcWystOGJAIR6HHRRZHnUs8Kwy+6dOdKM21jyHOc74YHZ0TUBcZxLNNX37GbFI76NBOWZT5TnlfYpjCeTmKfCczXePK0txvZqz/NKS+bp8rd+lMnMOMZh1zH6sMDdvNDnwoY+BI5uLjG6K7/K75n+mGzZ4upWSuTe7vAUKqUC425PZnE4mvXQVFBMX7gBIEtqsoIsyMZN/93VncXOM64cF7s2WaF0WA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEZPR03MB8442.apcprd03.prod.outlook.com (2603:1096:101:21d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Tue, 10 Sep 2024 03:05:45 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7939.022; Tue, 10 Sep 2024 03:05:45 +0000 From: Jacobe Zang Date: Tue, 10 Sep 2024 11:04:14 +0800 Subject: [PATCH v14 4/4] wifi: brcmfmac: add flag for random seed during firmware download Message-Id: <20240910-wireless-mainline-v14-4-9d80fea5326d@wesion.com> References: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> In-Reply-To: <20240910-wireless-mainline-v14-0-9d80fea5326d@wesion.com> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , van Spriel , Arend van Spriel Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang , Ondrej Jirman X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725937530; l=6614; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=eaPDKg4EgZjhgoZGjOIrFz/PouRc4pgRKLayAeEjx7s=; b=ybBsYhJi28XgyZE8MkJ1Fh9bwJnv2zBJOvOgRj/u52fjUFj3p3qw3pBn55DxddHuo3MuI1++a Q4OlTuP+D8GBHoT6tXwf22OumhKX3Zc+eSwB5Vsf/9tKi5ToE8asxLu X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: SI1PR02CA0047.apcprd02.prod.outlook.com (2603:1096:4:1f5::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEZPR03MB8442:EE_ X-MS-Office365-Filtering-Correlation-Id: 59c6b97e-811f-402e-49e3-08dcd1457694 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|52116014|1800799024|921020|38350700014; X-Microsoft-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tCoiCobyuepWHPZEkYy25Gmr0MZ26jfdnPVaocJ+?= =?utf-8?q?3kor2G9BO3vXumJFYCS+5b7zckDIKmlQWxWcpOJXtB6bsIRVSF+yXoULd36E5D3yy?= =?utf-8?q?AUXU//fenyhkrgKbUJK2AEXYLvep521z2iu7HOPPAjA8GPWuuMu6PdcZ+xrodGK5s?= =?utf-8?q?hR60TGzAymIzatlG8Ait/HLGYmGd3/8Dfz9J5wXfZtVoPGzOH1aDCF0ot8qKsIj0B?= =?utf-8?q?vXcagl9zQVrG5aQ75vZ2t1g70PPbKw9aVp1muwM0p/QrsuvSUeCfgKa4Q3pkUCjL2?= =?utf-8?q?tIZ8Fhv1mT7iQQKPEZ+3yRikU9yjhUWvES6ejan/8Ep73OOWvEp7AFEJ4KZd4mvWR?= =?utf-8?q?RP723JsorJmhsF0YfK7ChJI7ahZlrzEPfljndrjVzKuUXEx8LXyVFrVhNqB1HnHTq?= =?utf-8?q?ZYtY3nDYyqgz7K/WZ5kwAnjEB/M57y1imU7UthMIuFXds6OCrnPvF2NhSKOGceAkA?= =?utf-8?q?WMNyCKs8Y9s16Xa7kTuh7GQ3/4B+VZmhsRDI/pA4YK0BB+G1sA3XPj4=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(376014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Y7eCA/yYW1FJRTPQswXPeKxRM/rb?= =?utf-8?q?p6jET/fzKxfmrBB4vX4FTwO5ZMDq0xnS6qOxdMGsJ1SAhWQurpJdy4yz83npIgvuK?= =?utf-8?q?NpJ39u/F55jKAWruZ0WThvA2XqRQvmSJzmQTF93pcqImvZlMtDJ4qJMUZCwp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utf-8?q?H5Xcl4JcVpqjRPzmywu4qFj6t8InrGolVZudLUYb5os9sEX6l8rSL8Bnc6a6zN0eV?= =?utf-8?q?pQkn6XsTSLDt9syT8cEW+x3k83DloICeX+mXW4p4CdpdB6RQuqX8g7cP4JQlDaWDR?= =?utf-8?q?NrIyHHYzJQ3cRXtA7lSqG8O+Bc7qqwfHmDtTT7rWr0gKc1YPwxot8EnY0dtIVNXsb?= =?utf-8?q?BmMAnQI1nUFx3JLEvhVlU0puBgV/L4u5ggcCZ4qkMp54kiv+ZFXJLDD7LmwFv9yp9?= =?utf-8?q?YpsSkOXod1Qo4Ia1vaoIgBDQ1WLxwDRkxmlStIPYsdBagXL1RR8Y9m2vvOI9YUtU8?= =?utf-8?q?4sdyTU/MSSfuC0KbMJaW6zG8se3PIH/Viv/gqOiMpAfpDutB/qGhd048fw9O1kApH?= =?utf-8?q?0LAqg0bemd/GGGR/0DUTRCj5gzoTLqXTMUXKGpRcV4OtqWGnVnhI+N/bt8022+Ljd?= =?utf-8?q?W/BXjXeiP4OIB4cA2tREaaNbaMG9lA8nOrpugeN0+bVar9SexaW9jyJcc6GcHd4Kd?= =?utf-8?q?kmH2UKnPU+pP?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59c6b97e-811f-402e-49e3-08dcd1457694 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 03:05:45.2966 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UJKu7YQMST++oeBNxrq1ODwW8RZaqVPAZo2Z0AJo596Fh13DcmOHKgpQD3JlpcKfhdPxIf7osZLD8IpoPaNipw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR03MB8442 Providing the random seed to firmware was tied to the fact that the device has a valid OTP, which worked for some Apple chips. However, it turns out the BCM43752 device also needs the random seed in order to get firmware running. Suspect it is simply tied to the firmware branch used for the device. Introducing a mechanism to allow setting it for a device through the device table. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Co-developed-by: Arend van Spriel Signed-off-by: Arend van Spriel Signed-off-by: Jacobe Zang Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel # On RK3588 EVB1 Acked-by: Arend van Spriel --- .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 52 ++++++++++++++++++---- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 + 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index 190e8990618c5..c0fdaa4dceda4 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -66,6 +66,7 @@ BRCMF_FW_DEF(4365C, "brcmfmac4365c-pcie"); BRCMF_FW_DEF(4366B, "brcmfmac4366b-pcie"); BRCMF_FW_DEF(4366C, "brcmfmac4366c-pcie"); BRCMF_FW_DEF(4371, "brcmfmac4371-pcie"); +BRCMF_FW_CLM_DEF(43752, "brcmfmac43752-pcie"); BRCMF_FW_CLM_DEF(4377B3, "brcmfmac4377b3-pcie"); BRCMF_FW_CLM_DEF(4378B1, "brcmfmac4378b1-pcie"); BRCMF_FW_CLM_DEF(4378B3, "brcmfmac4378b3-pcie"); @@ -104,6 +105,7 @@ static const struct brcmf_firmware_mapping brcmf_pcie_fwnames[] = { BRCMF_FW_ENTRY(BRCM_CC_43664_CHIP_ID, 0xFFFFFFF0, 4366C), BRCMF_FW_ENTRY(BRCM_CC_43666_CHIP_ID, 0xFFFFFFF0, 4366C), BRCMF_FW_ENTRY(BRCM_CC_4371_CHIP_ID, 0xFFFFFFFF, 4371), + BRCMF_FW_ENTRY(BRCM_CC_43752_CHIP_ID, 0xFFFFFFFF, 43752), BRCMF_FW_ENTRY(BRCM_CC_4377_CHIP_ID, 0xFFFFFFFF, 4377B3), /* revision ID 4 */ BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0x0000000F, 4378B1), /* revision ID 3 */ BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0xFFFFFFE0, 4378B3), /* revision ID 5 */ @@ -353,6 +355,7 @@ struct brcmf_pciedev_info { u16 value); struct brcmf_mp_device *settings; struct brcmf_otp_params otp; + bool fwseed; #ifdef DEBUG u32 console_interval; bool console_active; @@ -1715,14 +1718,14 @@ static int brcmf_pcie_download_fw_nvram(struct brcmf_pciedev_info *devinfo, memcpy_toio(devinfo->tcm + address, nvram, nvram_len); brcmf_fw_nvram_free(nvram); - if (devinfo->otp.valid) { + if (devinfo->fwseed) { size_t rand_len = BRCMF_RANDOM_SEED_LENGTH; struct brcmf_random_seed_footer footer = { .length = cpu_to_le32(rand_len), .magic = cpu_to_le32(BRCMF_RANDOM_SEED_MAGIC), }; - /* Some Apple chips/firmwares expect a buffer of random + /* Some chips/firmwares expect a buffer of random * data to be present before NVRAM */ brcmf_dbg(PCIE, "Download random seed\n"); @@ -2394,6 +2397,37 @@ static void brcmf_pcie_debugfs_create(struct device *dev) } #endif +struct brcmf_pcie_drvdata { + enum brcmf_fwvendor vendor; + bool fw_seed; +}; + +enum { + BRCMF_DRVDATA_CYW, + BRCMF_DRVDATA_BCA, + BRCMF_DRVDATA_WCC, + BRCMF_DRVDATA_WCC_SEED, +}; + +static const struct brcmf_pcie_drvdata drvdata[] = { + [BRCMF_DRVDATA_CYW] = { + .vendor = BRCMF_FWVENDOR_CYW, + .fw_seed = false, + }, + [BRCMF_DRVDATA_BCA] = { + .vendor = BRCMF_FWVENDOR_BCA, + .fw_seed = false, + }, + [BRCMF_DRVDATA_WCC] = { + .vendor = BRCMF_FWVENDOR_WCC, + .fw_seed = false, + }, + [BRCMF_DRVDATA_WCC_SEED] = { + .vendor = BRCMF_FWVENDOR_WCC, + .fw_seed = true, + }, +}; + /* Forward declaration for pci_match_id() call */ static const struct pci_device_id brcmf_pcie_devid_table[]; @@ -2475,9 +2509,10 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) bus->bus_priv.pcie = pcie_bus_dev; bus->ops = &brcmf_pcie_bus_ops; bus->proto_type = BRCMF_PROTO_MSGBUF; - bus->fwvid = id->driver_data; bus->chip = devinfo->coreid; bus->wowl_supported = pci_pme_capable(pdev, PCI_D3hot); + bus->fwvid = drvdata[id->driver_data].vendor; + devinfo->fwseed = drvdata[id->driver_data].fw_seed; dev_set_drvdata(&pdev->dev, bus); ret = brcmf_alloc(&devinfo->pdev->dev, devinfo->settings); @@ -2663,14 +2698,14 @@ static const struct dev_pm_ops brcmf_pciedrvr_pm = { BRCM_PCIE_VENDOR_ID_BROADCOM, (dev_id), \ PCI_ANY_ID, PCI_ANY_ID, \ PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, \ - BRCMF_FWVENDOR_ ## fw_vend \ + BRCMF_DRVDATA_ ## fw_vend \ } #define BRCMF_PCIE_DEVICE_SUB(dev_id, subvend, subdev, fw_vend) \ { \ BRCM_PCIE_VENDOR_ID_BROADCOM, (dev_id), \ (subvend), (subdev), \ PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, \ - BRCMF_FWVENDOR_ ## fw_vend \ + BRCMF_DRVDATA_ ## fw_vend \ } static const struct pci_device_id brcmf_pcie_devid_table[] = { @@ -2698,9 +2733,10 @@ static const struct pci_device_id brcmf_pcie_devid_table[] = { BRCMF_PCIE_DEVICE(BRCM_PCIE_4366_5G_DEVICE_ID, BCA), BRCMF_PCIE_DEVICE(BRCM_PCIE_4371_DEVICE_ID, WCC), BRCMF_PCIE_DEVICE(BRCM_PCIE_43596_DEVICE_ID, CYW), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_43752_DEVICE_ID, WCC_SEED), { /* end: all zeroes */ } }; diff --git a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h index 44684bf1b9acc..c1e22c589d85e 100644 --- a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h +++ b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h @@ -52,6 +52,7 @@ #define BRCM_CC_43664_CHIP_ID 43664 #define BRCM_CC_43666_CHIP_ID 43666 #define BRCM_CC_4371_CHIP_ID 0x4371 +#define BRCM_CC_43752_CHIP_ID 43752 #define BRCM_CC_4377_CHIP_ID 0x4377 #define BRCM_CC_4378_CHIP_ID 0x4378 #define BRCM_CC_4387_CHIP_ID 0x4387 @@ -94,6 +95,7 @@ #define BRCM_PCIE_4366_5G_DEVICE_ID 0x43c5 #define BRCM_PCIE_4371_DEVICE_ID 0x440d #define BRCM_PCIE_43596_DEVICE_ID 0x4415 +#define BRCM_PCIE_43752_DEVICE_ID 0x449d #define BRCM_PCIE_4377_DEVICE_ID 0x4488 #define BRCM_PCIE_4378_DEVICE_ID 0x4425 #define BRCM_PCIE_4387_DEVICE_ID 0x4433