* [PATCH v2] platform/x86: serial-multi-instantiate: IRQ_RESOURCE_AUTO should be compatible with IRQ_RESOURCE_NONE
@ 2025-11-25 8:44 Baojun Xu
2025-11-25 9:25 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Baojun Xu @ 2025-11-25 8:44 UTC (permalink / raw)
To: tiwai, hansg
Cc: ilpo.jarvinen, broonie, andriy.shevchenko, alsa-devel,
shenghao-ding, 13916275206, platform-driver-x86, linux-sound,
linux-kernel, baojun.xu, letitia.tsai
The tas2781-hda supports multi-projects, in some projects,
no irq is required, so the IRQ_RESOURCE_AUTO should be compatible
with IRQ_RESOURCE_NONE.
Signed-off-by: Baojun Xu <baojun.xu@ti.com>
---
v2:
- Remove error ignore, change to AUTO compatible with NONE.
---
drivers/platform/x86/serial-multi-instantiate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c
index db030b0f176a..eb3fffbc29ad 100644
--- a/drivers/platform/x86/serial-multi-instantiate.c
+++ b/drivers/platform/x86/serial-multi-instantiate.c
@@ -64,7 +64,8 @@ static int smi_get_irq(struct platform_device *pdev, struct acpi_device *adev,
dev_dbg(&pdev->dev, "Using platform irq\n");
break;
}
- break;
+ dev_dbg(&pdev->dev, "No irq\n");
+ return 0;
case IRQ_RESOURCE_GPIO:
ret = acpi_dev_gpio_irq_get(adev, inst->irq_idx);
break;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] platform/x86: serial-multi-instantiate: IRQ_RESOURCE_AUTO should be compatible with IRQ_RESOURCE_NONE
2025-11-25 8:44 [PATCH v2] platform/x86: serial-multi-instantiate: IRQ_RESOURCE_AUTO should be compatible with IRQ_RESOURCE_NONE Baojun Xu
@ 2025-11-25 9:25 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2025-11-25 9:25 UTC (permalink / raw)
To: Baojun Xu
Cc: tiwai, hansg, ilpo.jarvinen, broonie, alsa-devel, shenghao-ding,
13916275206, platform-driver-x86, linux-sound, linux-kernel,
letitia.tsai
On Tue, Nov 25, 2025 at 04:44:36PM +0800, Baojun Xu wrote:
> The tas2781-hda supports multi-projects, in some projects,
> no irq is required, so the IRQ_RESOURCE_AUTO should be compatible
> with IRQ_RESOURCE_NONE.
TL;DR: NAK.
It will relax the conditions for the devices where IRQ is required.
Probably you need to consider DMI quirks or so.
Also you failed to provide the ACPI DSDT excerpts to show the real use case.
And what the board is that that uses polling mode?
You can also consider this approach (as a compromise between two:
#define IRQ_RESOURCE_OPTIONAL BIT(2)
...
switch (inst->flags & IRQ_RESOURCE_TYPE) {
case IRQ_RESOURCE_AUTO:
...
if (inst->flags & IRQ_RESOURCE_OPTIONAL)
ret = 0;
break;
...
}
...
{ "tas2781-hda", IRQ_RESOURCE_AUTO | IRQ_RESOURCE_OPTIONAL, 0 },
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-25 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25 8:44 [PATCH v2] platform/x86: serial-multi-instantiate: IRQ_RESOURCE_AUTO should be compatible with IRQ_RESOURCE_NONE Baojun Xu
2025-11-25 9:25 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox