|
16 | 16 | #include <linux/platform_device.h>
|
17 | 17 | #include <linux/pm_wakeirq.h>
|
18 | 18 | #include <linux/regmap.h>
|
| 19 | +#include <linux/seq_file.h> |
19 | 20 | #include <linux/soc/qcom/smem.h>
|
20 | 21 | #include <linux/soc/qcom/smem_state.h>
|
21 | 22 | #include <linux/spinlock.h>
|
@@ -353,11 +354,19 @@ static int smp2p_set_irq_type(struct irq_data *irqd, unsigned int type)
|
353 | 354 | return 0;
|
354 | 355 | }
|
355 | 356 |
|
| 357 | +static void smp2p_irq_print_chip(struct irq_data *irqd, struct seq_file *p) |
| 358 | +{ |
| 359 | + struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); |
| 360 | + |
| 361 | + seq_printf(p, " %8s", dev_name(entry->smp2p->dev)); |
| 362 | +} |
| 363 | + |
356 | 364 | static struct irq_chip smp2p_irq_chip = {
|
357 | 365 | .name = "smp2p",
|
358 | 366 | .irq_mask = smp2p_mask_irq,
|
359 | 367 | .irq_unmask = smp2p_unmask_irq,
|
360 | 368 | .irq_set_type = smp2p_set_irq_type,
|
| 369 | + .irq_print_chip = smp2p_irq_print_chip, |
361 | 370 | };
|
362 | 371 |
|
363 | 372 | static int smp2p_irq_map(struct irq_domain *d,
|
@@ -617,7 +626,7 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
|
617 | 626 | ret = devm_request_threaded_irq(&pdev->dev, irq,
|
618 | 627 | NULL, qcom_smp2p_intr,
|
619 | 628 | IRQF_ONESHOT,
|
620 |
| - "smp2p", (void *)smp2p); |
| 629 | + NULL, (void *)smp2p); |
621 | 630 | if (ret) {
|
622 | 631 | dev_err(&pdev->dev, "failed to request interrupt\n");
|
623 | 632 | goto unwind_interfaces;
|
|
0 commit comments