From patchwork Fri Jan 10 08:19:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: POPESCU Catalin X-Patchwork-Id: 13933949 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2079.outbound.protection.outlook.com [40.107.20.79]) (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 F2D9C207E02; Fri, 10 Jan 2025 08:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.79 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736497220; cv=fail; b=Oem+PCnpr7fUHHNitfuDmKzmUDSfBI+5fheSQPoAi4bYmXbOKlNYMGirwbKXNsCuddqHL/pB+NvgAbX8OgLvl4c9wBgjGtHsulrvMdXFic4fukCtL8/e2M6OMYDjMBBEdG5Ugwbtmd2al4rs1nnrRLMy2m9V2OWLag+iaaSxNag= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736497220; c=relaxed/simple; bh=qobj6G+593UvCJ2IHCUHccFnL6Fclzm+HsyFp194Bao=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=kXyp6xu4XNiPHGcu9xKexBat/tlb6akLos5rVX9NcglFnCjF6hjOH2DkBHtys2NUxXNny6rSgQC8wB6ygZRBzDgM/pEowYZPA9Qj9ibcwRAHz+aB8TD/BgI6OwjEwOLBgHM3aE1Nex55F8rCE5K0Ig+DRdCFJjvdCEOYVS0sPWM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com; spf=fail smtp.mailfrom=leica-geosystems.com; dkim=pass (1024-bit key) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b=m2Djh5DM; arc=fail smtp.client-ip=40.107.20.79 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=leica-geosystems.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="m2Djh5DM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ijrPPYY8b7AMN3VzLKLMFcO/vNySCLmmX5eyyGbCUrorfOZCJGi53l9G/+h47QBMPktfaXzUpEdXQG0uZc75t8GBJDBGLoJYcsjIEAGbabMgojMMCH+BWpaDWnUE9wonNwPEXNzy8WKumExmsK4CM2faO6dmni5yLYupV30Lz3VVe1F27PDWWZyesov/z6Jar6G3foz3pRdPZO0CkogALuIA5/wN1DEevkRWSoq7JfpYnaE61jxXQ7H8QbDR+ZMVPMs/lLYkCzrBwrBBXTDrY/qg3X49szPWU07o804xe9ZVO3AVJMYQueqvjtYGTuVsLWKCcb28TRVSj/ZNogIKFA== 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=ObuvQrM6K7PmVdpYk05YI2HrEhMl3SOEwV5saoVTjyc=; b=Wc90wG5pa8BJ+HELTqnAtP7itJ04wVIeYFsDZh5ytN9AYCR0w2HQ0DNl6l/F8Fh26MFiovWWWIsp6ox+ML9dLYtCQ6RL2j1VvnCs23z5AMPYRMGNm0fnqs7IDkBVSH7raWrI8WVKrftB/y9Kj34nOxossyXXXhEmWEPClfDrmt1WLlGXVqBSZW0WR4NgejUjaVpg6mEA0EVUlV56bnH+Ufn1dk/d5zv1KbA4aHTEpbNNesByp88m1Z+vPW61On99jpYKwYzi50D/gptiFic/hjaMRPIqK2Uwxr4hUAXPeuOpsE67ig9WGGvVXUISh8O+t0MGOp16xjhhhksYRVJEJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 193.8.40.94) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=leica-geosystems.com; dmarc=temperror action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ObuvQrM6K7PmVdpYk05YI2HrEhMl3SOEwV5saoVTjyc=; b=m2Djh5DMpqxnw2SouOMYLSPu6RrJ/jWlD3YqkCKyREssAAsaug288rcHV2B9/nUWJz4UKnMUvSH89KLOCq5OWYBW8ZMSS7Iyf8l5+FDc9eCtK0ZgZ10PoCMf092hrqP3j1pVyW18+nuNlZKJR6MJ+zKEBPY2n+XUif0v5aNBd3I= Received: from AS8PR07CA0045.eurprd07.prod.outlook.com (2603:10a6:20b:459::16) by GVXPR06MB9609.eurprd06.prod.outlook.com (2603:10a6:150:1e6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.12; Fri, 10 Jan 2025 08:20:09 +0000 Received: from AM4PEPF00025F9C.EURPRD83.prod.outlook.com (2603:10a6:20b:459:cafe::27) by AS8PR07CA0045.outlook.office365.com (2603:10a6:20b:459::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.6 via Frontend Transport; Fri, 10 Jan 2025 08:20:09 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=temperror action=none header.from=leica-geosystems.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of leica-geosystems.com: DNS Timeout) Received: from hexagon.com (193.8.40.94) by AM4PEPF00025F9C.mail.protection.outlook.com (10.167.16.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.0 via Frontend Transport; Fri, 10 Jan 2025 08:20:07 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Fri, 10 Jan 2025 09:20:07 +0100 From: Catalin Popescu To: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, m.felsch@pengutronix.de, bsp-development.geo@leica-geosystems.com, Catalin Popescu Subject: [PATCH net-next 1/2] dt-bindings: net: rfkill-gpio: enable booting in blocked state Date: Fri, 10 Jan 2025 09:19:01 +0100 Message-Id: <20250110081902.1846296-1-catalin.popescu@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginalArrivalTime: 10 Jan 2025 08:20:07.0511 (UTC) FILETIME=[7550CE70:01DB6338] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM4PEPF00025F9C:EE_|GVXPR06MB9609:EE_ X-MS-Office365-Filtering-Correlation-Id: 09e97ef2-3c1b-491c-f71d-08dd314f97df X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: EOFCgJeDqHXgNjNCRbB7xy27RLjLK7w2pt0vadxE0lI6+Vz1jWfBYlZKumbZ+Q8X6smrwVkxz5YwjgEDKvzGkd/cFLyZrBf7WZuufayA3loz81eG+sgf1TintKMmXeZczAnMJx9H/myUldPOtEMaloprVpfaiDDz3ir9xBNELRTPrNGj0gp207vZKq4nCPpatPwRtfMZnR3PpEmF4Di9OVYLgmhIPmpzwDK6Jg0AbSwslBFCV8CzExJBO82iFd5KchNgG96pfhUlRqUMWs+yHPZoMY6m3NAryAONpVB+sQMZCfAVefHuBNKQva6xIcUZjpmCQ8D61yoBOTePuNwUcfGB7PaO/2jouBGkujK46f+nSkT+1fmbbw3lJMmW4/1mr/PvJfag5xoisWcnjcEcQaTkivG5jZm+qJEXw1XRu2UR9XjV9PBRCaHpTozCddnOV/L2lVjydr7e4+OSkydsD6be1oxAgK4tLxEZzn1drHQmCG+sZ6hrdOllnu77HMgubXcnbS9B+fQlxBNSXbSHqIk1a7Crch9RMnkXHoZBPAMNIiHkYh+JgIsMiQGiRCk3Lwj/yuXUPOHnGaamLu8KTJJkFnhq51FbHikWxTGUxo5Jbc/FqiPJYk7VfotMcbzbIPzvLhuR0zmGyWJQfkzZooit4iUy06070sGjj2yD0LypOAMmfIXgwS+yOgKpzbtVk4rzCCIzDAIFFTNeW9pbh3atplfSeeqU3mQOflpd6xqyltOgnjHO90VFdkSVallQvCKMPdvqC0YHsUl4bQRMbJ4HpOtrISG+aNod1WW8xsLsV2fTJ6DG/A6Fcfa9gusGLftdSOV92ihML9iFnRoBOF8xNWCtzxdjpJ+baoJuA963Z/OCvJt/DoYrltmGQ9FiJKwN4G0wA12Q4eV12q9Z47fE5IyZVa+Yd4YnaIWsWlrV5FiXgJAvYq006DcFyDf9sAmLARPGi0ULnBObK0JNqWp/WIkjhXfAiAAJ0nzECYzXSHjDl8zZWBUH0t3Avr/4FTrBk8f+7uoQ+i3W4R2LM44uYUZMCPVRsksiOB9FkHPHHL4Qst5cfiIaZ09n91HdP3bHA0iTFBBW0tNwHZGqIChs6EmxLKmx6xRZPz+aI6kPZa67Jfeo/9aj9hS8h7QoC0MDWlsyWeXDixOM5SWFWVHfgH+sVaFUMupfwjC90k2VEWXfJCprgmbEAzuZoy5faGaSOsRAjONewjgrxE7dPvWkXiOe6DLoZPJNqmILcKuVCqxW4GeZ8+fmVuUG8+C2oRoArzNmA4CS6KTHcFZ6JdrV7HCG2K5AALbg46v6WJxylRxmRfLAvfn1D2Ok3D87IxhpGtfp2O+PbByGlAJLyRk5HIjXzmZKODuezJxYdPyJKxObf8UTf29bawHGOiqGsrKzT4Rzws5iIE4zM4w9BT1gqk088bHD3yvrbwUrVno2cbGMxtYXydWU28b4+ZWa4s74IOW32uw0KwCX2slI1Ua3au++p73DiiSj4eSC4wQ= X-Forefront-Antispam-Report: CIP:193.8.40.94;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ahersrvdom50.leica-geosystems.com;CAT:NONE;SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 08:20:07.5755 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 09e97ef2-3c1b-491c-f71d-08dd314f97df X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a;Ip=[193.8.40.94];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00025F9C.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR06MB9609 X-Patchwork-Delegate: kuba@kernel.org By default, rfkill state is set to unblocked. Sometimes, we want to boot in blocked state and let the application unblock the rfkill. Signed-off-by: Catalin Popescu --- Documentation/devicetree/bindings/net/rfkill-gpio.yaml | 5 +++++ 1 file changed, 5 insertions(+) base-commit: 25cc469d6d344f5772e9fb6a5cf9d82a690afe68 prerequisite-patch-id: 0000000000000000000000000000000000000000 diff --git a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml index 9630c8466fac..22f26f1a3856 100644 --- a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml +++ b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml @@ -32,6 +32,10 @@ properties: shutdown-gpios: maxItems: 1 + default-blocked: + description: configure rfkill state as blocked at boot + type: boolean + required: - compatible - radio-type @@ -48,4 +52,5 @@ examples: label = "rfkill-pcie-wlan"; radio-type = "wlan"; shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>; + default-blocked; }; From patchwork Fri Jan 10 08:19:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: POPESCU Catalin X-Patchwork-Id: 13933948 X-Patchwork-Delegate: kuba@kernel.org Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazon11013026.outbound.protection.outlook.com [40.107.162.26]) (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 44DD4257D; Fri, 10 Jan 2025 08:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.162.26 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736497218; cv=fail; b=rxPA2G3LTzZbPX4OHrGipZH2RyMMlZmUdvrmjgxP8RgmJPThQgzqiSLjssIZBL1IptGT6y8O3dsW9DeCRVG1ypJZ1yjt73EddcRRXo52cWLZ9/au4oav6FKZqvy1l91lkHDEcQPCw+aD2ITHeKRta6T2EyUsd3aVcXyRoyn1RUs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736497218; c=relaxed/simple; bh=LDDJcUrXFkWKe5FKTIJ1hpQpKblSf4eAw0bOSHuH8iE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=i+oCidfBK3U5uQ8EIuWfSJy267h6RIM6Tpy2jlC4RB36hqPloPeknbS1WpxRKiVjdLOzuvyNgTTXnXsEugF59XhEmhrnXBQSi2NfqWt7VLSh7DHVfp4DEpYM0bEILk2yDhOwKYyhD+bdmRZajNZOL4loAQip+igjbzAsq9Oqvlk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com; spf=fail smtp.mailfrom=leica-geosystems.com; dkim=pass (1024-bit key) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b=Hb2BU193; arc=fail smtp.client-ip=40.107.162.26 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=leica-geosystems.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="Hb2BU193" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oP6oprrVhTeeLkDPyV0BxqRex6UEfFgLVvcd2fIqQP2b0OGQOQIZ0uDJvIBDTI1S6POGO2xdX9lD4aRqWg3utajNkY8jfjj/joiMhfteDJCI4zND1WZ8ulNolruXLg76mQD5VVAG/POMgk2W2DQH/XDgsFV6pGKggrDf3HRu+Gmh4vj3Tp12LRAQfpJrePHJmwzPPci2zUrrtBX74kuDIfyd1U6jJQhoG2plqzrsgwVPEiI5r2yih901W9/3Eb75Lv6AIpwuTkqAc10PdTKysmJvw9nrdBfMVrK8+Scb4JYv9nSglMjUPhVe9nR4ZEpx5mLx4EM8D3ywj9fDW5KJnw== 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=Z7ePe8LrpbKbpFWmraqm2BTfhKZLA99rUCyeM3NWd/s=; b=jjD5eC8PRjVKMzBO6b4P6FFH94ZDcgdlj2neCvKUBzzvPTAXUO+qeE2bn5VWT2dfh204fpJtBVTv4qicyqBgaXf09SaTMifwSCesuhA5C04l/wkBHBwPBGrPM5p9N8jQTOMsXSxqIfkl/UYSu34FfYQLrUEHSkWu0rI30fBcfvQljhzurQvvKfh8sDzk5KQG3fn8qvmspta4nUiYUPM6dXJJsiP9nxUPSa99tNs5FbxLeEDIhI8i06oWS0Lh5RYZm5PVQnFVumPG3C5CKGc0w9AntEEyF154CNxbmJs81/Ctb6Plmhq+fFpdJ0RQEHnyyvm4jMuP2c55w9hCBpKRuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z7ePe8LrpbKbpFWmraqm2BTfhKZLA99rUCyeM3NWd/s=; b=Hb2BU193yYjTdzhi1EYMSCYOpSqYvQC0hpH9aitksFbwHJo4Vhrk4GmlzYG1fS5NviDl4isZTIgdP0TBV4XNt9v2LDnqvd2oY+tIoHsKF80XcW/6NDpBiv53/NNi63stY70xkEq94GuM0/tXAkea3e3xUMNbBhwof0QOPKpCe18= Received: from AS8PR07CA0058.eurprd07.prod.outlook.com (2603:10a6:20b:459::15) by VI0PR06MB9747.eurprd06.prod.outlook.com (2603:10a6:800:21c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.12; Fri, 10 Jan 2025 08:20:11 +0000 Received: from AM4PEPF00025F9C.EURPRD83.prod.outlook.com (2603:10a6:20b:459:cafe::5c) by AS8PR07CA0058.outlook.office365.com (2603:10a6:20b:459::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.6 via Frontend Transport; Fri, 10 Jan 2025 08:20:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by AM4PEPF00025F9C.mail.protection.outlook.com (10.167.16.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.0 via Frontend Transport; Fri, 10 Jan 2025 08:20:11 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Fri, 10 Jan 2025 09:20:08 +0100 From: Catalin Popescu To: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, m.felsch@pengutronix.de, bsp-development.geo@leica-geosystems.com, Catalin Popescu Subject: [PATCH net-next 2/2] net: rfkill: gpio: allow booting in blocked state Date: Fri, 10 Jan 2025 09:19:02 +0100 Message-Id: <20250110081902.1846296-2-catalin.popescu@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250110081902.1846296-1-catalin.popescu@leica-geosystems.com> References: <20250110081902.1846296-1-catalin.popescu@leica-geosystems.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginalArrivalTime: 10 Jan 2025 08:20:08.0371 (UTC) FILETIME=[75D40830:01DB6338] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM4PEPF00025F9C:EE_|VI0PR06MB9747:EE_ X-MS-Office365-Filtering-Correlation-Id: 03912be0-91aa-4275-17ec-08dd314f9a47 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: PNzEp44U+6aQdrmUQkUgVNYN/gdAW6WF3Kr6+U9usSajPF5LNfnVg56dvu9oJf7Igm32bCTcIPShi0b5tRle1X/GxLW9QskvwVGvUwZr/M13yTB6EAvW9YQClKBfcZq2DJkqzLB7A9sIopBVBrvkOQJyUDeITIXetClDHANrBqDlilDQomFiOBf3AqNf3Bg3hJGNzYW+AHxp1ZwwLaxnF3JC9ZHxLWjYP2rcPmofNDaI0g14/X4ICBxgqWVWLei2Cj7d3WlxUg7t5eF5WY1IDjwvWEYSvvy9NWoS1AHTkk5Fp00f/ffoPrD6X+/c6J71T4tyaaLFaPVMNRh+/7vTT9KHy8R6w2H9U3AdlU904GP5YurUxUDZPQvQXmRUcgzpM2XdCIDE5dH7hmwUqzYIZk1BV8fC9YyeHs6SaJBp40y99MHEpWKdKUWT++JVoVoot7fy4FYJGPShQp0BQJtTE6HQ9QzUB0ttldZnvP3SmObQVKIkqJ06aiGGXLPpZf3uhCz8cQxMz/YZ+EPVLWQi/19Meh0DP0QOJ91AyBlZP9n6ntxP/MskJrHfRJbZWqqvpRQLZbOe3ttG2jByf3/W6FWwJI/OrYxA4JcKj81zjUF3nHnNk8b7IOSvfaBFhoQXUluZ+KYrGDelz/lIeue37DTuDgQwF5NqzUEMA8M4EXP7Uh6W5yVCBgmaMPen6+FhBVjIRHB9yhKs80xf+V/7xNJKJ7sJsihXlRrIsE6htxjfdJqOnfItGrOfO8y6gcJ5WZlc23SJ4DtNGo7WtAohZcJoUJxJCYnQdxrm+CkH9rsCKc3s8P897d5jWfM0cyfyyengJiBIhlHLVFXawdPkjlOemnzik9V7xviHJSxj6NH1VIRWELKcVRpFnahTkMUnQSdaRZiV/cSCNLIkBD9H/rBcSC1xMQ/F83N2yks0ApqAvpLdGxAAmp71V6dXrL9kf2tu9KF9GQZsdEPIMEu4GzRU6d9b2zZ9097ZFG5qrMTB1yBcYEiQSLYmJ2E92lcLEHk/yUygIBnlshIbqEP+oZzhQ1U6lBvV1kU8XajS2+6yXa8YjZ9eSZoltAX6Byvx15HJdiJIZxfzHgQWgcneZeuANWChHODLOqDezsA9Z3u0uU61uDfk4Xw7CKscfDDX3MPk71qo3b/tY+44p76SX4AILuPBUjTDDEkPk3qyqPVEIa12XSvYt6EbTnojcvKeSAPvS0VHviOeUF3Iy26vlRBk/K6DQZbefjcYLU2LfzE2bYNKOhkBHVuLEAch4ad6+JpQDooCYv6PS/vFNt+3G7tDH9FCCbnaFk9UP6xihclFc8AiYtGH7Oq6we4D2b9tEIG0iEPT++nRBYQMwlo/obnGu2SOTOrCguzmKNwHSRs1XDSn1ldi6FdA3rZPdkIkrD+xZm4rHHCbxEHD1jM9R/CMY8oLVyL+tL2Uf6QJIMoq/vVeUUOtY1oecyd/1utETthZeqIZ/xiYu5VkPT4vR/8P1090SFKC70TdsH/GDvQ= X-Forefront-Antispam-Report: CIP:193.8.40.94;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ahersrvdom50.leica-geosystems.com;CAT:NONE;SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 08:20:11.6068 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 03912be0-91aa-4275-17ec-08dd314f9a47 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a;Ip=[193.8.40.94];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00025F9C.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR06MB9747 X-Patchwork-Delegate: kuba@kernel.org By default, rfkill state is unblocked and this behavior is not configurable. Add support for booting in blocked state based on the presence of a devicetree property. Signed-off-by: Catalin Popescu --- net/rfkill/rfkill-gpio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c index 9fa019e0dcad..41e657e97761 100644 --- a/net/rfkill/rfkill-gpio.c +++ b/net/rfkill/rfkill-gpio.c @@ -162,6 +162,9 @@ static int rfkill_gpio_probe(struct platform_device *pdev) if (!rfkill->rfkill_dev) return -ENOMEM; + if (device_property_present(&pdev->dev, "default-blocked")) + rfkill_init_sw_state(rfkill->rfkill_dev, true); + ret = rfkill_register(rfkill->rfkill_dev); if (ret < 0) goto err_destroy;