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: <373c2d57-a513-4c2a-ae38-1aa01262c197@kernel.org>
Date: Mon, 10 Feb 2025 20:34:14 +0100
From: Jiri Slaby <jirislaby@...nel.org>
To: Stuart <stuart.a.hayhurst@...il.com>
Cc: linux-input@...r.kernel.org, Jiri Kosina <jikos@...nel.org>,
 Benjamin Tissoires <bentiss@...nel.org>,
 Christophe JAILLET <christophe.jaillet@...adoo.fr>,
 linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5] HID: corsair-void: Add Corsair Void headset family
 driver

On 10. 02. 25, 19:31, Stuart wrote:
>> Not that easy, as AFAIR power unregister cannot sleep.
> 
> Sorry, I'm not sure I follow, why would power_supply_unregister sleep?
> I thought the issue was about locking mutexes in an interrupt context,
> why wouldn't using spinlock_irqsave work instead?

There sure, but you want to protect the ->battery, right? So you'd need 
to spin lock *also* power unregister.

Anyway, maybe I misunderstand, please send a patch and we will see ;).

-- 
js
suse labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ