lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251126081741.10588-1-baojun.xu@ti.com>
Date: Wed, 26 Nov 2025 16:17:40 +0800
From: Baojun Xu <baojun.xu@...com>
To: <tiwai@...e.de>, <hansg@...nel.org>
CC: <ilpo.jarvinen@...ux.intel.com>, <broonie@...nel.org>,
	<andriy.shevchenko@...ux.intel.com>, <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>, <baojun.xu@...com>, <letitia.tsai@...com>
Subject: [PATCH v3 0/1] platform/x86: serial-multi-instantiate: ACPI example code

The tas2781-hda supports multi-projects, In some projects,
GpioInt was dropped due to no IRQ connection.
See the example code below:

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.
So need to add an exception case for these situations.
BTW, this patch will take effect on both I2C and SPI devices.

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)
    }
}

Signed-off-by: Baojun Xu <baojun.xu@...com>

Baojun Xu (1):
  platform/x86: serial-multi-instantiate: Add IRQ_RESOURCE_OPT for IRQ
    missing projects

 drivers/platform/x86/serial-multi-instantiate.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ