Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: rfkill: gpio: allow booting in blocked state

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 <catalin.popescu@leica-geosystems.com>
Link: https://patch.msgid.link/20250116084702.3473176-2-catalin.popescu@leica-geosystems.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Catalin Popescu and committed by
Johannes Berg
2882bf7d 7951e809

+3
+3
net/rfkill/rfkill-gpio.c
··· 162 162 if (!rfkill->rfkill_dev) 163 163 return -ENOMEM; 164 164 165 + if (device_property_present(&pdev->dev, "default-blocked")) 166 + rfkill_init_sw_state(rfkill->rfkill_dev, true); 167 + 165 168 ret = rfkill_register(rfkill->rfkill_dev); 166 169 if (ret < 0) 167 170 goto err_destroy;