[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aSc9L6KXG6oQubwF@smile.fi.intel.com>
Date: Wed, 26 Nov 2025 19:47:27 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Baojun Xu <baojun.xu@...com>
Cc: tiwai@...e.de, hansg@...nel.org, ilpo.jarvinen@...ux.intel.com,
broonie@...nel.org, alsa-devel@...a-project.org,
shenghao-ding@...com, 13916275206@....com,
platform-driver-x86@...r.kernel.org, linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org, letitia.tsai@...com
Subject: Re: [PATCH v5] platform/x86: serial-multi-instantiate: Add
IRQ_RESOURCE_OPT for IRQ missing projects
On Wed, Nov 26, 2025 at 10:14:33PM +0800, Baojun Xu wrote:
> The tas2781-hda supports multi-projects. In some projects, GpioInt() was
> dropped due to no IRQ connection. See the example code below:
>
> Device (SPKR)
> {
> Name (_ADR, One)
> Name (_HID, "TXNW2781")
> Method (_CRS, 0, NotSerialized)
> {
> Name (RBUF, ResourceTemplate ()
> {
> I2cSerialBusV2 (0x0038, ...)
> I2cSerialBusV2 (0x0039, ...)
> // GpioInt (Edge, ...) { 0x0000 }
> //"GpioInt (...) {}" was commented out due to no IRQ connection.
> })
> Return (RBUF)
> }
> }
>
> But in smi_i2c_probe(), smi_spi_probe() (serial-multi-instantiate.c), if
> looking for IRQ by smi_get_irq() fails, it will return an error, will not add
> new device, and cause smi_probe() to fail:
>
> [ 2.356546] Serial bus multi instantiate pseudo device driver TXNW2781:00:
> error -ENXIO: IRQ index 0 not found
> [ 2.356561] Serial bus multi instantiate pseudo device driver TXNW2781:00:
> error -ENXIO: Error requesting irq at index 0
>
> So, we need to add an exception case for these situations. BTW, this patch
> will take effect on both I2C and SPI devices.
Thanks, excellent!
Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists