On Fri, Feb 28, 2025 at 6:40 AM Unnathi Chalicheemala <unnathi.chalicheemala@xxxxxxxxxxxxxxxx> wrote: > > Bootloader and firmware for SM8650 and older chipsets expect node > name as "qcom_scm", in order to patch the wait queue IRQ information. > However, DeviceTree uses node name "scm" and this mismatch prevents > firmware from correctly identifying waitqueue IRQ information. Waitqueue > IRQ is used for signaling between secure and non-secure worlds. > > To resolve this, introduce qcom_scm_get_waitq_irq() that'll get the > hardware IRQ number to be used from firmware instead of relying on data > provided by devicetree, thereby bypassing the DeviceTree node name > mismatch. > > This hardware IRQ number is converted to a Linux IRQ number using newly > defined fill_irq_fwspec_params(). This Linux IRQ number is then supplied > to the threaded_irq call. > > Signed-off-by: Unnathi Chalicheemala <unnathi.chalicheemala@xxxxxxxxxxxxxxxx> > --- Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>