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: <fdf5702a-b739-4643-8288-86e6cfb8403d@web.de>
Date: Fri, 1 Nov 2024 16:45:47 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Andrei Stefanescu <andrei.stefanescu@....nxp.com>,
 linux-gpio@...r.kernel.org, devicetree@...r.kernel.org, s32@....com,
 Bartosz Golaszewski <brgl@...ev.pl>, Chester Lin <chester62515@...il.com>,
 Conor Dooley <conor+dt@...nel.org>, Dong Aisheng <aisheng.dong@....com>,
 Fabio Estevam <festevam@...il.com>,
 Ghennadi Procopciuc <Ghennadi.Procopciuc@....com>,
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Jacky Bai
 <ping.bai@....com>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
 Larisa Grigore <larisa.grigore@....com>, Lee Jones <lee@...nel.org>,
 Linus Walleij <linus.walleij@...aro.org>,
 Matthias Brugger <mbrugger@...e.com>, "Rafael J. Wysocki"
 <rafael@...nel.org>, Rob Herring <robh@...nel.org>,
 Sascha Hauer <s.hauer@...gutronix.de>, Shawn Guo <shawnguo@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, imx@...ts.linux.dev,
 linux-arm-kernel@...ts.infradead.org, kernel@...gutronix.de,
 Alberto Ruiz <aruizrui@...hat.com>, Christophe Lizzi <clizzi@...hat.com>,
 Enric Balletbo <eballetb@...hat.com>
Subject: Re: [PATCH v5 6/7] pinctrl: s32cc: add driver for GPIO functionality

> Add basic GPIO functionality (request, free, get, set) for the existing
> pinctrl SIUL2 driver since the hardware for pinctrl&GPIO is tightly
> coupled.
…
> +++ b/drivers/pinctrl/nxp/pinctrl-s32cc.c
…
> +static int s32_gpio_request(struct gpio_chip *gc, unsigned int gpio)
> +{
…
> +	spin_lock_irqsave(&ipctl->gpio_configs_lock, flags);
> +	list_add(&gpio_pin->list, &ipctl->gpio_configs);
> +	spin_unlock_irqrestore(&ipctl->gpio_configs_lock, flags);
…

Under which circumstances would you become interested to apply a statement
like “guard(spinlock_irqsave)(&ipctl->gpio_configs_lock);”?
https://elixir.bootlin.com/linux/v6.12-rc5/source/include/linux/spinlock.h#L551

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ