From nobody Sat Nov 30 10:38:33 2024 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-kernel@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?B?MjA3UHVGSWc2TlVJa3JLOHJCVlUreVF1T1dKSjZnWWp5M0dOanlDTUJZREk5?= =?utf-8?B?YmR0VC9LSDl2V29lbTArUGhYNWZaWkRoUDRIOHMxcStxYXFuZjV6czdWWUFV?= =?utf-8?B?dnhvMVFqTWg1SitubkxTa2FnTGZYdmZDOXhhZGd0OTJ4R2w4UlA0MHVhcXdx?= =?utf-8?B?Z0RoME1WNGlEWWxabldleVYwOUk0MWV0VVRXYlZIa1JxWHRGNkxTOGZVRzhy?= =?utf-8?B?SkU4N1p2UzlmNUw1SnVsSy9oY3M0RXlqYjk2TTlUMitjaGc0eFpmb05ZR1Yw?= =?utf-8?B?ZzRIQWoxKzd4dStLRG5DZklRUy9LMWJER29rckNHRWZlYk9iSkdNemxxZHB1?= =?utf-8?B?bmxwU3VhNkxtUzd5YW1SV1g2bDRwb01YT1gzcW9UaEZPWmJOTFBXbmVMRlA4?= =?utf-8?B?RGkrM2h5c3dFSk1zQ1UwUlgxdGgwTVg1Y2RUUDdSdDQrSmNJZVo4SEpUTGZ4?= =?utf-8?B?VHlpbGwxZjlhQXJwWFdsVGxPUzJQ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T3VvTjdCeWg0Z1RMTkF5b3pkNFJvNDhCbGpTdWpSTVZs?= =?utf-8?B?L0VheHVNdEVIdFpYNGc2T2UwY29nWFlwVlJTeFN1QkgrVGdDWTM3QVFlMjl0?= =?utf-8?B?VzhFaGpoUi8rSVVuUnRFSk1wWE51YVA0eG0wSTYxREJLcm90Z1VxODRaQUg3?= =?utf-8?B?YzREM0UvZTFiUVF2bktwc1kyT2hxTGRCaURZOVlYMW9qWXR4TlZHd1RFdnpj?= =?utf-8?B?azNGSnhqU0NuU3BTVHhpYnZ6Vkw0YnNxcVdPaGFOeWF4bEtTV0dZRW5lU00x?= =?utf-8?B?UGowWStxNkRCK2NvejYyWE5VY0Q3TzhhVjZKbElTUGV6YmVTbWxCcVBmcytt?= =?utf-8?B?QmpPS2dhSXZlWHpQYm9ta1hGSTlYMFJBdjlsRGIreHltdmZSS0U5c3g1eXYz?= =?utf-8?B?cXhLUmJpbmJrQ2plZFhYSm45SGhyandwK1lJcFBUc29vVFdwaG9ESkloR0ox?= =?utf-8?B?WlQvdEMrMjNQWWhyMHkybXZYeXgxM0JSaHMrVld4UU9rRnQrT3dVanA1bVBN?= =?utf-8?Q?tELvZz5a4H0=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?B?RlVwWDloTEhoSVorWGJPYXk2QVQvNUxqTHJ6VnJXaXU0S0hHTGJyT3RLNTNu?= =?utf-8?B?WlZuemZVbHNTcDFhZjdDSU5BZnFEclVQbUEvK3ArdUhwYlhXODdFNmx4Ty9X?= =?utf-8?B?bnhOQkxZNmNsdlRoU2hlUkZ5NDhmS29ZaHl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xP?= =?utf-8?B?MDdOY1pNbGJ5Qnk2a1hmV0t3ODJEbkZVZmROeTRmYUV2L2YweDFxYkJoWW1C?= =?utf-8?B?YlgxS1FGU1dHaHpZMFpoRTNsUjNqU0xZWEFnaVNYUVdJU2IrWXdvOTdjakJt?= =?utf-8?B?dWJ0eGRrQWJ6NlNJS1FBTi90ejNyaTEvLzFpdndFUE9hejVoTWRicEpCQnpo?= =?utf-8?Q?FTtM+mOQgI5KqXsfN8jA6EArC?= 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-fm= ac.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 =20 reg: description: SDIO function number for the device (for most cases --=20 2.34.1 From nobody Sat Nov 30 10:38:33 2024 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-kernel@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?B?bjlKVmJtMTJORUxzWTFodHhQbXhkcVRwWVRlN1NYdzJFQnJjaXRTenBhOXht?= =?utf-8?B?OEQ4aC8xWENLek80NkZlTkRkeHpFZjBZR2VjU2JWSVdZYmVzTWhlSUtjT1cv?= =?utf-8?B?ZUZwRVNHcFg4SkFLYkdtYmVOd2xkUVRTMzU1Q2NUYTF2OGxwMkR2QmhJVzEr?= =?utf-8?B?WHJSUlQvRFdpR1dZZjdMdmUxZUUrYlZqYjlCdy9IT3NVT3VrRjNJQk5mNVJu?= =?utf-8?B?ckg1VHNUV1hJVDEwVVpnRWdjYVlrZFJ6NTgvUVdFajJxSjByOU4zYnpkSjhO?= =?utf-8?B?dUFpOWN1VUo2a3BXNWMvMnE4M1lZ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ZwQmtVRmR6dTdwWUJpVUVQUC9XenVUczRmazgxQ25i?= =?utf-8?B?YnZ4NmFnaURyRmNkSytZd0paakM3RC9pMjdIaGlVSEVFczdnVHB1NjRVUEM0?= =?utf-8?B?aFZ5TEFCWEM1MUVUV1FJN2R2QmwzUmRhbGNQZFV4cGJGbW1OOW5rbm9tOEMx?= =?utf-8?B?T05jTjNBS2d4VDlEdXovK3RBcGtnYWxHcnkyL0NNSm91SFZYYmVWTU5aZlQ3?= =?utf-8?B?d1FhblBlaXdzcVBUdE9hYVlmR3dTSnpLQm1ORHRoTE02WDFhZmxKdW5qclFI?= =?utf-8?B?TGYzVjc0NEJRMmZBVDJ6K0ZsS2J5ZkFxRG55UWYza2FSVHFKN01zV1dZcFNM?= =?utf-8?B?eU12ODlGb3IvbVhSdXpKZTN6NzkxdW1xUUJMMDFFTEpSNko5emwvNmFvWVpP?= =?utf-8?B?ckZNeHpRSG5SWitLeHhHVHdWdEg5MURjQ2x0ZGhSb1hyKzJnZkY2NFJneE1D?= =?utf-8?B?VzZXRmVQdy9tSlIvbWZSV2d6VnJaelpZeXhmbnJUVVEvc2FFNmQrWXBsWWJB?= =?utf-8?B?bDVXd0ZvSjVVb0tZRDZLODhuQzJtcWwzSDlUMFpXYmtZQjFBWEdReUZVcGZi?= =?utf-8?B?NDJVaGtsUFRBS1FPVUQyOGtHbEVKWTJnYURCSWZyQ2luSjVVRXZ5K0ZMUGpL?= =?utf-8?B?dS9ua0h2QjUxQjdyZkYydVJXUG1DbURoL3hsN2pJQi96T2M4SlMza0xmRGpw?= =?utf-8?Q?mP+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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3pCOHNZelF6TjF5TXhhOG9rb0tPajZzOVNHY2F6bXQ2M0M4?= =?utf-8?B?RkZxTk55d2RiSkpUTmtMMlgzaTEyVnFKYk9LT3dpTXdJSjlDbzJJbTZkTVMr?= =?utf-8?B?ejdBTS9PS3llQVRYVUw4ZFlNY05tMHpuTDBSenc1TkdWSmNOZS93QnIyQlRz?= =?utf-8?B?Tk9xMStjWHh0YmEvZlUwMk11UnVNTE1ScEJEVWVoY01BMVIxZkZSQlc0aHlE?= =?utf-8?B?SEpTUUlyV3RZMDB0NjI2UGVhQU9WU3RETnlmSjhkOHM2YUhHMkpuMmtlcW1C?= =?utf-8?B?MEQvY05vS3Njem1vVmwwZzNzUVcxaHpTSERMRUJ6MEpkL29WWElZQ3dlR1J2?= =?utf-8?Q?14rsmdzQo+PIYti80Z1H7yKk/?= 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 Acked-by: Arend van Spriel Reviewed-by: Sebastian Reichel --- .../devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml | 8 ++++= ++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fm= ac.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 platf= orm configuration data. =20 + clocks: + items: + - description: External Low Power Clock input (32.768KHz) + + clock-names: + items: + - const: lpo + required: - compatible - reg --=20 2.34.1 From nobody Sat Nov 30 10:38:33 2024 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-kernel@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?B?VDRoRTV6VVpuVzFsZE9PUktFb3QzUXNrUzRETi9LL3FSdjVJZUZzNXdseUdG?= =?utf-8?B?MlZiSWEvdWcvM3ZVTTFWSzFhMFI5V0VDTExOZmZXd1ZuSi92dHVCMGlFdlly?= =?utf-8?B?Mlg5K2R3VFUrRFMyUmI0S3VXSVFxVStzTlFFQjNQYWkvWHl1K3RHSVl2NGN0?= =?utf-8?B?O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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?B?bFNiMnMrQklPMUtwVzQwM1lLcEZDSnF5WjdhSEdycXRRMVNMMEljdzdPOVVa?= =?utf-8?B?bzFRcHBFckxKNjI0OHVIU2NLTE9rWFZ3UUNDQ09xSUR5Tm5XeEoyN0pUbXdo?= =?utf-8?B?enFURUt6dXpLdzdKVjU3UVN0eS9oQ3BGRzFTcU1Bb2VNNCtlK0Nhakd2bGhQ?= =?utf-8?B?ejBUQzlHQ2RXUDRTTFdnclNHVGE3SGQwM0JEczNkSXRpYU5ZaWR4S0J4MFEv?= =?utf-8?B?UUpZKzB3KzZsdEtLU2FvcmZaOGl0QXNUeGxrY1BEaStMM2lmd1BMS0dVU3JB?= =?utf-8?B?REt4ZEhXMWxFUzE5YjYzTXJIa3NrY0pFVjBRNEtrbEc1L2tNRlg4VWw2elNQ?= =?utf-8?B?Z0d3dTBoeUZVZExlQU8yTEJGU0lLRUNlR2dhNUhzWVl1U1BzejdtOU5tUkxV?= =?utf-8?B?TG5tZ3FrZ1hIQ2RZak1VRmdIUTBVVVNBd1p3Y0V5OS9keTNadHhSbkhoU0hT?= =?utf-8?B?eWZZV3Q3YVBmNzF6bXo3bnQ1VTM2RGJDeE04dm5ZVHdoaDRTODFCaFhFM2Z4?= =?utf-8?B?SjREV2dYdHhWNWUrTFBiT3FhTmVwWVBlZ2dMMWNpZHhSTEJyb0VwdzlqSFBy?= =?utf-8?B?RkY4RUp5QlV1eVVSdXdabC9sRWxVL2JMSUc3RlJZam1lQmprNWE1QzFXMnZG?= =?utf-8?B?ZTBYZDNwd0g4MkxaSE1rTmkxMGVjREluK0lPNVNWWVZRcmczKz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cXRicGdWSllvU2QwaFFBdkEr?= =?utf-8?B?dUJmWjdMNXh3UWFkVzdtaFh2eDJXTzh0d3JsM2tyOG9aL3dxem9CVDNyRy9Z?= =?utf-8?B?N0o2eG0yK1NWeHJ3YXNMZEM0cS9MRnMyOXh5NnBLeVRkM2M4Z0pEakp1UndS?= =?utf-8?B?OUtOVkVjT0VqUXFlQXNmcnNTU0VBcHZ1N1JPNnMyQVRtQURBVS8zMWc3TDRX?= =?utf-8?B?dVo4M1doU3pYTmovd0tTc0dsdC9GbitUNkxBbm1kZHNEZEI5aDRTaDJQTlRO?= =?utf-8?B?VkJjWkU4azhKZVpta3B0QlZzUTNCZWJFUmJBR0lVdHJscktzN0MxTk1XYkFU?= =?utf-8?B?Yy9KSjMxZTV1ald3MHAxTC9NTVpXZGRSMDM1QWtaYm5QR3B0UlRuNnQzQTdx?= =?utf-8?B?cHFCZDFNVmZEOGovWnlVWVhGNWY1VCtLdHFkeTJxUmZmOUFhVnhjK1U5VTVH?= =?utf-8?B?cXl2cVNPWXZ1VW9PMjVGenMxb3J4VVVUVHArcUM5aUdNbjNiK0c5dlRMUDY1?= =?utf-8?Q?UUtxAWqNUGHpAiK2/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 Acked-by: Arend van Spriel Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel # On RK3588 = EVB1 --- .../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/dr= ivers/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) =20 /* try to attach to the target device */ sdiodev->bus =3D brcmf_sdio_probe(sdiodev); - if (!sdiodev->bus) { - ret =3D -ENODEV; + if (IS_ERR(sdiodev->bus)) { + ret =3D 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/dr= ivers/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 d= evice *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) =3D=3D -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/driver= s/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 =20 #include #include "debug.h" @@ -65,12 +66,13 @@ static int brcmf_of_get_country_codes(struct device *de= v, return 0; } =20 -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 =3D &settings->bus.sdio; struct device_node *root, *np =3D 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 =3D devm_kstrdup(dev, tmp, GFP_KERNEL); if (!board_type) { of_node_put(root); - return; + return 0; } strreplace(board_type, '/', '-'); settings->board_type =3D board_type; @@ -114,8 +116,15 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus= _type bus_type, of_node_put(root); } =20 + clk =3D 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; =20 err =3D brcmf_of_get_country_codes(dev, settings); if (err) @@ -124,23 +133,25 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bu= s_type bus_type, of_get_mac_address(np, settings->mac); =20 if (bus_type !=3D BRCMF_BUSTYPE_SDIO) - return; + return 0; =20 if (of_property_read_u32(np, "brcm,drive-strength", &val) =3D=3D 0) sdio->drive_strength =3D val; =20 /* make sure there are interrupts defined in the node */ if (of_irq_parse_one(np, 0, &oirq)) - return; + return 0; =20 irq =3D irq_create_of_mapping(&oirq); if (!irq) { brcmf_err("interrupt could not be mapped\n"); - return; + return 0; } irqf =3D irqd_get_trigger_type(irq_get_irq_data(irq)); =20 sdio->oob_irq_supported =3D true; sdio->oob_irq_nr =3D irq; sdio->oob_irq_flags =3D irqf; + + return 0; } diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.h b/driver= s/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_typ= e, - 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/driv= ers/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 p= ci_device_id *id) ret =3D -ENOMEM; goto fail; } + ret =3D PTR_ERR_OR_ZERO(devinfo->settings); + if (ret < 0) + goto fail; =20 bus =3D kzalloc(sizeof(*bus), GFP_KERNEL); if (!bus) { diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/driv= ers/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_busc= ore_ops =3D { .write32 =3D brcmf_sdio_buscore_write32, }; =20 -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 =3D -EBADE; =20 sdiodev =3D 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 =3D 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 =3D 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 =3D (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 =3D 1; =20 - return true; + return 0; =20 fail: sdio_release_host(sdiodev->func1); - return false; + return ret; } =20 static int @@ -4451,8 +4453,10 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdi= o_dev *sdiodev) =20 /* Allocate private bus interface state */ bus =3D kzalloc(sizeof(*bus), GFP_ATOMIC); - if (!bus) + if (!bus) { + ret =3D -ENOMEM; goto fail; + } =20 bus->sdiodev =3D sdiodev; sdiodev->bus =3D 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 =3D -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 =3D wq; =20 /* attempt to attach to the dongle */ - if (!(brcmf_sdio_probe_attach(bus))) { + ret =3D 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) =20 fail: brcmf_sdio_remove(bus); - return NULL; + return ERR_PTR(ret); } =20 /* Detach and free everything */ diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drive= rs/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_inf= o *devinfo, ret =3D -ENOMEM; goto fail; } + ret =3D PTR_ERR_OR_ZERO(devinfo->settings); + if (ret < 0) + goto fail; =20 if (!brcmf_usb_dlneeded(devinfo)) { ret =3D brcmf_alloc(devinfo->dev, devinfo->settings); --=20 2.34.1 From nobody Sat Nov 30 10:38:33 2024 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-kernel@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-Antispam-Message-Info: =?utf-8?B?SDFHOXBUdFhpUTFBRXIwUStTMzRwRkw0V2I1MDRLSCtLT3JtRUtmdDlOSmo5?= =?utf-8?B?b0htTEZiUUlmdFlEQ0tUQmFTWm00U2l3U3RyYjROd3EwYUxGdG53WnIwRDEx?= =?utf-8?B?OWNxbnhXSjdpNTFoUVM3QVZhSUJybkQyR25hWlB5UmZaK2hDTk42YThhYUN5?= =?utf-8?B?ekRDOGpYUXhzMXZpQUoyM3R5VU54ZHByY2xML3hSbFlpSkdndmpPM1NUUjVK?= =?utf-8?B?Rnp6MkJ4WEJoc2ZpNGx1NWRsZVRvbnhIQjNGcXdmL2JLOFpUdXdOb2o0V3lM?= =?utf-8?B?ZVUyM3dIWkVXSG9MUlpBZkMvYngrYXU2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VrWXkyNUdtcjBNWjI2amZkblBWYW9jSisza29y?= =?utf-8?B?Mkc5Qk8zdlh1bUpGWUNTKzViN3pja0RJS21sUVd4V2NwT0pYdEI2YnNJUlZT?= =?utf-8?B?Rit5WG9VTGQzNkU1RDN5eUFVWFUvL2Zlbnloa3JnS2JVSksyQUVYWUx2ZXA1?= =?utf-8?B?MjF6Mml1N0hPUFBBakE4R1BXdXVNdTZQZGNaK3hyb2RHSzVzaFI2MFRHekF5?= =?utf-8?B?bUl6YXRsRzhBaXQvSExHWW1HZDMvOERmejlKNXdYZlp0Vm9QR3pPSDFhRENG?= =?utf-8?B?MG90OHFLc0lqMEJ2WGNhZ2w5elFWckc1YVE3NXZaMnQxZzcwUFBiS3c5YVZw?= =?utf-8?B?MW11d00wcC9RcnN1dlNVZUNmZ0thNFEzcGtVQ2pMMnRJWjhGaHYxbVQ3aVFR?= =?utf-8?B?S1BFWiszeVJpa1U5eWpoVVd2RVM2ZWphbi84RXA3M09PV3ZFcDdBRkVKNEta?= =?utf-8?B?ZDRtdldSUlA3MjNKc29ySm1oc0YwWWZLN0NoSkk3YWhabHJ6RVBmbGpuZHJq?= =?utf-8?B?VnpLdVVYRXg4TFh5VkZyVmhOcUIxSG5IVHFaWXRZM25EWXlxZ3o3Sy9XWjVr?= =?utf-8?B?d0FuakVCL001N3kxaW1VN1V0aE1JdUZYZHM2T0NyblB2RjJOaFNLT0djZUFr?= =?utf-8?B?QVdNTnlDS3M4WTlzMTZYYTdrVHVoN0dRMy80QitWWm1oc1JESS9wQTRZSzBC?= =?utf-8?Q?B+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-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TVnZ2NDWjRxa01w?= =?utf-8?B?NTRraXYrWkZYSkxERDdMbXdGdjl5cDlZcHNTa09Yb2QxUW80SWExdmFvSWdC?= =?utf-8?B?RFExV0x4d0RSa3htbFN0SVBZc2RCYWdYTDFSUjhZOW0ydnZPSTlZVXRVODRz?= =?utf-8?B?ZHlUVS9NU1NmdUMwS2JNSmFXNnpHOHNlM1BJSC9WaXYvZ3FPaU1wQWZwRHV0?= =?utf-8?B?Qi9xR2hkMDQ4Znc5TzFrQXBIMExBcWcwYmVtZC9HR0dSLzBEVVRSQ2o1Z3pv?= =?utf-8?B?VExxWFRNVVhLR3BSY1Y0T3RxV0duVm5oSStOL2J0ODAyMitMamRXL0JYalhl?= =?utf-8?B?aVA0T0lCNGNBMnRSRWFhTmJhTUc5bEE4bk9ycHVnZU4wK2JWYXI5U2V4YVc5?= =?utf-8?Q?jyJcc6GcHd4KdkmH2UKnPU+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 Acked-by: Arend van Spriel Reviewed-by: Sebastian Reichel Tested-by: Sebastian Reichel # On RK3588 = EVB1 --- .../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/driv= ers/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_f= wnames[] =3D { 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 brcm= f_pciedev_info *devinfo, memcpy_toio(devinfo->tcm + address, nvram, nvram_len); brcmf_fw_nvram_free(nvram); =20 - if (devinfo->otp.valid) { + if (devinfo->fwseed) { size_t rand_len =3D BRCMF_RANDOM_SEED_LENGTH; struct brcmf_random_seed_footer footer =3D { .length =3D cpu_to_le32(rand_len), .magic =3D cpu_to_le32(BRCMF_RANDOM_SEED_MAGIC), }; =20 - /* 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 =20 +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[] =3D { + [BRCMF_DRVDATA_CYW] =3D { + .vendor =3D BRCMF_FWVENDOR_CYW, + .fw_seed =3D false, + }, + [BRCMF_DRVDATA_BCA] =3D { + .vendor =3D BRCMF_FWVENDOR_BCA, + .fw_seed =3D false, + }, + [BRCMF_DRVDATA_WCC] =3D { + .vendor =3D BRCMF_FWVENDOR_WCC, + .fw_seed =3D false, + }, + [BRCMF_DRVDATA_WCC_SEED] =3D { + .vendor =3D BRCMF_FWVENDOR_WCC, + .fw_seed =3D true, + }, +}; + /* Forward declaration for pci_match_id() call */ static const struct pci_device_id brcmf_pcie_devid_table[]; =20 @@ -2475,9 +2509,10 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct = pci_device_id *id) bus->bus_priv.pcie =3D pcie_bus_dev; bus->ops =3D &brcmf_pcie_bus_ops; bus->proto_type =3D BRCMF_PROTO_MSGBUF; - bus->fwvid =3D id->driver_data; bus->chip =3D devinfo->coreid; bus->wowl_supported =3D pci_pme_capable(pdev, PCI_D3hot); + bus->fwvid =3D drvdata[id->driver_data].vendor; + devinfo->fwseed =3D drvdata[id->driver_data].fw_seed; dev_set_drvdata(&pdev->dev, bus); =20 ret =3D brcmf_alloc(&devinfo->pdev->dev, devinfo->settings); @@ -2663,14 +2698,14 @@ static const struct dev_pm_ops brcmf_pciedrvr_pm = =3D { 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 \ } =20 static const struct pci_device_id brcmf_pcie_devid_table[] =3D { @@ -2698,9 +2733,10 @@ static const struct pci_device_id brcmf_pcie_devid_t= able[] =3D { 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), =20 { /* 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 --=20 2.34.1