]> www.infradead.org Git - users/willy/xarray.git/commit
soc: qcom: smp2p: Use devname for interrupt descriptions
authorChris Lew <quic_clew@quicinc.com>
Thu, 27 Jun 2024 10:48:30 +0000 (16:18 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 2 Jul 2024 03:31:14 +0000 (22:31 -0500)
commite49380c155940cb47e291a4b3fcb7fdffee6aa4d
tree80a24e36fffd5382c95f313d5d27ed4ef4a1bfe7
parent05a21e8b5d006177bce7332523eea5e3f2ee23ab
soc: qcom: smp2p: Use devname for interrupt descriptions

When using /proc/interrupts to collect statistics on smp2p interrupt
counts, it is hard to distinguish the different instances of smp2p from
each other. For example to debug a processor boot issue, the ready and
handover interrupts are checked for sanity to ensure the firmware
reached a specific initialization stage.

Remove "smp2p" string from the irq request so that the irq will default
to the device name. Add an .irq_print_chip() callback to print the irq
chip name as the device name. These two changes allow for a unique name
to be used in /proc/interrupts as shown below.

/ # cat /proc/interrupts | grep smp2p
 18:  ...      ipcc 196610 Edge      smp2p-adsp
 20:  ...      ipcc 131074 Edge      smp2p-modem
170:  ...  smp2p-modem   1 Edge      q6v5 ready
178:  ...  smp2p-adsp   1 Edge      q6v5 ready

Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240627104831.4176799-2-quic_sudeepgo@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smp2p.c