lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a6f96969-f121-436a-93ae-752a538f1a07@leica-geosystems.com>
Date: Fri, 10 Jan 2025 08:32:34 +0000
From: POPESCU Catalin <catalin.popescu@...ca-geosystems.com>
To: "andrew+netdev@...n.ch" <andrew+netdev@...n.ch>, "davem@...emloft.net"
	<davem@...emloft.net>, "edumazet@...gle.com" <edumazet@...gle.com>,
	"kuba@...nel.org" <kuba@...nel.org>, "pabeni@...hat.com" <pabeni@...hat.com>,
	"robh@...nel.org" <robh@...nel.org>, "krzk+dt@...nel.org"
	<krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
	"johannes@...solutions.net" <johannes@...solutions.net>,
	"p.zabel@...gutronix.de" <p.zabel@...gutronix.de>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>,
	"m.felsch@...gutronix.de" <m.felsch@...gutronix.de>,
	GEO-CHHER-bsp-development <bsp-development.geo@...ca-geosystems.com>
Subject: Re: [PATCH net-next 2/2] net: rfkill: gpio: allow booting in blocked
 state

Due to typo in my send-email command, some recipients were truncated.
Adding them here.

BR,
Catalin

On 10/01/2025 09:19, Catalin Popescu wrote:
> 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@...ca-geosystems.com>
> ---
>   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;


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ