On Thu, 09 May 2024 11:41:28 -0700, Stephen Boyd wrote: > Dan pointed out that Smatch is concerned about this code because it uses > spin_lock_irqsave() and then calls wait_event_lock_irq() which enables > irqs before going to sleep. The comment above the function says it > should be called with interrupts enabled, but we simply hope that's true > without really confirming that. Let's add a might_sleep() here to > confirm that interrupts and preemption aren't disabled. Once we do that, > we can change the lock to be non-saving, spin_lock_irq(), to clarify > that we don't expect irqs to be disabled. If irqs are disabled by > callers they're going to be enabled anyway in the wait_event_lock_irq() > call which would be bad. > > [...] Applied, thanks! [1/1] soc: qcom: rpmh-rsc: Ensure irqs aren't disabled by rpmh_rsc_send_data() callers commit: e43111f52b9ec5c2d700f89a1d61c8d10dc2d9e9 Best regards, -- Bjorn Andersson <andersson@xxxxxxxxxx>