diff options
| author | Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com> | 2026-09-21 19:51:11 +0530 |
|---|---|---|
| committer | Jassi Brar <jassisinghbrar@gmail.com> | 2026-10-11 20:11:29 -0500 |
| commit | 9ed2a451334aaf016dcbc9a0f2f26859c5969977 (patch) | |
| tree | d2d65751aaf8bfffbbcce2c56bc0cd1ecc0be46f /include/uapi/linux | |
| parent | 7b3cc361b5942ac600f38e5dff7aed009be34964 (diff) | |
| download | linux-next-9ed2a451334aaf016dcbc9a0f2f26859c5969977.tar.gz linux-next-9ed2a451334aaf016dcbc9a0f2f26859c5969977.zip | |
mailbox: qcom-ipcc: Use dev_name() as IRQ name instead of a static counter
qcom_ipcc_probe() uses a function-static int id incremented with
plain id++ to generate unique IRQ names. Under async or deferred
probe, two instances can probe concurrently and read the same value
before either increments, producing duplicate IRQ names.
The device already has a unique name assigned by the platform bus. Use
dev_name(&pdev->dev) directly as the IRQ name. This eliminates the racy
counter, the name buffer, and the devm_kasprintf() allocation entirely,
while providing a more informative IRQ name in /proc/interrupts.
Signed-off-by: Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
